Bug 269035 - Order of OK and Cancel button is reversed
Summary: Order of OK and Cancel button is reversed
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.5   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-17 13:26 EDT by Marc Khouzam CLA
Modified: 2015-07-01 05:04 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Khouzam CLA 2009-03-17 13:26:43 EDT
I am on Linux with 3.5M6.

Any dialog with an Ok/Cancel button set has the button order reversed.
You can even see it in the workspace selection dialog when starting eclipse.

Not sure if the change was intentional... 
I found this annoying because (I am ashamed to admit it), three times, when I started eclipse and chose my workspace, I clicked on Cancel because that is where the OK used to be.  I kept thinking "Why is my eclipse not starting???".
I only noticed that I was clicking on Cancel after the third time :-O

Assuming I am an average use, this change will annoy other people too.
Comment 1 Marc Khouzam CLA 2009-03-17 13:43:08 EDT
This also affect yes/no dialogs
Comment 2 Marc Khouzam CLA 2009-03-17 13:44:12 EDT
Actually, it seems to affect every dialog.
Even "Cancel" and "Run in background"
have switched places in the dialog box.
Comment 4 Marc Khouzam CLA 2009-03-17 20:26:18 EDT
(In reply to comment #3)
> This is new in M6, see
> http://download.eclipse.org/eclipse/downloads/drops/S-3.5M6-200903130100/eclipse-news-M6.html

I had never noticed the New and Noteworthy link on the download page.
I'll make sure to read it before writing bugs next time.

Sorry about that.
Comment 5 Marvin Fröhlich CLA 2015-06-29 11:12:47 EDT
Just to give my +1 for this very annoying development.

Even, if I know, that this just follows platform rules, this should be changeable.

The link above to "You can change it, see:" is dead. How can I change it? Do I have to change system GTK themes?
Comment 6 Arun Thondapu CLA 2015-06-30 06:09:25 EDT
(In reply to Marvin  Fröhlich from comment #5)
> Just to give my +1 for this very annoying development.
> 
> Even, if I know, that this just follows platform rules, this should be
> changeable.
> 
> The link above to "You can change it, see:" is dead. How can I change it? Do
> I have to change system GTK themes?

The content mentioned in comment 3 has been archived and is available at the following links:

http://archive.eclipse.org/eclipse/downloads/drops/R-3.5-200906111540/eclipse-news-part3.html#jface-button-order

http://archive.eclipse.org/eclipse/downloads/drops/R-3.5-200906111540/eclipse-news-part1.html#buttonorder

HTH!
Comment 7 Marvin Fröhlich CLA 2015-07-01 03:40:55 EDT
Thanks for the links. They're for GTK2.0 though. Mars uses GTK3. For GTK3 you have to do the following:

Edit the file ~/.config/gkt-3.0/settings.ini
And add the line
gtk-alternative-button-order=1

Then you'll have the good ol' button order back again.
Comment 8 Arun Thondapu CLA 2015-07-01 04:52:47 EDT
(In reply to Marvin  Fröhlich from comment #7)
> Thanks for the links. They're for GTK2.0 though. Mars uses GTK3. For GTK3
> you have to do the following:
> 
> Edit the file ~/.config/gkt-3.0/settings.ini
> And add the line
> gtk-alternative-button-order=1
> 
> Then you'll have the good ol' button order back again.

Thanks for adding the GTK3 way of doing it, I was planning to mention that but missed it out.
Comment 9 Arun Thondapu CLA 2015-07-01 05:04:56 EDT
It probably makes sense to add an FAQ entry for this on the SWT FAQ page (https://www.eclipse.org/swt/faq.php). I'll take care of that.