[balsa/gtk3] Force proper icon sizes



commit 4691a9c9ad09546950b2eced59aaf8cdb1e4f2b7
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Sat Jun 4 21:12:55 2016 -0400

    Force proper icon sizes
    
        * libbalsa/files.c (libbalsa_icon_finder): force proper icon
        sizes (e.g. in the message structure view).

 ChangeLog        |    7 +++++++
 libbalsa/files.c |    4 ++--
 2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 3dbaad3..23cb5d5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2016-06-04  Albrecht Dreß
 
+       Force proper icon sizes
+
+       * libbalsa/files.c (libbalsa_icon_finder): force proper icon
+       sizes (e.g. in the message structure view).
+
+2016-06-04  Albrecht Dreß
+
        We always use gtksourceview-3.0
 
        * Makefile.am: store helper files in a properly named folder;
diff --git a/libbalsa/files.c b/libbalsa/files.c
index 9774348..419675b 100644
--- a/libbalsa/files.c
+++ b/libbalsa/files.c
@@ -161,7 +161,7 @@ libbalsa_icon_finder(GtkWidget         * widget,
             g_object_get(G_OBJECT(icon), "names", &icon_names, NULL);
             while (!pixbuf && icon_names && icon_names[i]) {
                 pixbuf = gtk_icon_theme_load_icon(icon_theme, icon_names[i],
-                                                  width, 0, NULL);
+                                                  width, GTK_ICON_LOOKUP_FORCE_SIZE, NULL);
                 i++;
             }
             g_strfreev(icon_names);
@@ -175,7 +175,7 @@ libbalsa_icon_finder(GtkWidget         * widget,
                 if (slash)
                     *slash = '\0';
                 pixbuf = gtk_icon_theme_load_icon(icon_theme, base_type_icon,
-                                                   width, 0, NULL);
+                                                   width, GTK_ICON_LOOKUP_FORCE_SIZE, NULL);
                 g_free(base_type_icon);
             }
 


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