[Xfce4-commits] <xfce4-indicator-plugin:master> we need to swap the size, when orientation changes

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


Updating branch refs/heads/master
         to 2c0cc99c948d1b5e1ff5fb11057a6bb549849a2d (commit)
       from 4e55a3d7292bd4f15b1555530f58e559cb99e965 (commit)

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