[Xfce4-commits] [xfce/xfce4-power-manager] 05/63: Improve notification icon size

noreply at xfce.org noreply at xfce.org
Sun Mar 22 13:02:00 CET 2015


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository xfce/xfce4-power-manager.

commit c4f387f85a099f9572bc332ad2f5e41c821dd6b6
Author: Eric Koegel <eric.koegel at gmail.com>
Date:   Mon Mar 2 10:55:03 2015 +0300

    Improve notification icon size
    
    Before it was forcing the icon to a smaller size. Also switch to
    notify_notification_set_image_from_pixbuf since the other method
    is deprecated.
---
 common/xfpm-common.c |    2 +-
 src/xfpm-notify.c    |    3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/common/xfpm-common.c b/common/xfpm-common.c
index 51afc4a..a3fead1 100644
--- a/common/xfpm-common.c
+++ b/common/xfpm-common.c
@@ -169,7 +169,7 @@ GdkPixbuf *xfpm_icon_load (const gchar *icon_name, gint size)
     pix = gtk_icon_theme_load_icon (gtk_icon_theme_get_default (), 
 				    icon_name, 
 				    size,
-				    GTK_ICON_LOOKUP_USE_BUILTIN,
+				    GTK_ICON_LOOKUP_FORCE_SIZE,
 				    &error);
 				    
     if ( error )
diff --git a/src/xfpm-notify.c b/src/xfpm-notify.c
index 19e4c5a..4a65bf3 100644
--- a/src/xfpm-notify.c
+++ b/src/xfpm-notify.c
@@ -200,8 +200,7 @@ xfpm_notify_set_notification_icon (NotifyNotification *n, const gchar *icon_name
     
     if ( pix )
     {
-	notify_notification_set_icon_from_pixbuf (n,
-						  pix);
+	notify_notification_set_image_from_pixbuf (n, pix);
 	g_object_unref ( G_OBJECT(pix));
     }
     

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list