1
diff --git a/panel-plugin/systemload.c b/panel-plugin/systemload.c
2
index cc96ec4..027e8fe 100644
3
--- a/panel-plugin/systemload.c
4
+++ b/panel-plugin/systemload.c
5
@@ -315,11 +315,18 @@ monitor_control_new(XfcePanelPlugin *plugin)
8
t_global_monitor *global;
9
+ GtkSettings *settings;
11
tooltips = gtk_tooltips_new ();
12
g_object_ref (tooltips);
13
gtk_object_sink (GTK_OBJECT (tooltips));
15
+ /* reduce the default tooltip timeout to be smaller than the update
16
+ * interval otherwise we won't see tooltips on GTK 2.16 or newer */
17
+ settings = gtk_settings_get_default();
18
+ if (g_object_class_find_property(G_OBJECT_GET_CLASS(settings), "gtk-tooltip-timeout"))
19
+ g_object_set(settings, "gtk-tooltip-timeout", UPDATE_TIMEOUT - 10, NULL);
21
global = g_new(t_global_monitor, 1);
22
global->plugin = plugin;
23
global->timeout_id = 0;