Rework of alertpanel default button focus handling.
[claws.git] / src / plugins / archive / archiver_gtk.c
index aa9e1b3f6ea9b3a0e96315d3e09338cfd0f78435..c7982531fb55f3e388f99d51ec6ebdebef5e82ef 100644 (file)
@@ -571,8 +571,8 @@ static gboolean archiver_save_files(struct ArchivePage* page) {
                        AlertValue aval;
 
                        aval = alertpanel_full(_("Creating archive"), msg,
-                               GTK_STOCK_CANCEL, GTK_STOCK_OK, NULL, FALSE,
-                               NULL, ALERT_WARNING, G_ALERTDEFAULT);
+                               GTK_STOCK_CANCEL, GTK_STOCK_OK, NULL, ALERTFOCUS_FIRST, FALSE,
+                               NULL, ALERT_WARNING);
                        g_free(msg);
                        if (aval != G_ALERTALTERNATE)
                                return FALSE;
@@ -618,8 +618,8 @@ static gboolean archiver_save_files(struct ArchivePage* page) {
                                  "\nContinue anyway?"),
                                orig_file, g_slist_length(list));
                aval = alertpanel_full(_("Creating archive"), msg,
-                       GTK_STOCK_CANCEL, GTK_STOCK_OK, NULL, FALSE,
-                       NULL, ALERT_WARNING, G_ALERTDEFAULT);
+                       GTK_STOCK_CANCEL, GTK_STOCK_OK, NULL, ALERTFOCUS_FIRST, FALSE,
+                       NULL, ALERT_WARNING);
                g_free(msg);
                if (aval != G_ALERTALTERNATE) {
                        archive_free_file_list(page->md5, page->rename);