GNU bug report logs -
#43405
Tool bar item doesn't align to the right edge
Previous Next
Full log
View this message in rfc822 format
>>>>> On Thu, 17 Sep 2020 17:54:15 +0300, Eli Zaretskii <eliz <at> gnu.org> said:
>> From: Robert Pluim <rpluim <at> gmail.com>
>> Cc: 43405 <at> debbugs.gnu.org, juri <at> linkov.net
>> Date: Thu, 17 Sep 2020 16:43:37 +0200
>>
>> If the GtkToolbar child property "expand" is TRUE and the property
>> "draw" is set to FALSE, the effect is to force all following items to
>> the end of the toolbar.
>>
>> So if you do the following, all toolbar items added after this
>> separator end up on the right:
>>
>> ti = gtk_separator_tool_item_new ();
>> gtk_tool_item_set_expand (ti, true);
>> gtk_separator_tool_item_set_draw (GTK_SEPARATOR_TOOL_ITEM (ti), true);
>> gtk_toolbar_insert (GTK_TOOLBAR (wtoolbar), ti, j);
>>
>> It does produce an ugly empty patch in the middle of the toolbar
>> thatʼs a different colour though.
Eli> So you are saying that, while possible, doing this is not really
Eli> workable, since it produces ugly display?
You know this is 2020, so truth == lies, and lies == truth, right?
So, once I actually follow the documentation and pass 'false' in the right
place, the toolbar looks correct :-)
Now the question is: do we want to expose this to lisp, and if so,
how? I mean, I have no idea if the macOS or MS-Windows tool bar have
a similar feature.
Robert
This bug report was last modified 4 years and 267 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.