[Xfce4-commits] <xfce4-systemload-plugin:master> Set plugin to small in all modes except deskbar modes (bug # 8944).

Landry Breuil noreply at xfce.org
Fri May 25 21:54:01 CEST 2012


Updating branch refs/heads/master
         to 18a7cc8266a7e0c8ca87a19a96388d34d671be4f (commit)
       from 6496dd0a8f90e60bdb953e003d4062a9d87b9434 (commit)

commit 18a7cc8266a7e0c8ca87a19a96388d34d671be4f
Author: Harald Judt <h.judt at gmx.at>
Date:   Thu May 24 20:23:01 2012 +0200

    Set plugin to small in all modes except deskbar modes (bug # 8944).
    
    Signed-off-by: Landry Breuil <landry at xfce.org>

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

diff --git a/panel-plugin/systemload.c b/panel-plugin/systemload.c
index a35f1a8..183d29b 100644
--- a/panel-plugin/systemload.c
+++ b/panel-plugin/systemload.c
@@ -652,6 +652,12 @@ monitor_set_mode (XfcePanelPlugin *plugin, XfcePanelPluginMode mode,
   GtkOrientation orientation = (mode == XFCE_PANEL_PLUGIN_MODE_VERTICAL) ?
     GTK_ORIENTATION_VERTICAL : GTK_ORIENTATION_HORIZONTAL;
 
+  /* Set small in all modes except deskbar mode */
+  if (mode == XFCE_PANEL_PLUGIN_MODE_DESKBAR)
+      xfce_panel_plugin_set_small(XFCE_PANEL_PLUGIN(plugin), FALSE);
+  else
+      xfce_panel_plugin_set_small(XFCE_PANEL_PLUGIN(plugin), TRUE);
+
   monitor_update_orientation (plugin, panel_orientation, orientation, global);
   monitor_set_size (plugin, xfce_panel_plugin_get_size (plugin), global);
 }


More information about the Xfce4-commits mailing list