[Xfce4-commits] [panel-plugins/xfce4-genmon-plugin] 07/08: Fix period spinner display when cancelled

noreply at xfce.org noreply at xfce.org
Sat Apr 4 19:26:10 CEST 2020


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

T   o   Z       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-genmon-plugin.

commit f1614157d10c29fddfc5ca320657a3af7aabab24
Author: ToZ <tony.paulic at gmail.com>
Date:   Sat Apr 4 13:21:34 2020 -0400

    Fix period spinner display when cancelled
---
 panel-plugin/main.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/panel-plugin/main.c b/panel-plugin/main.c
index fcb59c5..6f74014 100644
--- a/panel-plugin/main.c
+++ b/panel-plugin/main.c
@@ -50,6 +50,7 @@ typedef struct param_t {
     int				fTitleDisplayedtmp;
     char           *acTitle;
     uint32_t        iPeriod_ms;
+    uint32_t		iPeriod_mstmp;
     char           *acFont;
     char		   *acFonttmp;
 } param_t;
@@ -747,7 +748,7 @@ static void SetPeriod (GtkWidget *p_wSc, void *p_pvPlugin)
 
     TRACE ("SetPeriod()\n");
     r = gtk_spin_button_get_value (GTK_SPIN_BUTTON (p_wSc));
-    poConf->iPeriod_ms = (r * 1000);
+    poConf->iPeriod_mstmp = (r * 1000);
 }/* SetPeriod() */
 
 /**************************************************************/
@@ -849,6 +850,8 @@ static void genmon_dialog_response (GtkWidget *dlg, int response,
 			gtk_widget_show (GTK_WIDGET (poMonitor->wTitle));
 		else
 			gtk_widget_hide (GTK_WIDGET (poMonitor->wTitle));
+			
+		poConf->iPeriod_ms = poConf->iPeriod_mstmp;
 						
 		UpdateConf (genmon);
 		genmon_write_config (genmon->plugin, genmon);

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


More information about the Xfce4-commits mailing list