aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid <dbphillipsnz@gmail.com>2014-02-14 20:02:07 +1300
committerDavid <dbphillipsnz@gmail.com>2014-02-14 20:02:07 +1300
commit6173eb0eec3d1a0fbf5436e15cb314468f3f6c9c (patch)
tree850916b36f63f9f447a522255486b15464230a91
parentd9732f1e3f32ffbca61260146235bd11b0d26610 (diff)
downloadparamano-6173eb0eec3d1a0fbf5436e15cb314468f3f6c9c.tar.xz
Fixed CPU icon refresh
-rw-r--r--src/bat_tray.c2
-rw-r--r--src/tray.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bat_tray.c b/src/bat_tray.c
index 4a9de89..c8dd238 100644
--- a/src/bat_tray.c
+++ b/src/bat_tray.c
@@ -112,7 +112,7 @@ void bat_tray_init()
gtk_status_icon_set_from_file(tray, icon_file);
gtk_status_icon_set_has_tooltip (tray, TRUE);
g_signal_connect(G_OBJECT(tray), "query-tooltip", GTK_SIGNAL_FUNC(update_tooltip), NULL);
- gtk_timeout_add(1000, update_icon, NULL);
+ gtk_timeout_add(5000, update_icon, NULL);
}
diff --git a/src/tray.c b/src/tray.c
index b6d4e2b..13e995f 100644
--- a/src/tray.c
+++ b/src/tray.c
@@ -211,7 +211,6 @@ static void activate(GtkStatusIcon* statuc_icon,gpointer data)
static gboolean update_icon(gpointer user_data)
{
tray_update_icon_percent();
- return 0;
}
void tray_init()
@@ -284,6 +283,7 @@ void tray_update_icon_percent()
gtk_status_icon_set_from_file(tray, file);
g_free(file);
+
}
void tray_show()