[gtk+/spinner] GtkAppChooserButton: Set a fixed icon size



commit 06dc512e9a846ebe575e777bf3ae36070ecda684
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jun 20 18:38:37 2014 -0400

    GtkAppChooserButton: Set a fixed icon size
    
    Set the size of the pixbuf cell to 24, to force scaling
    of app icons that are only available in bigger sizes.

 gtk/gtkappchooserbutton.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkappchooserbutton.c b/gtk/gtkappchooserbutton.c
index ea4bd90..9961b61 100644
--- a/gtk/gtkappchooserbutton.c
+++ b/gtk/gtkappchooserbutton.c
@@ -393,6 +393,7 @@ gtk_app_chooser_button_build_ui (GtkAppChooserButton *self)
                                         row_separator_func, NULL, NULL);
 
   cell = gtk_cell_renderer_pixbuf_new ();
+  gtk_cell_renderer_set_fixed_size (cell, 24, 24);
   gtk_cell_area_add_with_properties (area, cell,
                                      "align", FALSE,
                                      "expand", FALSE,


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