[Xfce4-commits] [panel-plugins/xfce4-mount-plugin] 03/06: Display percentage on progress bar again (regression from port to Gtk3)

noreply at xfce.org noreply at xfce.org
Mon Oct 1 20:34:45 CEST 2018


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

t   i   m   y   s   t   e   r   y       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-mount-plugin.

commit 59b90bfa986d7493430a40cd606a9ac0d336de6f
Author: Fabian <timystery at arcor.de>
Date:   Sat Sep 29 23:00:16 2018 +0200

    Display percentage on progress bar again (regression from port to Gtk3)
---
 panel-plugin/mount-plugin.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/panel-plugin/mount-plugin.c b/panel-plugin/mount-plugin.c
index 8792a04..c5133f0 100644
--- a/panel-plugin/mount-plugin.c
+++ b/panel-plugin/mount-plugin.c
@@ -264,6 +264,10 @@ disk_display_refresh (t_disk_display * disk_display)
             gtk_progress_bar_set_fraction (
                      GTK_PROGRESS_BAR(disk_display->progress_bar),
                      ((gdouble)mount_info->percent / 100) );
+            gtk_progress_bar_set_show_text (
+                     GTK_PROGRESS_BAR(disk_display->progress_bar),
+                     TRUE);
+
             gtk_progress_bar_set_text (
                      GTK_PROGRESS_BAR(disk_display->progress_bar),
                      g_strdup_printf ("%d%%",mount_info->percent));

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


More information about the Xfce4-commits mailing list