Commits

Moises Henriquez committed eb6a6d9

[gui] Fixed label height adjustment on services display

  • Participants
  • Parent commits 79e9d27

Comments (0)

Files changed (1)

File src/vasm/ui/gtk2/modules/services.py

         self.add_button(btclose)
         self.add_button(btapply)
         self.add_button(bthelp)
+        self.describe_service(None)
 
     def get_service_tree(self):
         """ return a treeview that holds the services grid """
         if dia.run():
             dia.destroy()
 
-    def describe_service(self, treeview):
+    def describe_service(self, treeview=None):
+        if not treeview:
+            # Only expand the label
+            self.svc_desc_label.set_markup(
+                _("Select a service to see it's description.") + "\n\n")
+            return
         model = treeview.get_model()
         cursor = treeview.get_cursor()[0][0]
         selected = model[cursor][0]