Bug 194595 - Linux Toolbar can't be reduced in width like the windows one
Summary: Linux Toolbar can't be reduced in width like the windows one
Status: CLOSED DUPLICATE of bug 443185
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.3   Edit
Hardware: PC Unix All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Bogdan Gheorghe CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 65100
  Show dependency tree
 
Reported: 2007-06-27 07:43 EDT by Helmut J. Haigermoser CLA
Modified: 2016-07-29 16:09 EDT (History)
5 users (show)

See Also:


Attachments
Linux version with buttons missing the in the breakpoints view (6.44 KB, image/png)
2007-06-27 07:44 EDT, Helmut J. Haigermoser CLA
no flags Details
Windows version with all buttons accessible due to multiple lines (5.64 KB, image/png)
2007-06-27 07:44 EDT, Helmut J. Haigermoser CLA
no flags Details
Resizing toolbar example (1.07 KB, text/plain)
2007-06-28 07:08 EDT, Paul Webster CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut J. Haigermoser CLA 2007-06-27 07:43:37 EDT
Build ID: 3.3 RC4

Steps To Reproduce:
1. Open Eclipse
2. Open debug perspective, bring breakpoints view to front
3. Reduce the width of the breakpoints view (@see screenshots)


More information:
Windows manages to create more lines for the tool bar, linux only creates two..
Comment 1 Helmut J. Haigermoser CLA 2007-06-27 07:44:09 EDT
Created attachment 72583 [details]
Linux version with buttons missing the in the breakpoints view
Comment 2 Helmut J. Haigermoser CLA 2007-06-27 07:44:36 EDT
Created attachment 72584 [details]
Windows version with all buttons accessible due to multiple lines
Comment 3 Benjamin Muskalla CLA 2007-06-27 11:23:24 EDT
I think the reason behind this behavior is the fact that the GTK Toolbar implementation doesn't support the SWT.WRAP style bit afaik. But I wanna see this too :)
Comment 4 Kevin McGuire CLA 2007-06-27 14:42:36 EDT
Moving to SWT for comment on platform differences.
Comment 5 Bogdan Gheorghe CLA 2007-06-27 17:29:40 EDT
The GTK way of showing "hidden" items is to add an overflow menu and add items to it. 
Comment 6 Helmut J. Haigermoser CLA 2007-06-28 04:06:38 EDT
(In reply to comment #5)
> The GTK way of showing "hidden" items is to add an overflow menu and add items
> to it. 
> 

Ciao Gheorghe :)
So, are you going to fix this the "gtk way" or is the current behaviour
already the "gtk way"? I looked at the breakpoints view again and could not
find that "overflow menu", can you add an image to show this using the minimized breakpoints view I used?

Additionally, I saw that the little "triangle pointing down" icon, containing actions like "Group By" etc., gets a separate line in the process of reducing the width (see attachment), which is why I would assume that creating more lines on GTK is not that uncommon but I might be wrong...
Comment 7 Paul Webster CLA 2007-06-28 07:08:37 EDT
Created attachment 72675 [details]
Resizing toolbar example

This is the resizing toolbar snippet from http://www.eclipse.org/swt/snippets/

When I shrink the shell, the items just disappear and I don't get a chevron.

PW
Comment 8 Helmut J. Haigermoser CLA 2007-06-28 07:13:46 EDT
(In reply to comment #7)
> Created an attachment (id=72675) [details]
> Resizing toolbar example
> 
> This is the resizing toolbar snippet from http://www.eclipse.org/swt/snippets/
> 
> When I shrink the shell, the items just disappear and I don't get a chevron.
> 
> PW
> 
Thanks for pointing this out :)
So, looking at my linux pic above, what does this mean in regards to the chevron, is making a second line for it a separate bug?
Also, can you please answer my other questions in Comment 6?
By the by, thanks for looking into this! :)
Comment 9 Bogdan Gheorghe CLA 2007-06-28 10:26:59 EDT
I guess I wasn't clear enough. I'm not saying that SWT currently implements an overflow menu to deal with items that can't be shown due to a toolbar resize. 

I was merely pointing out that native GTK apps (like GIMP) make use of overflow menus instead of moving items to another line. We need to do some investigation to determine if it's worthwhile to add this support to SWT. 

The one immediate problem that comes to mind is the one Helmut points out in the Debug view: They already make use of a drop down menu to present other options to the user. It might be confusing to add yet another drop down to deal with the overflow of toolbar items.

Comment 10 Eric Moffatt CLA 2007-06-28 12:43:05 EDT
We already have a different visual affordance for these: TB overflow is indicated using a 'chevron' ( >> ) while the dropdown menu uses a triangle that points down.

This should at least mitigate any confusion...
Comment 11 Helmut J. Haigermoser CLA 2007-06-29 04:01:20 EDT
(In reply to comment #10)
> We already have a different visual affordance for these: TB overflow is
> indicated using a 'chevron' ( >> ) while the dropdown menu uses a triangle that
> points down.
> 
> This should at least mitigate any confusion...
> 
Ciao Eric :)
Looking at the pic above (Linux version...) I can see one chevron indicating
that there is insufficient space to display the views name. However, there is no chevron indicating that not all icons are shown with the Breakpoints view. 

So, using the chevron in the TB too (maybe even starting an effort to  consistently use chevrons all over the place) is a possible fix here

Another question is whether or not we should align the behaviour between windows and linux, the windows behaviour is IMHO far superior since it finds a way to display all icons while the gtk way seems to only be able to indicate that there might be some more icons. Looking at the triangle pointing down (which gets its own line once space is limited) I tend to think that shadowing the windows behaviour is doable and should be discussed here since linux looses usability if the proposed gtk way is implemented...
Comment 12 Paul Webster CLA 2007-06-29 06:56:03 EDT
(In reply to comment #11)
> Another question is whether or not we should align the behaviour between
> windows and linux, the windows behaviour is IMHO far superior since it finds a
> way to display all icons while the gtk way seems to only be able to indicate
> that there might be some more icons.

When we can fix this, it will be the linux way ... always select the platform behaviour unless prevented.

PW
Comment 13 Helmut J. Haigermoser CLA 2007-10-22 10:35:18 EDT
Any update on this one?
Comment 14 Eric Williams CLA 2016-07-29 16:09:26 EDT
This is actually a duplicate of bug 443185.

*** This bug has been marked as a duplicate of bug 443185 ***