[gnome-panel/wip/muktupavels/window-list-tooltips] wncklet: respect enable-tooltips setting in window-list applet




commit 2df8a5123e0ed1bf1de65b209ec92ead205d26c5
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Mon Oct 10 01:13:32 2022 +0300

    wncklet: respect enable-tooltips setting in window-list applet

 configure.ac                  | 2 +-
 modules/wncklet/window-list.c | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/configure.ac b/configure.ac
index c2c0f8fb7..c4c715fd7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -126,7 +126,7 @@ GDK_PIXBUF_REQUIRED=2.26.0
 PANGO_REQUIRED=1.15.4
 GLIB_REQUIRED=2.67.1
 GTK_REQUIRED=3.22.0
-LIBWNCK_REQUIRED=43.0
+LIBWNCK_REQUIRED=43.1
 LIBGNOME_MENU_REQUIRED=3.7.90
 LIBECAL_REQUIRED=3.33.2
 LIBEDATASERVER_REQUIRED=3.5.3
diff --git a/modules/wncklet/window-list.c b/modules/wncklet/window-list.c
index 7a6a627dd..c404e62a2 100644
--- a/modules/wncklet/window-list.c
+++ b/modules/wncklet/window-list.c
@@ -457,6 +457,10 @@ window_list_applet_fill (GpApplet *applet)
        wnck_tasklist_set_icon_loader (WNCK_TASKLIST (tasklist->tasklist),
                                       icon_loader_func, tasklist, NULL);
 
+       g_object_bind_property (tasklist, "enable-tooltips",
+                               tasklist->tasklist, "tooltips-enabled",
+                               G_BINDING_DEFAULT | G_BINDING_SYNC_CREATE);
+
        g_signal_connect (G_OBJECT (tasklist->tasklist), "destroy",
                          G_CALLBACK (destroy_tasklist),
                          tasklist);


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