[Xfce4-commits] <xfce4-indicator-plugin:master> Merge branch 'mess'

Mark Trompell noreply at xfce.org
Wed May 25 08:34:02 CEST 2011


Updating branch refs/heads/master
         to 8b7fbe5991f5c6d389f3e5354848ca5f183191da (commit)
       from 81413767da5edbbde5791c7c23b34b8a830dc5f7 (commit)

commit 8b7fbe5991f5c6d389f3e5354848ca5f183191da
Merge: 8141376 2c0cc99
Author: Mark Trompell <mark at foresightlinux.org>
Date:   Wed May 25 08:31:50 2011 +0200

    Merge branch 'mess'

commit 2c0cc99c948d1b5e1ff5fb11057a6bb549849a2d
Author: Mark Trompell <mark at foresightlinux.org>
Date:   Wed May 25 08:31:18 2011 +0200

    we need to swap the size, when orientation changes

 panel-plugin/indicator.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/panel-plugin/indicator.c b/panel-plugin/indicator.c
index ef3c73c..92547f8 100644
--- a/panel-plugin/indicator.c
+++ b/panel-plugin/indicator.c
@@ -151,8 +151,11 @@ indicator_orientation_changed (XfcePanelPlugin *plugin,
                             GtkOrientation   orientation,
                             IndicatorPlugin    *indicator)
 {
+  gint sizex=-1, sizey=-1;
   gtk_menu_bar_set_pack_direction (GTK_MENU_BAR(indicator->menu),
         orientation == GTK_ORIENTATION_HORIZONTAL ? GTK_PACK_DIRECTION_LTR : GTK_PACK_DIRECTION_TTB );
+  gtk_widget_get_size_request (GTK_WIDGET (plugin), &sizex, &sizey);
+  gtk_widget_set_size_request (GTK_WIDGET (plugin), sizey, sizex);  
 }
 
 



More information about the Xfce4-commits mailing list