[gnome-system-monitor] Fix issue with system icon theme change



commit 330ce5972286730189a3503e842cba84b87d786b
Author: Luca Bacci <luca bacci982 gmail com>
Date:   Thu Dec 20 00:16:50 2018 +0100

    Fix issue with system icon theme change
    
    Currently, if the system icon theme is changed while gnome-system-monitor
    is running, it stops updating itself.
    
    make cb_refresh_icons() completely unaware of the timer.
    
    Fixes issue #96

 src/proctable.cpp | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/src/proctable.cpp b/src/proctable.cpp
index 3b85ffcb..03df1141 100644
--- a/src/proctable.cpp
+++ b/src/proctable.cpp
@@ -192,15 +192,11 @@ cb_refresh_icons (GtkIconTheme *theme, gpointer data)
 {
     GsmApplication *app = (GsmApplication *) data;
 
-    if(app->timeout) {
-        g_source_remove (app->timeout);
-    }
-
     for (auto& v : app->processes) {
         app->pretty_table->set_icon(v.second);
     }
 
-    cb_timeout(app);
+    proctable_update (app);
 }
 
 static gboolean


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]