[gnome-panel] status-notifier: respect the enable-tooltips setting
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-panel] status-notifier: respect the enable-tooltips setting
- Date: Wed, 31 Jan 2018 21:20:02 +0000 (UTC)
commit 7164546b59e687938bbb51018b085af8d16d7a42
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Tue Jan 30 23:03:49 2018 +0200
    status-notifier: respect the enable-tooltips setting
 modules/status-notifier/sn-item-v0.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/modules/status-notifier/sn-item-v0.c b/modules/status-notifier/sn-item-v0.c
index 5e41c79..2804f09 100644
--- a/modules/status-notifier/sn-item-v0.c
+++ b/modules/status-notifier/sn-item-v0.c
@@ -270,6 +270,17 @@ update (SnItemV0 *v0)
 
       gtk_widget_set_tooltip_markup (GTK_WIDGET (v0), markup);
       g_free (markup);
+
+      if (markup != NULL)
+        {
+          SnApplet *applet;
+
+          applet = sn_item_get_applet (SN_ITEM (v0));
+          g_object_bind_property (applet, "enable-tooltips",
+                                  v0, "has-tooltip",
+                                  G_BINDING_DEFAULT |
+                                  G_BINDING_SYNC_CREATE);
+        }
     }
   else
     {
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]