[gnome-control-center] search: force GTK_ICON_SIZE_DIALOG icon size



commit 3432b5b8c4aad23257cfb6b9a4f227b7093126ed
Author: Cosimo Cecchi <cosimo endlessm com>
Date:   Mon Jun 16 17:09:01 2014 -0700

    search: force GTK_ICON_SIZE_DIALOG icon size
    
    Force a pizel size too, so that we can work around applications not
    shipping icons at all sizes.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=764297

 panels/search/cc-search-panel.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/panels/search/cc-search-panel.c b/panels/search/cc-search-panel.c
index d2a0f3b..237d385 100644
--- a/panels/search/cc-search-panel.c
+++ b/panels/search/cc-search-panel.c
@@ -435,6 +435,7 @@ search_panel_add_one_app_info (CcSearchPanel *self,
 {
   GtkWidget *row, *box, *w;
   GIcon *icon;
+  gint width, height;
 
   /* gnome-control-center is special cased in the shell,
      and is not configurable */
@@ -462,6 +463,8 @@ search_panel_add_one_app_info (CcSearchPanel *self,
     g_object_ref (icon);
 
   w = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_DIALOG);
+  gtk_icon_size_lookup (GTK_ICON_SIZE_DIALOG, &width, &height);
+  gtk_image_set_pixel_size (GTK_IMAGE (w), MAX (width, height));
   gtk_container_add (GTK_CONTAINER (box), w);
   g_object_unref (icon);
 


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