[Xfce4-commits] [panel-plugins/xfce4-timer-plugin] 11/22: Fix when horizontal progress direction progress direction

noreply at xfce.org noreply at xfce.org
Sat Dec 30 06:16:32 CET 2017


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

a   n   d   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository panel-plugins/xfce4-timer-plugin.

commit 8ff332394eb79eff9b0f1ef6fd78069b276b8152
Author: Daniel Muñiz Fontoira <dani at damufo.com>
Date:   Wed Dec 13 10:57:48 2017 +0100

    Fix when horizontal progress direction progress direction
    
    Now from right to left as another plugins.
---
 panel-plugin/xfcetimer.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/panel-plugin/xfcetimer.c b/panel-plugin/xfcetimer.c
index 5b76070..a879482 100644
--- a/panel-plugin/xfcetimer.c
+++ b/panel-plugin/xfcetimer.c
@@ -1071,10 +1071,13 @@ static void add_pbar(XfcePanelPlugin *plugin, plugin_data *pd){
     gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(pd->pbar),frac);
   }
   
-  gtk_progress_bar_set_inverted (GTK_PROGRESS_BAR(pd->pbar), TRUE);
+
 
   /* vertical bar */
   if(xfce_panel_plugin_get_orientation(plugin)==GTK_ORIENTATION_HORIZONTAL){
+
+    gtk_progress_bar_set_inverted (GTK_PROGRESS_BAR(pd->pbar), TRUE);
+
     pd->box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
     gtk_widget_set_halign (GTK_WIDGET (pd->pbar), GTK_ALIGN_CENTER);
     gtk_widget_set_hexpand (GTK_WIDGET (pd->pbar), TRUE);

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


More information about the Xfce4-commits mailing list