[Xfce4-commits] <xfdesktop:master> Return TRUE in the size function.

Nick Schermer noreply at xfce.org
Sun Feb 14 14:48:01 CET 2010


Updating branch refs/heads/master
         to 625472d7025b59f49114c77c01b412d53999f333 (commit)
       from 55bddcdc6e251b5957e24d2b82142ec8f2812ca0 (commit)

commit 625472d7025b59f49114c77c01b412d53999f333
Author: Nick Schermer <nick at xfce.org>
Date:   Sun Feb 14 14:46:52 2010 +0100

    Return TRUE in the size function.
    
    Else the panel thinks the signal is not handled and
    set a forced size.

 panel-plugin/desktop-menu-plugin.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/panel-plugin/desktop-menu-plugin.c b/panel-plugin/desktop-menu-plugin.c
index d5670d2..4d90640 100644
--- a/panel-plugin/desktop-menu-plugin.c
+++ b/panel-plugin/desktop-menu-plugin.c
@@ -160,7 +160,7 @@ dmp_get_icon(const gchar *icon_name, gint size, GtkOrientation orientation)
     return pix;
 }
 
-static void
+static gboolean
 dmp_set_size(XfcePanelPlugin *plugin, gint wsize, DMPlugin *dmp)
 {
     gint width, height, size, pix_w = 0, pix_h = 0;
@@ -209,6 +209,8 @@ dmp_set_size(XfcePanelPlugin *plugin, gint wsize, DMPlugin *dmp)
     DBG("width: %d, height: %d", width, height);
     
     gtk_widget_set_size_request(dmp->button, width, height);
+
+    return TRUE;
 }
 
 static void



More information about the Xfce4-commits mailing list