[gnome-control-center] user-panel: make the autologin cell renderer follow state



commit 7181ca7c95b4fa9c08a02afbd95e4e17d196f133
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Sep 25 17:47:04 2012 -0400

    user-panel: make the autologin cell renderer follow state
    
    Since it renders a symbolic icon, let it follow the state, so
    it takes the selected text color when the row is selected
    
    https://bugzilla.gnome.org/show_bug.cgi?id=684828

 panels/user-accounts/um-user-panel.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/panels/user-accounts/um-user-panel.c b/panels/user-accounts/um-user-panel.c
index ca11303..5f5678b 100644
--- a/panels/user-accounts/um-user-panel.c
+++ b/panels/user-accounts/um-user-panel.c
@@ -1208,6 +1208,7 @@ setup_main_window (UmUserPanelPrivate *d)
         gtk_cell_layout_add_attribute (GTK_CELL_LAYOUT (column), cell, "markup", TITLE_COL);
         gtk_cell_layout_add_attribute (GTK_CELL_LAYOUT (column), cell, "visible", HEADING_ROW_COL);
         cell = gtk_cell_renderer_pixbuf_new ();
+        g_object_set (cell, "follow-state", TRUE, NULL);
         gtk_tree_view_column_pack_start (column, cell, FALSE);
         gtk_cell_layout_add_attribute (GTK_CELL_LAYOUT (column), cell, "visible", USER_ROW_COL);
         gtk_tree_view_column_set_cell_data_func (column,



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