Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't turn off tooltips in window list #534

Open
jhalpin100 opened this issue Mar 16, 2017 · 16 comments
Open

Can't turn off tooltips in window list #534

jhalpin100 opened this issue Mar 16, 2017 · 16 comments

Comments

@jhalpin100
Copy link

jhalpin100 commented Mar 16, 2017

I keep getting tooltips in the window list widget, and can't turn them
off. I've used dconf-editor to turn off every entry it has for
tooltips, but I still see them for the window list.

When I say "window list" I'm referring to the item in the "Add to
Panel" dialog.

In dconf-editor, the org->mate->panel->general entry shows tooltips-
enabled = false. Is there a problem with dconf-editor? Maybe it's not
communicating the setting to the underlying system or something?

Thanks

Joe


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@muesli4
Copy link
Contributor

muesli4 commented Apr 28, 2017

Is there a problem with dconf-editor?

No. The gsettings key seems to be used only by very few panel applets (e.g. menu). The window list is based on libwnck's tasklist which doesn't support disabling tooltips.

@minuxlintebiandedition
Copy link

minuxlintebiandedition commented Feb 15, 2022

May I please ask for this issue to be reopened. It is still true that there is no obvious way to disable these tooltips but it can be done.
Please look at Linux Mint Debian Edition 3 or 4, these use mate panel with cinnamon, the window list, and nemo-preview, and the libwnck tooltips do not appear.
If nemo-preview is used with mate-desktop, the tooltips clash with the nemo-preview.

The tooltips do not pay any heed to the desktop theme, and are starting to look dated. May I suggest having a 'disable windowlist tooltips' tickbox option in the mate-panel configuration dialog?

@mbkma
Copy link
Member

mbkma commented Feb 15, 2022

This issue still is open.
I do not know cinnamon well, but I think they use their own panel: https://github.com/linuxmint/cinnamon/blob/master/js/ui/panel.js
I remember looking in the code of libwnck to make a disable tooltip setting, but I found it very complicated to get it working reliably.

@raveit65
Copy link
Member

raveit65 commented Feb 15, 2022

This is part of libwnck.
A while ago i use this patch for personal use which disables tooltips.

From d7dea81f5b8418aa9b8e2d44a1edbe7509706f10 Mon Sep 17 00:00:00 2001
From: raveit65 <[email protected]>
Date: Sun, 14 Jun 2020 18:47:41 +0200
Subject: [PATCH] task-list: disable tooltips

---
 libwnck/tasklist.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libwnck/tasklist.c b/libwnck/tasklist.c
index 2b20424..85ff463 100644
--- a/libwnck/tasklist.c
+++ b/libwnck/tasklist.c
@@ -3898,6 +3898,8 @@ wnck_task_create_widgets (WnckTask *task, GtkReliefStyle relief)
   gtk_widget_set_tooltip_text (task->button, text);
   g_free (text);
 
+  gtk_widget_set_has_tooltip (task->button, FALSE);
+
   /* Set up signals */
   if (GTK_IS_TOGGLE_BUTTON (task->button))
     g_signal_connect_object (G_OBJECT (task->button), "toggled",
-- 
2.26.2

So this is not directly in our hand.
In theory libwnck needs a function to enable/disable tooltips which we can call from mate-panel code.
Or a gsettings key in libwnck itself.
But i can't do that.

@minuxlintebiandedition
Copy link

I would love to use this 'patch' but I have no idea where to put it or what to do with it.

@minuxlintebiandedition
Copy link

Screenshot from 2022-03-06 10-43-17

@muesli4
Copy link
Contributor

muesli4 commented Mar 6, 2022

I would love to use this 'patch' but I have no idea where to put it or what to do with it.

As said countless times here, it is part of libwnck.

@minuxlintebiandedition
Copy link

I assume you mean adding that text to the source code and compiling it?

Or putting it in some config file?

@lukefromdc
Copy link
Member

That is c code to be patched into a source code file and built

@minuxlintebiandedition
Copy link

I have never compiled anything in my life.

@minuxlintebiandedition
Copy link

That is c code to be patched into a source code file and built

Ok

@linuxCowboy
Copy link

This long-standing issue has been annoying me, too.

The culprit is the libwnck library.

Window Navigator Construction Kit

Get the source in your distro

# debian
apt-get source libwnck3

patch tasklist.c

sed -i '/gtk_widget_set_tooltip_text/ s/ text/ NULL/' libwnck/tasklist.c

compile, copy to libdir and replace the link

e.g.
sudo ln -sf libwnck-3.so.0.3.0.fix libwnck-3.so.0

and the tooltips are gone for good!

You can test with

./test-tasklist

and find the exact library name with

ldd /usr/lib/mate-panel/wnck-applet |grep wnck
or
ldd test-tasklist |grep wnck

@muktupavels
Copy link
Contributor

@raveit65
Copy link
Member

Hmm, i just tested
https://gitlab.gnome.org/GNOME/libwnck/-/commit/6aa863b5825dd9dfbdbb0e60f52c598f1ba959e8
and
https://gitlab.gnome.org/GNOME/libwnck/-/commit/c55f49e18710e5d26cf5cc7301b140d1dc73b7c0
But it doesn't work very well. With most windows the tooltip are there. eg.
tooltips
Is there a work with mate-panel needed to see the option in panel settings?

@muktupavels
Copy link
Contributor

Automatically are hidden only useless tooltips. To completely disable tooltips you have to use API - wnck_tasklist_set_tooltips_enabled.

@raveit65
Copy link
Member

OK, got it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants