[gnome-control-center] Printers: use the new sidebar-list icon size



commit 02c26cd2c0fa8fd21ddfc16819589b7067976bb5
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri May 20 12:29:57 2011 -0400

    Printers: use the new sidebar-list icon size
    
    Also add some padding for good looks.
    Overwhelmingly approved by #gnome-design.

 panels/printers/cc-printers-panel.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/panels/printers/cc-printers-panel.c b/panels/printers/cc-printers-panel.c
index 9921fe0..dd948b9 100644
--- a/panels/printers/cc-printers-panel.c
+++ b/panels/printers/cc-printers-panel.c
@@ -1156,7 +1156,8 @@ populate_printers_list (CcPrintersPanel *self)
 
 
   icon_renderer = gtk_cell_renderer_pixbuf_new ();
-  g_object_set (icon_renderer, "stock-size", GTK_ICON_SIZE_DND, NULL);
+  g_object_set (icon_renderer, "stock-size", gtk_icon_size_from_name ("cc-sidebar-list"), NULL);
+  gtk_cell_renderer_set_padding (icon_renderer, 4, 4);
   column = gtk_tree_view_column_new_with_attributes ("Icon", icon_renderer,
                                                      "icon-name", PRINTER_ICON_COLUMN, NULL);
   gtk_tree_view_column_set_expand (column, FALSE);



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