Fix alertpanel_full usage
authorRicardo Mones <ricardo@mones.org>
Tue, 4 Sep 2018 08:18:59 +0000 (10:18 +0200)
committerRicardo Mones <ricardo@mones.org>
Tue, 4 Sep 2018 08:18:59 +0000 (10:18 +0200)
src/maildir_gtk.c

index 1fab80e29aa2427cdc68050d1cd471d784e7fef7..7c5aa960ae2b0c5abc4d8204fbcc83b981df1918 100644 (file)
@@ -285,8 +285,8 @@ static void remove_mailbox_cb(GtkAction *action, gpointer data)
                (_("Really remove the mailbox `%s' ?\n"
                   "(The messages are NOT deleted from the disk)"), name);
        avalue = alertpanel_full(_("Remove mailbox"), message,
-                                GTK_STOCK_CANCEL, _("_Remove"), NULL, FALSE,
-                                NULL, ALERT_WARNING, G_ALERTDEFAULT);
+                                GTK_STOCK_CANCEL, _("_Remove"), NULL, ALERTFOCUS_FIRST, FALSE,
+                                NULL, ALERT_WARNING);
        g_free(message);
        g_free(name);
        if (avalue != G_ALERTALTERNATE) return;
@@ -317,8 +317,8 @@ static void delete_folder_cb(GtkAction *action, gpointer data)
                (_("All folder(s) and message(s) under `%s' will be deleted.\n"
                   "Do you really want to delete?"), name);
        avalue= alertpanel_full(_("Delete folder"), message,
-                                GTK_STOCK_CANCEL, GTK_STOCK_DELETE, NULL, FALSE,
-                                NULL, ALERT_NOTICE, G_ALERTDEFAULT);
+                                GTK_STOCK_CANCEL, GTK_STOCK_DELETE, NULL,
+                                ALERTFOCUS_FIRST, FALSE, NULL, ALERT_NOTICE);
        g_free(message);
        if (avalue != G_ALERTALTERNATE) return;