[Xfce4-commits] [panel-plugins/xfce4-wavelan-plugin] 05/09: Use GtkOrientable instead of *_set_orientation

noreply at xfce.org noreply at xfce.org
Sun May 1 18:06:18 CEST 2016


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

landry pushed a commit to branch master
in repository panel-plugins/xfce4-wavelan-plugin.

commit c49621f8052c76be12be9b577405834460de1e2e
Author: Landry Breuil <landry at xfce.org>
Date:   Sun May 1 18:02:24 2016 +0200

    Use GtkOrientable instead of *_set_orientation
---
 panel-plugin/wavelan.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/panel-plugin/wavelan.c b/panel-plugin/wavelan.c
index 703f149..7068150 100644
--- a/panel-plugin/wavelan.c
+++ b/panel-plugin/wavelan.c
@@ -392,14 +392,14 @@ wavelan_set_orientation(XfcePanelPlugin* plugin, GtkOrientation orientation, t_w
 {
   DBG("wavelan_set_orientation(%d)", orientation);
   wavelan->orientation = orientation;
-  xfce_hvbox_set_orientation(XFCE_HVBOX(wavelan->box), orientation);
+  gtk_orientable_set_orientation(GTK_ORIENTABLE(wavelan->box), orientation);
+  gtk_orientable_set_orientation(GTK_ORIENTABLE(wavelan->signal), !orientation);
+  gtk_progress_bar_set_inverted(GTK_PROGRESS_BAR(wavelan->signal), (orientation == GTK_ORIENTATION_HORIZONTAL));
   if (orientation == GTK_ORIENTATION_HORIZONTAL) {
-   gtk_progress_bar_set_orientation(GTK_PROGRESS_BAR(wavelan->signal), GTK_PROGRESS_BOTTOM_TO_TOP);
    gtk_widget_set_size_request(wavelan->signal, 8, -1);
    gtk_widget_set_size_request(wavelan->ebox, -1, wavelan->size);
    }
   else {
-   gtk_progress_bar_set_orientation(GTK_PROGRESS_BAR(wavelan->signal), GTK_PROGRESS_LEFT_TO_RIGHT);
    gtk_widget_set_size_request(wavelan->signal, -1, 8);
    gtk_widget_set_size_request(wavelan->ebox, wavelan->size, -1);
    }

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


More information about the Xfce4-commits mailing list