Commits

Moises Henriquez  committed 2a50c7b

added hpadding space to the right panel

  • Participants
  • Parent commits 5aca1ae

Comments (0)

Files changed (1)

         app_display = widgets.FancyAppList()
         self.display = app_display
         scrolled.add(app_display)
+        rbox = gtk.HBox()
         rpane.pack_start(scrolled, True, True, 2)
+        rbox.pack_start(rpane, True, True, 4)
         cache = vl.PackageManager().cache
 
         lpane = widgets.CategoryPanel(
                 label = _('Show Installed'),
                 overlay = True)
         self.categoriespanel = lpane
-#        vpanel = gtk.VBox()
-#        vpanel.pack_start(lpane, True, True, 0)
-
         pane.pack1(self.categoriespanel)
-        pane.pack2(rpane)
+        pane.pack2(rbox)
         self._catpanel = lpane
         bottombar = gtk.HBox()
         btSelectAll = gtk.Button(_('Select All'))
                 gtk.gdk.threads_enter()
                 self.statusbar.push(0, '%i %s'% (i,
                     _('items selected')))
-                self.actionbtn.set_property('sensitive', True)
                 gtk.gdk.threads_leave()
             else:
                 if self._stop_monitor is True:
                 gtk.gdk.threads_enter()
                 self.statusbar.push(0, '%i %s'% (
                     len(model), _('items displayed')))
-                self.actionbtn.set_property('sensitive', False)
                 gtk.gdk.threads_leave()
+            self.actionbtn.set_property('sensitive',
+                    len(self._do_get_selected_items()) > 0)
+            self.selbtn.set_property('sensitive',
+                    len(self.display.get_model()) > 0)
             if self.categoriespanel._get_selected() == _('Show Installed'):
                 gtk.gdk.threads_enter()
                 self.actionbtn.set_property('label', _('Uninstall Selected'))