[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gEDA-dev: Re: Button ordering



Carlos Nieves Ónega wrote:

[snip]

> I'd like to get some report (specially for non Linux machines) including
> the OS, GTK version (can someone test it with GTK version < 2.6?),
> window environment (gnome, kde, mac, windows,...), button order
> displayed by the test program, and button order of other native programs
> (to see if they are the same).
> 
> Thanks,
> 
> Carlos
> 

First, I had to correct a small bug in your test program. According to 
the docs for "gtk_dialog_set_alternative_button_order", the argument 
list has to be terminated with -1 (patch attached).

I tested on Windows XP, first with the Cygwin linux layer, then with a 
native port of GCC (MinGW).

In my personal opinion, this method does the right thing on Windows.

OS: Windows XP Home Service Pack 2 + Cygwin
GTK version: 2.6.10
Output message: "Button order is the usual one: Cancel, OK"
Button order: [Help] ... [Cancel] [OK]

I guess this is correct for Cygwin: it manages to emulate Linux even at 
the GUI level.

The "..." above means: if you stretch the window, Help stays on the left 
and the other two go to the right.

OS: Windows XP Home Service Pack 2 + MinGW
GTK version: 2.8.18
Output message: "Button order is the alternative one: OK, Cancel"
Button order: [Help] ... [OK] [Cancel]

It appears reasonable, and works by default.

Some other native applications:

- The Gimp (also uses GTK):
[Help] ... [OK] [Cancel]
[Help] ... [Reset] [OK] [Cancel]

Also:

"Save the changes before closing?"
... [Save] [Don't Save] [Cancel]

"There is one image with unsaved changes"
[Help] ... [Discard Changes] [Cancel]

- Firefox (tools->options) and C++ Builder 5 (project->options):
... [OK] [Cancel] [Help]

- Microsoft Word 2000 (tools->options)
... [OK] [Cancel]

However, the help button in Word is a question mark on the title bar, at 
the left of the close button of the dialog:

[ Options ... ? X ]

You press it, and the mouse pointer gains a question mark. You click on 
a dialog item, and a tooltip-style help message appears.

Also:

"Do you want to save the changes?"
[Yes] [No] [Cancel]

- Internet Explorer (tools->Internet options):
... [OK] [Cancel] [Apply]
Like Word, there is also a question mark on the titlebar.

Cesar
--- test.orig.c	2006-09-13 23:55:17.111974400 -0300
+++ test.c	2006-09-13 23:54:47.549465600 -0300
@@ -57,7 +57,8 @@
   gtk_dialog_set_alternative_button_order(GTK_DIALOG(dialog),
 					  GTK_RESPONSE_OK,
 					  GTK_RESPONSE_CANCEL,
-					  GTK_RESPONSE_HELP);
+					  GTK_RESPONSE_HELP,
+					  -1);
 
   if (gtk_alternative_dialog_button_order(NULL)) {
     label = gtk_label_new ("This is a button order test dialog\nButton order is the alternative one: OK, Cancel");


_______________________________________________
geda-dev mailing list
geda-dev@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev