[Xfce4-commits] [panel-plugins/xfce4-netload-plugin] 02/02: Reset correct orientation of box_bars

noreply at xfce.org noreply at xfce.org
Sun Nov 2 15:28:38 CET 2014


This is an automated email from the git hooks/post-receive script.

mmassonnet pushed a commit to branch master
in repository panel-plugins/xfce4-netload-plugin.

commit be4078b027e566fa9f20c67764e265d48b6d4e63
Author: Mike Massonnet <m8t at gandi.net>
Date:   Sun Nov 2 15:28:16 2014 +0100

    Reset correct orientation of box_bars
    
    Follow-up from commit 23ec87473efc5dd9da19c1b1968915521d56b2eb
---
 panel-plugin/netload.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/panel-plugin/netload.c b/panel-plugin/netload.c
index 22b9699..0ec0148 100644
--- a/panel-plugin/netload.c
+++ b/panel-plugin/netload.c
@@ -338,6 +338,7 @@ static void monitor_set_mode (XfcePanelPlugin *plugin, XfcePanelPluginMode mode,
     if (mode == XFCE_PANEL_PLUGIN_MODE_DESKBAR)
     {
         xfce_hvbox_set_orientation(XFCE_HVBOX(global->box), GTK_ORIENTATION_VERTICAL);
+        xfce_hvbox_set_orientation(XFCE_HVBOX(global->box_bars), GTK_ORIENTATION_VERTICAL);
         gtk_label_set_angle(GTK_LABEL(global->monitor->label), 0);
         gtk_misc_set_alignment(GTK_MISC(global->monitor->rcv_label), 0.5f, 1.0f);
         gtk_misc_set_alignment(GTK_MISC(global->monitor->sent_label), 0.5f, 0.0f);
@@ -350,6 +351,7 @@ static void monitor_set_mode (XfcePanelPlugin *plugin, XfcePanelPluginMode mode,
     else if (mode == XFCE_PANEL_PLUGIN_MODE_VERTICAL)
     {
         xfce_hvbox_set_orientation(XFCE_HVBOX(global->box), GTK_ORIENTATION_VERTICAL);
+        xfce_hvbox_set_orientation(XFCE_HVBOX(global->box_bars), GTK_ORIENTATION_VERTICAL);
         gtk_label_set_angle(GTK_LABEL(global->monitor->label), 270);
         gtk_misc_set_alignment(GTK_MISC(global->monitor->rcv_label), 0.5f, 1.0f);
         gtk_misc_set_alignment(GTK_MISC(global->monitor->sent_label), 0.5f, 0.0f);
@@ -364,6 +366,7 @@ static void monitor_set_mode (XfcePanelPlugin *plugin, XfcePanelPluginMode mode,
     else /* mode == XFCE_PANEL_PLUGIN_MODE_HORIZONTAL */
     {
         xfce_hvbox_set_orientation(XFCE_HVBOX(global->box), GTK_ORIENTATION_HORIZONTAL);
+        xfce_hvbox_set_orientation(XFCE_HVBOX(global->box_bars), GTK_ORIENTATION_HORIZONTAL);
         gtk_label_set_angle(GTK_LABEL(global->monitor->label), 0);
         gtk_misc_set_alignment(GTK_MISC(global->monitor->rcv_label), 1.0f, 0.5f);
         gtk_misc_set_alignment(GTK_MISC(global->monitor->sent_label), 0.0f, 0.5f);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list