[sabayon] More work on the group dialog: set sensitivity
- From: Federico Mena Quintero <federico src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [sabayon] More work on the group dialog: set sensitivity
- Date: Mon, 26 Oct 2009 20:49:44 +0000 (UTC)
commit b45d424ac028f5f89eb7d74752ab88ab1ab54528
Author: Scott Balneaves <sbalneav ltsp org>
Date: Thu Sep 3 00:05:49 2009 -0500
More work on the group dialog: set sensitivity
admin-tool/groupsdialog.py | 13 -------------
admin-tool/profilesdialog.py | 1 +
admin-tool/sabayon.glade | 2 +-
3 files changed, 2 insertions(+), 14 deletions(-)
---
diff --git a/admin-tool/groupsdialog.py b/admin-tool/groupsdialog.py
index a7676b6..c0eb731 100644
--- a/admin-tool/groupsdialog.py
+++ b/admin-tool/groupsdialog.py
@@ -46,8 +46,6 @@ class GroupsDialog:
self.profile = profile
self.groupdb = systemdb.get_group_database ()
- apply_to_all = self.groupdb.get_default_profile (False) == profile
-
glade_file = os.path.join (GLADEDIR, "sabayon.glade")
self.xml = gtk.glade.XML (glade_file, "groups_dialog", PACKAGE)
@@ -67,7 +65,6 @@ class GroupsDialog:
self.groups_list_scroll = self.xml.get_widget ("groups_list_scroll")
self.groups_list = self.xml.get_widget ("groups_list")
self.groups_list.set_model (self.groups_model)
- self.groups_list.set_sensitive (not apply_to_all)
c = gtk.TreeViewColumn (_("Group"),
gtk.CellRendererText (),
@@ -103,16 +100,6 @@ class GroupsDialog:
else:
self.groupdb.set_profile (groupname, None)
- @errors.checked_callback (debuglog.DEBUG_LOG_DOMAIN_USER)
- def __all_check_toggled (self, toggle):
- apply_to_all = self.all_check.get_active ()
- self.groups_list.set_sensitive (not apply_to_all)
-
- if apply_to_all:
- self.groupdb.set_default_profile (self.profile)
- else:
- self.groupdb.set_default_profile (None)
-
if __name__ == "__main__":
import util
diff --git a/admin-tool/profilesdialog.py b/admin-tool/profilesdialog.py
index 70f3765..adf5ab4 100755
--- a/admin-tool/profilesdialog.py
+++ b/admin-tool/profilesdialog.py
@@ -534,4 +534,5 @@ class ProfilesDialog:
self.edit_button.set_sensitive (profile_name != None)
self.details_button.set_sensitive (profile_name != None)
self.users_button.set_sensitive (profile_name != None)
+ self.groups_button.set_sensitive (profile_name != None)
self.remove_button.set_sensitive (profile_name != None)
diff --git a/admin-tool/sabayon.glade b/admin-tool/sabayon.glade
index 0780444..d62ce36 100644
--- a/admin-tool/sabayon.glade
+++ b/admin-tool/sabayon.glade
@@ -397,7 +397,7 @@
<child>
<widget class="GtkImage" id="image3">
<property name="visible">True</property>
- <property name="stock">gtk-go-forward</property>
+ <property name="stock">gtk-dnd-multiple</property>
<property name="icon_size">4</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]