Skip to content

Commit 7e9a3b3

Browse files
authored
OverwriteUncommittedConfirmationDialog: Correct icon name and buttons order (#1544)
1 parent 6cad63b commit 7e9a3b3

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/Dialogs/OverwriteUncommittedConfirmationDialog.vala

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,14 @@ public class Scratch.Dialogs.OverwriteUncommittedConfirmationDialog : Granite.Me
3535

3636
construct {
3737
modal = true;
38-
image_icon = new ThemedIcon ("dialog-stop");
38+
image_icon = new ThemedIcon ("dialog-warning");
3939

4040
primary_text = _("There are uncommitted changes in the current branch");
4141
///TRANSLATORS '%s' is a placeholder for the name of the branch to be checked out
42-
secondary_text = _("Uncommitted changes will be permanently lost if <b>'%s'</b> is checked out now.\n\n<i>It is recommended that uncommitted changes are stashed, committed, or reverted before proceeding </i>").printf (branch_name);
42+
secondary_text = _("Uncommitted changes will be permanently lost if <b>'%s'</b> is checked out now.\n\n<i>It is recommended that uncommitted changes are stashed, committed, or reverted before proceeding.</i>").printf (branch_name);
4343

44+
var cancel_button = add_button (_("Do not Checkout"), Gtk.ResponseType.REJECT);
4445
var proceed_button = (Gtk.Button) add_button (_("Checkout and Overwrite"), Gtk.ResponseType.ACCEPT);
4546
proceed_button.get_style_context ().add_class (Gtk.STYLE_CLASS_DESTRUCTIVE_ACTION);
46-
var cancel_button = add_button (_("Do not Checkout"), Gtk.ResponseType.REJECT);
47-
cancel_button.get_style_context ().add_class (Gtk.STYLE_CLASS_SUGGESTED_ACTION);
4847
}
4948
}

0 commit comments

Comments
 (0)