Bug 211788 GTK - Universal prompt should invert buttons order
patch by mpeseng@tin.it r=bryner sr=blizzard a=asa git-svn-id: svn://10.0.0.236/trunk@146006 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
30ae06dc68
commit
9314b24f0f
@ -225,11 +225,12 @@ EmbedPrompter::Create(PromptType aType, GtkWindow* aParentWindow)
|
||||
|
||||
if (aType == TYPE_UNIVERSAL) {
|
||||
// Create buttons based on the flags passed in.
|
||||
for (int i = 0; i < EMBED_MAX_BUTTONS; ++i) {
|
||||
for (int i = EMBED_MAX_BUTTONS; i >= 0; --i) {
|
||||
if (!mButtonLabels[i].IsEmpty())
|
||||
gtk_dialog_add_button(GTK_DIALOG(mWindow),
|
||||
mButtonLabels[i].get(), i);
|
||||
}
|
||||
gtk_dialog_set_default_response(GTK_DIALOG(mWindow), 0);
|
||||
} else {
|
||||
// Create standard ok and cancel buttons
|
||||
if (widgetFlags & INCLUDE_CANCEL)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user