You are not logged in.
Pages: 1
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
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
Pages: 1
[ Generated in 0.010 seconds, 7 queries executed - Memory usage: 520.88 KiB (Peak: 521.72 KiB) ]