[Sugar-devel] [PATCH shell] Remove unneeded color theming from entries in Control Panel and lists in Journal and Home

Manuel Quiñones manuq at laptop.org
Wed Oct 24 13:02:11 EDT 2012


This is already handled by the theme and removing doesn't affect the
widgets appearence.

Signed-off-by: Manuel Quiñones <manuq at laptop.org>
---
 extensions/cpsection/aboutme/view.py  | 4 ----
 extensions/cpsection/datetime/view.py | 4 ----
 extensions/cpsection/network/view.py  | 4 ----
 src/jarabe/desktop/activitieslist.py  | 2 --
 src/jarabe/journal/listview.py        | 2 --
 5 files changed, 16 deletions(-)

diff --git a/extensions/cpsection/aboutme/view.py b/extensions/cpsection/aboutme/view.py
index 3cbd93e..2d4b1e8 100644
--- a/extensions/cpsection/aboutme/view.py
+++ b/extensions/cpsection/aboutme/view.py
@@ -185,10 +185,6 @@ class AboutMe(SectionView):
 
     def _setup_nick(self):
         self._nick_entry = Gtk.Entry()
-        self._nick_entry.modify_bg(Gtk.StateType.INSENSITIVE,
-                                   style.COLOR_WHITE.get_gdk_color())
-        self._nick_entry.modify_base(Gtk.StateType.INSENSITIVE,
-                                     style.COLOR_WHITE.get_gdk_color())
         self._nick_entry.set_width_chars(25)
         self._nick_box.pack_start(self._nick_entry, False, True, 0)
         self._nick_entry.show()
diff --git a/extensions/cpsection/datetime/view.py b/extensions/cpsection/datetime/view.py
index 64789b4..e768e03 100644
--- a/extensions/cpsection/datetime/view.py
+++ b/extensions/cpsection/datetime/view.py
@@ -43,10 +43,6 @@ class TimeZone(SectionView):
         self._entry.set_icon_from_name(iconentry.ICON_ENTRY_PRIMARY,
                                  'system-search')
         self._entry.add_clear_button()
-        self._entry.modify_bg(Gtk.StateType.INSENSITIVE,
-                        style.COLOR_WHITE.get_gdk_color())
-        self._entry.modify_base(Gtk.StateType.INSENSITIVE,
-                          style.COLOR_WHITE.get_gdk_color())
         self.pack_start(self._entry, False, False, 0)
         self._entry.show()
 
diff --git a/extensions/cpsection/network/view.py b/extensions/cpsection/network/view.py
index 9b89375..b360759 100644
--- a/extensions/cpsection/network/view.py
+++ b/extensions/cpsection/network/view.py
@@ -153,10 +153,6 @@ class Network(SectionView):
         label_server.show()
         self._entry = Gtk.Entry()
         self._entry.set_alignment(0)
-        self._entry.modify_bg(Gtk.StateType.INSENSITIVE,
-                        style.COLOR_WHITE.get_gdk_color())
-        self._entry.modify_base(Gtk.StateType.INSENSITIVE,
-                          style.COLOR_WHITE.get_gdk_color())
         self._entry.set_size_request(int(Gdk.Screen.width() / 3), -1)
         box_server.pack_start(self._entry, False, True, 0)
         self._entry.show()
diff --git a/src/jarabe/desktop/activitieslist.py b/src/jarabe/desktop/activitieslist.py
index 4d2eb1a..7b99015 100644
--- a/src/jarabe/desktop/activitieslist.py
+++ b/src/jarabe/desktop/activitieslist.py
@@ -52,8 +52,6 @@ class ActivitiesTreeView(Gtk.TreeView):
 
         self._query = ''
 
-        self.modify_base(Gtk.StateType.NORMAL,
-                         style.COLOR_WHITE.get_gdk_color())
         self.set_headers_visible(False)
         selection = self.get_selection()
         selection.set_mode(Gtk.SelectionMode.NONE)
diff --git a/src/jarabe/journal/listview.py b/src/jarabe/journal/listview.py
index 5b2c5ab..6d9cc57 100644
--- a/src/jarabe/journal/listview.py
+++ b/src/jarabe/journal/listview.py
@@ -90,8 +90,6 @@ class BaseListView(Gtk.Bin):
         selection = self.tree_view.get_selection()
         selection.set_mode(Gtk.SelectionMode.NONE)
         self.tree_view.props.fixed_height_mode = True
-        self.tree_view.modify_base(Gtk.StateType.NORMAL,
-                                   style.COLOR_WHITE.get_gdk_color())
         self._scrolled_window.add(self.tree_view)
         self.tree_view.show()
 
-- 
1.7.11.4



More information about the Sugar-devel mailing list