Xfce Forum

Sub domains
 

You are not logged in.

#1 2025-02-16 17:07:06

arambo
Member
Registered: 2025-02-16
Posts: 1
LinuxFirefox 135.0

docklike plugin popup window width is too narrow

The width of the popup in the Docklike plugin isnt enough to show full path names or long names and that makes navigation difficult for me.
i tried to search a solution for this problem with gtk.css (or in some other way) but could not find anything...

i'm on Xfce v: 4.20.0
Distro: MX-23.5_x64 Libretto

then i looked around the source code and found in GroupMenuItem.cpp :

gtk_label_set_width_chars(mLabel, 26);

i changed the 26 chars to 76 (... well... i rarelly compile anything anymore and it took me a bit to workout dependencies and such...)

and it works as i wanted it to!

after that i decided to add a new variable (labelWidth)  by duplicating a bit of code from HIDDEN SETTINGS
and changed the line to:

		int labelWidthChars = 26;
		if (Settings::labelWidth)
			labelWidthChars = Settings::labelWidth;
	gtk_label_set_width_chars(mLabel, labelWidthChars);

and added a new line to docklike-2.rc:

labelWidth=76

and also added to Settings.cpp:

		labelWidth.setup(g_key_file_get_integer(file, "user", "labelWidth", nullptr),
			[](int _labelWidth) -> void {
				g_key_file_set_integer(mFile.get(), "user", "labelWidth", _labelWidth);
				saveFile();
			});

and also to Settings.hpp:

	extern State<int> labelWidth;

this little hack also seems to be working without issues, but i still would prefer a simpler and more general solution like some simple edit in a gtk.css ...
or maybe i need to make a new feature request?

Offline

#2 2025-02-17 12:59:46

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,781
LinuxFirefox 135.0

Re: docklike plugin popup window width is too narrow

arambo wrote:

or maybe i need to make a new feature request?

Yes. I don't believe you can set label width with css. Plus its a menuitem which is difficult to isolate.


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.010 seconds, 7 queries executed - Memory usage: 520.88 KiB (Peak: 521.72 KiB) ]