[gnome-control-center/gnome-3-20] search: force GTK_ICON_SIZE_DIALOG icon size
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-20] search: force GTK_ICON_SIZE_DIALOG icon size
- Date: Wed, 11 May 2016 10:26:45 +0000 (UTC)
commit fb822842ea6bf07fd1f326eeae5e15764f705994
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]