mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
Bug 211788 GTK - Universal prompt should invert buttons order
patch by mpeseng@tin.it r=bryner sr=blizzard a=asa
This commit is contained in:
parent
1695e00a74
commit
8b7c693c0c
@ -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…
Reference in New Issue
Block a user