[Xfce4-commits] <xfce4-screenshooter:master> Use GtkIconTheme functions instead of xfce_themed_icon.

Jérôme Guelfucci noreply at xfce.org
Thu Nov 25 22:48:02 CET 2010


Updating branch refs/heads/master
         to e8ab483698caceeae0e436dc7695c068dbfdfa5a (commit)
       from f3c5bb83a75088939c0c45c94d8660404327f384 (commit)

commit e8ab483698caceeae0e436dc7695c068dbfdfa5a
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date:   Thu Nov 25 22:46:39 2010 +0100

    Use GtkIconTheme functions instead of xfce_themed_icon.
    
    This fixes the build with Xfce's git master branch and works the same.

 panel-plugin/screenshooter-plugin.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/panel-plugin/screenshooter-plugin.c b/panel-plugin/screenshooter-plugin.c
index b0ac320..2d69ac5 100644
--- a/panel-plugin/screenshooter-plugin.c
+++ b/panel-plugin/screenshooter-plugin.c
@@ -119,7 +119,11 @@ cb_set_size (XfcePanelPlugin *plugin, int size, PluginData *pd)
                                     pd->button->style->ythickness);
 
   TRACE ("Get the icon from the theme");
-  pb = xfce_themed_icon_load (SCREENSHOT_ICON_NAME, width);
+  pb = gtk_icon_theme_load_icon (gtk_icon_theme_get_default (),
+                                 SCREENSHOT_ICON_NAME,
+                                 width,
+                                 GTK_ICON_LOOKUP_FORCE_SIZE,
+                                 NULL);
 
   TRACE ("Set the new icon");
   gtk_image_set_from_pixbuf (GTK_IMAGE (pd->image), pb);



More information about the Xfce4-commits mailing list