[gnome-control-center] Make HighContrast icons work



commit fabb18fb1d21d409874e36e51fb48c21e866b09c
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Mar 8 22:22:27 2015 -0400

    Make HighContrast icons work
    
    We need to make the cell renderers follow state for the
    recoloring of icons on selection to work.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=745873

 shell/cc-shell-category-view.c |    1 +
 shell/cc-window.c              |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/shell/cc-shell-category-view.c b/shell/cc-shell-category-view.c
index d7094ab..4167447 100644
--- a/shell/cc-shell-category-view.c
+++ b/shell/cc-shell-category-view.c
@@ -129,6 +129,7 @@ cc_shell_category_view_constructed (GObject *object)
   renderer = gtk_cell_renderer_pixbuf_new ();
   g_object_set (renderer,
                 "stock-size", GTK_ICON_SIZE_DIALOG,
+                "follow-state", TRUE,
                 NULL);
   gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (iconview),
                               renderer, FALSE);
diff --git a/shell/cc-window.c b/shell/cc-window.c
index 55ab0d9..6d9fd6b 100644
--- a/shell/cc-window.c
+++ b/shell/cc-window.c
@@ -782,6 +782,7 @@ setup_search (CcWindow *shell)
                 "xpad", 15,
                 "ypad", 10,
                 "stock-size", GTK_ICON_SIZE_DIALOG,
+                "follow-state", TRUE,
                 NULL);
   column = gtk_tree_view_column_new_with_attributes ("Icon", renderer,
                                                      "gicon", COL_GICON,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]