[Xfce4-commits] <xfce4-systemload-plugin:master> only set label angle with panel > 4.9

Landry Breuil noreply at xfce.org
Sat Jun 23 12:28:02 CEST 2012


Updating branch refs/heads/master
         to 522535569428beb2366795727696f84f9e2edef9 (commit)
       from 0c5c25aa7d6d2f6c52858d0d933cbe1a109bd090 (commit)

commit 522535569428beb2366795727696f84f9e2edef9
Author: Landry Breuil <landry at xfce.org>
Date:   Sat Jun 23 12:26:37 2012 +0200

    only set label angle with panel > 4.9

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

diff --git a/panel-plugin/systemload.c b/panel-plugin/systemload.c
index c44ea1a..c0572a3 100644
--- a/panel-plugin/systemload.c
+++ b/panel-plugin/systemload.c
@@ -215,8 +215,10 @@ monitor_update_orientation (XfcePanelPlugin  *plugin,
     for(count = 0; count < 3; count++)
     {
         xfce_hvbox_set_orientation(XFCE_HVBOX(global->monitor[count]->box), panel_orientation);
+#ifdef HAS_PANEL_49
         gtk_label_set_angle(GTK_LABEL(global->monitor[count]->label),
                             (orientation == GTK_ORIENTATION_HORIZONTAL) ? 0 : -90);
+#endif
         if (panel_orientation == GTK_ORIENTATION_HORIZONTAL)
         {
             gtk_progress_bar_set_orientation(GTK_PROGRESS_BAR(global->monitor[count]->status), GTK_PROGRESS_BOTTOM_TO_TOP);
@@ -226,8 +228,10 @@ monitor_update_orientation (XfcePanelPlugin  *plugin,
             gtk_progress_bar_set_orientation(GTK_PROGRESS_BAR(global->monitor[count]->status), GTK_PROGRESS_LEFT_TO_RIGHT);
         }
     }
+#ifdef HAS_PANEL_49
     gtk_label_set_angle(GTK_LABEL(global->uptime->label),
                         (orientation == GTK_ORIENTATION_HORIZONTAL) ? 0 : -90);
+#endif
 }
 
 static void


More information about the Xfce4-commits mailing list