2005-07-17 [paul] 1.9.12cvs76
authorPaul Mangan <paul@claws-mail.org>
Sun, 17 Jul 2005 12:14:10 +0000 (12:14 +0000)
committerPaul Mangan <paul@claws-mail.org>
Sun, 17 Jul 2005 12:14:10 +0000 (12:14 +0000)
* src/account.c
* src/addressbook.c
* src/alertpanel.c
* src/alertpanel.h
* src/compose.c
* src/exphtmldlg.c
* src/expldifdlg.c
* src/folderview.c
* src/imap_gtk.c
* src/inc.c
* src/message_search.c
* src/messageview.c
* src/mh_gtk.c
* src/news_gtk.c
* src/prefs_actions.c
* src/prefs_filtering.c
* src/prefs_matcher.c
* src/prefs_template.c
* src/prefs_themes.c
* src/ssl_manager.c
* src/summary_search.c
* src/textview.c
* src/toolbar.c
* src/gtk/sslcertwindow.c
* src/plugins/pgpcore/sgpgme.c
rework alertpanels

28 files changed:
ChangeLog-gtk2.claws
PATCHSETS
configure.ac
src/account.c
src/addressbook.c
src/alertpanel.c
src/alertpanel.h
src/compose.c
src/exphtmldlg.c
src/expldifdlg.c
src/folderview.c
src/gtk/sslcertwindow.c
src/imap_gtk.c
src/inc.c
src/message_search.c
src/messageview.c
src/mh_gtk.c
src/news_gtk.c
src/plugins/pgpcore/sgpgme.c
src/prefs_actions.c
src/prefs_filtering.c
src/prefs_matcher.c
src/prefs_template.c
src/prefs_themes.c
src/ssl_manager.c
src/summary_search.c
src/textview.c
src/toolbar.c

index 96549775c37083865663c8b3a0d0c386a563a8c2..c8c56c14c6a9d6306785a60a024f8ef9c71ea9c1 100644 (file)
@@ -1,3 +1,32 @@
+2005-07-17 [paul]      1.9.12cvs76
+
+       * src/account.c
+       * src/addressbook.c
+       * src/alertpanel.c
+       * src/alertpanel.h
+       * src/compose.c
+       * src/exphtmldlg.c
+       * src/expldifdlg.c
+       * src/folderview.c
+       * src/imap_gtk.c
+       * src/inc.c
+       * src/message_search.c
+       * src/messageview.c
+       * src/mh_gtk.c
+       * src/news_gtk.c
+       * src/prefs_actions.c
+       * src/prefs_filtering.c
+       * src/prefs_matcher.c
+       * src/prefs_template.c
+       * src/prefs_themes.c
+       * src/ssl_manager.c
+       * src/summary_search.c
+       * src/textview.c
+       * src/toolbar.c
+       * src/gtk/sslcertwindow.c
+       * src/plugins/pgpcore/sgpgme.c
+               rework alertpanels
+
 2005-07-17 [colin]     1.9.12cvs75
 
        * src/privacy.c
index c4ef3612713e61562368f58d01eba23dfc900b9f..7ce69e78ea5e2a17ad874cfcaf633385914d0f95 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.9.2.3 -r 1.9.2.4 src/gtk/sslcertwindow.c;  ) > 1.9.12cvs73.patchset
 ( cvs diff -u -r 1.17.2.16 -r 1.17.2.17 src/alertpanel.c;  ) > 1.9.12cvs74.patchset
 ( cvs diff -u -r 1.10.2.5 -r 1.10.2.6 src/privacy.c;  ) > 1.9.12cvs75.patchset
+( cvs diff -u -r 1.61.2.33 -r 1.61.2.34 src/account.c;  cvs diff -u -r 1.60.2.20 -r 1.60.2.21 src/addressbook.c;  cvs diff -u -r 1.17.2.17 -r 1.17.2.18 src/alertpanel.c;  cvs diff -u -r 1.5.2.4 -r 1.5.2.5 src/alertpanel.h;  cvs diff -u -r 1.382.2.143 -r 1.382.2.144 src/compose.c;  cvs diff -u -r 1.3.2.9 -r 1.3.2.10 src/exphtmldlg.c;  cvs diff -u -r 1.1.4.11 -r 1.1.4.12 src/expldifdlg.c;  cvs diff -u -r 1.207.2.46 -r 1.207.2.47 src/folderview.c;  cvs diff -u -r 1.1.2.16 -r 1.1.2.17 src/imap_gtk.c;  cvs diff -u -r 1.149.2.29 -r 1.149.2.30 src/inc.c;  cvs diff -u -r 1.3.12.9 -r 1.3.12.10 src/message_search.c;  cvs diff -u -r 1.94.2.57 -r 1.94.2.58 src/messageview.c;  cvs diff -u -r 1.2.2.9 -r 1.2.2.10 src/mh_gtk.c;  cvs diff -u -r 1.2.2.6 -r 1.2.2.7 src/news_gtk.c;  cvs diff -u -r 1.60.2.17 -r 1.60.2.18 src/prefs_actions.c;  cvs diff -u -r 1.59.2.21 -r 1.59.2.22 src/prefs_filtering.c;  cvs diff -u -r 1.43.2.20 -r 1.43.2.21 src/prefs_matcher.c;  cvs diff -u -r 1.12.2.13 -r 1.12.2.14 src/prefs_template.c;  cvs diff -u -r 1.3.2.20 -r 1.3.2.21 src/prefs_themes.c;  cvs diff -u -r 1.3.2.12 -r 1.3.2.13 src/ssl_manager.c;  cvs diff -u -r 1.15.2.16 -r 1.15.2.17 src/summary_search.c;  cvs diff -u -r 1.96.2.63 -r 1.96.2.64 src/textview.c;  cvs diff -u -r 1.43.2.20 -r 1.43.2.21 src/toolbar.c;  cvs diff -u -r 1.9.2.4 -r 1.9.2.5 src/gtk/sslcertwindow.c;  cvs diff -u -r 1.1.2.2 -r 1.1.2.3 src/plugins/pgpcore/sgpgme.c;  ) > 1.9.12cvs76.patchset
index 43d924fa6044f49031b5c75e2dc6749defac0982..45d14045c5ceba6baed58666ae476b45a9791065 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=12
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=75
+EXTRA_VERSION=76
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index 572d390485d6c328b77fd7023cbb99671b72c20f..5ab267dfe4b2262270cf97c64bbaa033e7399062 100644 (file)
@@ -944,8 +944,9 @@ static void account_delete(GtkWidget *widget, gpointer data)
                   _("Do you really want to delete the account '%s'?"),
                   ac_prefs->account_name ? ac_prefs->account_name :
                   _("(Untitled)"));
-       if (alertpanel(_("Delete account"), buf,
-                      _("Yes"), _("+No"), NULL) != G_ALERTDEFAULT)
+       if (alertpanel_full(_("Delete account"), buf,
+                           GTK_STOCK_YES, GTK_STOCK_NO, NULL, FALSE,
+                           NULL, ALERT_WARNING, G_ALERTALTERNATE) != G_ALERTDEFAULT)
                return;
 
        if (ac_prefs->folder) {
index 8ee706b5921b96bde45818e6b4f1942982322149..fc98160d67944c2b2e3cdd283c25597452e132e3 100644 (file)
@@ -3242,13 +3242,15 @@ static gboolean addressbook_convert( AddressIndex *addrIndex ) {
        }
        if( errFlag ) {
                debug_print( "Error\n%s\n", msg );
-               alertpanel_with_type( _( "Addressbook conversion error" ), msg, GTK_STOCK_CLOSE, 
-                                     NULL, NULL, NULL, ALERT_ERROR );
+               alertpanel_full(_("Addressbook conversion error"), msg,
+                               GTK_STOCK_CLOSE, NULL, NULL, FALSE,
+                               NULL, ALERT_ERROR, G_ALERTDEFAULT);
        }
        else if( msg ) {
                debug_print( "Warning\n%s\n", msg );
-               alertpanel_with_type( _( "Addressbook conversion" ), msg, GTK_STOCK_CLOSE, 
-                                     NULL, NULL, NULL, ALERT_WARNING );
+               alertpanel_full(_("Addressbook conversion error"), msg,
+                               GTK_STOCK_CLOSE, NULL, NULL, FALSE,
+                               NULL, ALERT_WARNING, G_ALERTDEFAULT);
        }
 
        return retVal;
@@ -3284,10 +3286,10 @@ void addressbook_read_file( void ) {
                /* Error reading address book */
                debug_print( "Could not read address index.\n" );
                addrindex_print_index( addrIndex, stdout );
-               alertpanel_with_type( _( "Addressbook Error" ),
-                           _( "Could not read address index" ),
-                           GTK_STOCK_CLOSE, NULL, NULL, NULL,
-                           ALERT_ERROR);
+               alertpanel_full(_("Addressbook Error"),
+                               _("Could not read address index"),
+                               GTK_STOCK_CLOSE, NULL, NULL, FALSE,
+                               NULL, ALERT_ERROR, G_ALERTDEFAULT);
        }
        debug_print( "done.\n" );
 }
index 1dfea5501fbf691adf2c6e3d4715b5440731ad0e..0b3b587922829005e7cf26cd99a6b4e4258d7c62 100644 (file)
@@ -54,7 +54,8 @@ static void alertpanel_create         (const gchar    *title,
                                         const gchar    *button3_label,
                                         gboolean        can_disable,
                                         GtkWidget      *custom_widget,
-                                        gint            alert_type);
+                                        gint            alert_type,
+                                        AlertValue      default_value);
 
 static void alertpanel_button_toggled  (GtkToggleButton        *button,
                                         gpointer                data);
@@ -67,17 +68,6 @@ static gboolean alertpanel_close     (GtkWidget              *widget,
                                         GdkEventAny            *event,
                                         gpointer                data);
 
-AlertValue alertpanel(const gchar *title,
-                     const gchar *message,
-                     const gchar *button1_label,
-                     const gchar *button2_label,
-                     const gchar *button3_label)
-{
-       return alertpanel_with_type(title, message, button1_label,
-                                   button2_label, button3_label,
-                                   NULL, ALERT_QUESTION);
-}
-
 AlertValue alertpanel_with_widget(const gchar *title,
                                  const gchar *message,
                                  const gchar *button1_label,
@@ -85,18 +75,20 @@ AlertValue alertpanel_with_widget(const gchar *title,
                                  const gchar *button3_label,
                                  GtkWidget *widget)
 {
-       return alertpanel_with_type(title, message, button1_label,
+       return alertpanel_full(title, message, button1_label,
                                    button2_label, button3_label,
-                                   widget, ALERT_QUESTION);
+                                   FALSE, widget, ALERT_QUESTION,
+                                   G_ALERTDEFAULT);
 }
 
-AlertValue alertpanel_with_type(const gchar *title,
-                               const gchar *message,
-                               const gchar *button1_label,
-                               const gchar *button2_label,
-                               const gchar *button3_label,
-                               GtkWidget   *widget,
-                               gint         alert_type)
+AlertValue alertpanel_full(const gchar *title, const gchar *message,
+                          const gchar *button1_label,
+                          const gchar *button2_label,
+                          const gchar *button3_label,
+                          gboolean     can_disable,
+                          GtkWidget   *widget,
+                          AlertType    alert_type,
+                          AlertValue   default_value)
 {
        if (alertpanel_is_open)
                return -1;
@@ -104,41 +96,35 @@ AlertValue alertpanel_with_type(const gchar *title,
                alertpanel_is_open = TRUE;
        
        alertpanel_create(title, message, button1_label, button2_label,
-                         button3_label, FALSE, widget, alert_type);
+                         button3_label, can_disable, widget, alert_type,
+                         default_value);
        alertpanel_show();
 
        debug_print("return value = %d\n", value);
        return value;
 }
 
-static void alertpanel_message(const gchar *title, const gchar *message, gint type)
+AlertValue alertpanel(const gchar *title,
+                     const gchar *message,
+                     const gchar *button1_label,
+                     const gchar *button2_label,
+                     const gchar *button3_label)
 {
-       if (alertpanel_is_open)
-               return;
-       else
-               alertpanel_is_open = TRUE;
-
-       alertpanel_create(title, message, NULL, NULL, NULL, FALSE, NULL, type);
-       alertpanel_show();
+       return alertpanel_full(title, message, button1_label, button2_label,
+                              button3_label, FALSE, NULL, ALERT_QUESTION,
+                              G_ALERTDEFAULT);
 }
 
-AlertValue alertpanel_message_with_disable(const gchar *title,
-                                          const gchar *message,
-                                          const gchar  *button1_label,
-                                          const gchar  *button2_label,
-                                          const gchar  *button3_label,
-                                          gint alert_type)
+static void alertpanel_message(const gchar *title, const gchar *message, gint type)
 {
        if (alertpanel_is_open)
-               return 0;
+               return;
        else
                alertpanel_is_open = TRUE;
 
-       alertpanel_create(title, message, button1_label, button2_label, 
-                         button3_label, TRUE, NULL, alert_type);
+       alertpanel_create(title, message, GTK_STOCK_CLOSE, NULL, NULL,
+                         FALSE, NULL, type, G_ALERTDEFAULT);
        alertpanel_show();
-
-       return value;
 }
 
 void alertpanel_notice(const gchar *format, ...)
@@ -199,7 +185,9 @@ void alertpanel_error_log(const gchar *format, ...)
        mainwin = mainwindow_get_mainwindow();
        
        if (mainwin && mainwin->logwin) {
-               val = alertpanel_with_type(_("Error"), buf, _("OK"), _("View log"), NULL, NULL, ALERT_ERROR);
+               val = alertpanel_full(_("Error"), buf, GTK_STOCK_OK,
+                                     _("View log"), NULL, FALSE, NULL,
+                                     ALERT_ERROR, G_ALERTDEFAULT);
                if (val == G_ALERTALTERNATE)
                        log_window_show(mainwin->logwin);
        } else
@@ -232,11 +220,12 @@ static void alertpanel_create(const gchar *title,
                              const gchar *button3_label,
                              gboolean     can_disable,
                              GtkWidget   *custom_widget,
-                             gint         alert_type)
+                             gint         alert_type,
+                             AlertValue   default_value)
 {
        static PangoFontDescription *font_desc;
+       GtkWidget *image;
        GtkWidget *label;
-       GtkWidget *w_hbox;
        GtkWidget *hbox;
        GtkWidget *vbox;
        GtkWidget *disable_chkbtn;
@@ -244,7 +233,6 @@ static void alertpanel_create(const gchar *title,
        GtkWidget *button1;
        GtkWidget *button2;
        GtkWidget *button3;
-       GtkWidget *icon;
        const gchar *label2;
        const gchar *label3;
        
@@ -252,11 +240,6 @@ static void alertpanel_create(const gchar *title,
                                "size=\"larger\">%s</span>",
                                title?title:"");
 
-       gchar *icon_desc[] = {  GTK_STOCK_DIALOG_INFO,
-                               GTK_STOCK_DIALOG_QUESTION,
-                               GTK_STOCK_DIALOG_WARNING,
-                               GTK_STOCK_DIALOG_ERROR };
-
        debug_print("Creating alert panel dialog...\n");
 
        dialog = gtk_dialog_new();
@@ -269,29 +252,40 @@ static void alertpanel_create(const gchar *title,
        gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER);
        g_signal_connect(G_OBJECT(dialog), "delete_event",
                         G_CALLBACK(alertpanel_deleted),
-                        (gpointer)G_ALERTOTHER);
+                        (gpointer)G_ALERTCANCEL);
        g_signal_connect(G_OBJECT(dialog), "key_press_event",
                         G_CALLBACK(alertpanel_close),
-                        (gpointer)G_ALERTOTHER);
-
-       gtk_box_set_spacing (GTK_BOX (GTK_DIALOG (dialog)->vbox), 14);
-       hbox = gtk_hbox_new (FALSE, 12);
-       gtk_container_set_border_width (GTK_CONTAINER (hbox), 5);
-       gtk_widget_show (hbox);
-       gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), hbox,
-                           FALSE, FALSE, 0);
+                        (gpointer)G_ALERTCANCEL);
+
+       /* for title icon, label and message */
+       hbox = gtk_hbox_new(FALSE, 12);
+       gtk_container_set_border_width(GTK_CONTAINER(hbox), 12);
+       gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox),
+                          hbox, FALSE, FALSE, 0);
+
+       /* title icon */
+       switch (alert_type) {
+       case ALERT_QUESTION:
+               image = gtk_image_new_from_stock
+                       (GTK_STOCK_DIALOG_QUESTION, GTK_ICON_SIZE_DIALOG);
+               break;
+       case ALERT_WARNING:
+               image = gtk_image_new_from_stock
+                       (GTK_STOCK_DIALOG_WARNING, GTK_ICON_SIZE_DIALOG);
+               break;
+       case ALERT_ERROR:
+               image = gtk_image_new_from_stock
+                       (GTK_STOCK_DIALOG_ERROR, GTK_ICON_SIZE_DIALOG);
+               break;
+       case ALERT_NOTICE:
+       default:
+               image = gtk_image_new_from_stock
+                       (GTK_STOCK_DIALOG_INFO, GTK_ICON_SIZE_DIALOG);
+               break;
+       }
+       gtk_misc_set_alignment(GTK_MISC(image), 0.5, 0.0);
+       gtk_box_pack_start(GTK_BOX(hbox), image, FALSE, FALSE, 0);
 
-       /* for title label */
-       w_hbox = gtk_hbox_new(FALSE, 0);
-       
-       if (alert_type < 0 || alert_type > 3)
-               alert_type = 0;
-       
-       icon = gtk_image_new_from_stock(icon_desc[alert_type],
-                                       GTK_ICON_SIZE_DIALOG); 
-       gtk_misc_set_alignment (GTK_MISC (icon), 0.5, 0.0);
-       gtk_box_pack_start (GTK_BOX (hbox), icon, FALSE, FALSE, 0);
-       
        vbox = gtk_vbox_new (FALSE, 12);
        gtk_box_pack_start (GTK_BOX (hbox), vbox, TRUE, TRUE, 0);
        gtk_widget_show (vbox);
@@ -322,6 +316,7 @@ static void alertpanel_create(const gchar *title,
        gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT);
        gtk_label_set_line_wrap(GTK_LABEL(label), TRUE);
        gtk_label_set_selectable(GTK_LABEL(label), TRUE);
+       GTK_WIDGET_UNSET_FLAGS(label, GTK_CAN_FOCUS);
        gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
        gtk_widget_show(label);
                
@@ -330,7 +325,7 @@ static void alertpanel_create(const gchar *title,
                gtk_box_pack_start(GTK_BOX(vbox), custom_widget, FALSE,
                                   FALSE, 0);
        }
-       
+
        if (can_disable) {
                hbox = gtk_hbox_new(FALSE, 0);
                gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), hbox,
@@ -365,11 +360,13 @@ static void alertpanel_create(const gchar *title,
        gtk_container_set_border_width(GTK_CONTAINER(confirm_area), 5);
        gtk_widget_grab_default(button1);
        gtk_widget_grab_focus(button1);
-       if (button2_label && *button2_label == '+') {
+       if (button2_label &&
+           (default_value == G_ALERTALTERNATE || *button2_label == '+')) {
                gtk_widget_grab_default(button2);
                gtk_widget_grab_focus(button2);
        }
-       if (button3_label && *button3_label == '+') {
+       if (button3_label &&
+           (default_value == G_ALERTOTHER || *button3_label == '+')) {
                gtk_widget_grab_default(button3);
                gtk_widget_grab_focus(button3);
        }
index e8d9cd8419affd1edf65938c6bd1bcb71e32c9e7..25384e29ffbbac0b4ba0673e9a4f24c30e269f84 100644 (file)
@@ -27,6 +27,7 @@ typedef enum
        G_ALERTDEFAULT,
        G_ALERTALTERNATE,
        G_ALERTOTHER,
+       G_ALERTCANCEL,
        G_ALERTWAIT,
 
        G_ALERTDISABLE  = 1 << 16
@@ -41,6 +42,15 @@ typedef enum
 } AlertType;
 #define G_ALERT_VALUE_MASK     0x0000ffff
 
+AlertValue alertpanel_full(const gchar *title, const gchar *message,
+                          const gchar *button1_label,
+                          const gchar *button2_label,
+                          const gchar *button3_label,
+                          gboolean     can_disable,
+                          GtkWidget   *widget,
+                          AlertType    alert_type,
+                          AlertValue   default_value);
+
 AlertValue alertpanel  (const gchar    *title,
                         const gchar    *message,
                         const gchar    *button1_label,
@@ -54,20 +64,6 @@ AlertValue alertpanel_with_widget    (const gchar *title,
                                         const gchar *button3_label,
                                         GtkWidget *widget);
 
-AlertValue alertpanel_with_type        (const gchar *title,
-                                const gchar *message,
-                                const gchar *button1_label,
-                                const gchar *button2_label,
-                                const gchar *button3_label,
-                                GtkWidget   *widget,
-                                gint         alert_type);
-
-AlertValue alertpanel_message_with_disable     (const gchar    *title,
-                                                const gchar    *message,
-                                                const gchar    *button1_label,
-                                                const gchar    *button2_label,
-                                                const gchar    *button3_label,
-                                                gint            alert_type);
 
 void alertpanel_notice (const gchar    *format,
                         ...) G_GNUC_PRINTF(1, 2);
index 06204f4e313e507ccc316d4a06ca53a089b84048..9785cb0bd82e05dd6f319da38d364f11879f2761 100644 (file)
@@ -3607,9 +3607,9 @@ static gint compose_write_to_file(Compose *compose, FILE *fp, gint action)
                                msg = g_strdup_printf(_("Can't convert the character encoding of the message from\n"
                                                        "%s to %s.\n"
                                                        "Send it anyway?"), src_codeset, out_codeset);
-                               aval = alertpanel_with_type
-                                       (_("Error"), msg, _("Yes"), _("+No"), NULL, NULL, ALERT_ERROR);
-                               g_free(msg);
+                               aval = alertpanel_full(_("Error"), msg, GTK_STOCK_YES, GTK_STOCK_NO, NULL, FALSE,
+                                                     NULL, ALERT_ERROR, G_ALERTALTERNATE);
+       g_free(msg);
 
                                if (aval != G_ALERTDEFAULT) {
                                        g_free(chars);
@@ -6093,7 +6093,9 @@ static gboolean compose_ext_editor_kill(Compose *compose)
                        (_("The external editor is still working.\n"
                           "Force terminating the process?\n"
                           "process group id: %d"), -pgid);
-               val = alertpanel(_("Notice"), msg, _("Yes"), _("+No"), NULL);
+               val = alertpanel_full(_("Notice"), msg, GTK_STOCK_YES, GTK_STOCK_NO,
+                                     NULL, FALSE, NULL, ALERT_WARNING, G_ALERTALTERNATE);
+                       
                g_free(msg);
 
                if (val == G_ALERTDEFAULT) {
@@ -6380,7 +6382,7 @@ static void compose_send_cb(gpointer data, guint action, GtkWidget *widget)
        if (prefs_common.work_offline)
                if (alertpanel(_("Offline warning"), 
                               _("You're working offline. Override?"),
-                              _("Yes"), _("No"), NULL) != G_ALERTDEFAULT)
+                              GTK_STOCK_YES, GTK_STOCK_NO, NULL) != G_ALERTDEFAULT)
                        return;
        
        if (compose->draft_timeout_tag != -1) { /* CLAWS: disable draft timeout */
index c190a484aab827ad6d7134386a892115a7aff760..245e02837d88786923e7e3332987ebec496a2afd 100644 (file)
@@ -183,7 +183,7 @@ static gboolean exp_html_move_file( void ) {
                "does not exist. OK to create new directory?" ),
                _exportCtl_->dirOutput );
        aval = alertpanel( _("Create Directory" ),
-               msg, _( "Yes" ), _( "No" ), NULL );
+               msg, GTK_STOCK_YES, GTK_STOCK_NO, NULL );
        g_free( msg );
        if( aval != G_ALERTDEFAULT ) return FALSE;
 
@@ -193,8 +193,9 @@ static gboolean exp_html_move_file( void ) {
                msg = g_strdup_printf( _(
                        "Could not create output directory for HTML file:\n%s" ),
                        reason );
-               aval = alertpanel_with_type( _( "Failed to Create Directory" ),
-                       msg, _( "Close" ), NULL, NULL, NULL, ALERT_ERROR );
+               aval = alertpanel_full(_("Failed to Create Directory"), msg,
+                                      GTK_STOCK_CLOSE, NULL, NULL, FALSE,
+                                      NULL, ALERT_ERROR, G_ALERTDEFAULT);
                g_free( msg );
                return FALSE;
        }
index b2d7a8715aff01059b4534d418a7ecd1f5a04ac6..9995ad2e2ad1c106d705832709935ba0d8d88aee 100644 (file)
@@ -190,7 +190,7 @@ static gboolean exp_ldif_move_file( void ) {
                "does not exist. OK to create new directory?" ),
                _exportCtl_->dirOutput );
        aval = alertpanel( _("Create Directory" ),
-               msg, _( "Yes" ), _( "No" ), NULL );
+               msg, GTK_STOCK_YES, GTK_STOCK_NO, NULL );
        g_free( msg );
        if( aval != G_ALERTDEFAULT ) return FALSE;
 
@@ -200,8 +200,9 @@ static gboolean exp_ldif_move_file( void ) {
                msg = g_strdup_printf( _(
                        "Could not create output directory for LDIF file:\n%s" ),
                        reason );
-               aval = alertpanel_with_type( _( "Failed to Create Directory" ),
-                       msg, _( "Close" ), NULL, NULL, NULL, ALERT_ERROR );
+               aval = alertpanel_full(_("Failed to Create Directory"), msg,
+                                      GTK_STOCK_CLOSE, NULL, NULL, FALSE,
+                                      NULL, ALERT_ERROR, G_ALERTDEFAULT);
                g_free( msg );
                return FALSE;
        }
@@ -248,7 +249,7 @@ static gboolean exp_ldif_move_dn( void ) {
                                "for an LDAP server. Are you sure you wish " \
                                "to proceed without a suffix?"
                         ),
-                       _( "Yes" ), _( "No" ), NULL );
+                       GTK_STOCK_YES, GTK_STOCK_NO, NULL );
                if( aval != G_ALERTDEFAULT ) {
                        gtk_widget_grab_focus( expldif_dlg.entrySuffix );
                        errFlag = TRUE;
index c2fa342c38b7153f1f7cac6d47d750704edbdede..783ce55be01516712c395d17623d7d026c3dbe28 100644 (file)
@@ -1868,7 +1868,7 @@ static void folderview_empty_trash_cb(FolderView *folderview, guint action,
        if (prefs_common.ask_on_clean) {
                if (alertpanel(_("Empty trash"),
                               _("Empty all messages in trash?"),
-                              _("Yes"), _("No"), NULL) != G_ALERTDEFAULT)
+                              GTK_STOCK_YES, GTK_STOCK_NO, NULL) != G_ALERTDEFAULT)
                        return;
        }
        
@@ -1952,8 +1952,9 @@ void folderview_move_folder(FolderView *folderview, FolderItem *from_folder,
                buf = g_strdup_printf(_("Do you really want to make folder '%s' a "
                                        "sub-folder of '%s' ?"), from_folder->name,
                                        to_folder->name);
-               status = alertpanel_message_with_disable(_("Move folder"), buf, 
-                               _("Yes"), _("No"), NULL, ALERT_QUESTION);
+               status = alertpanel_full(_("Move folder"), buf,
+                                        GTK_STOCK_YES, GTK_STOCK_NO, NULL, TRUE,
+                                        NULL, ALERT_QUESTION, G_ALERTALTERNATE);
                g_free(buf);
 
                if (status != G_ALERTDEFAULT
index 62ddd9beeb8cd122463f97b2f9aacf919276e040..6ba8f21ddf54a92ed6fb4a4e268618cdddafbcb9 100644 (file)
@@ -226,7 +226,8 @@ void sslcertwindow_show_cert(SSLCertificate *cert)
        gchar *buf;
        
        buf = g_strdup_printf(_("SSL certificate for %s"), cert->host);
-       alertpanel_with_type(buf, NULL, _("OK"), NULL, NULL, cert_widget, ALERT_NOTICE);
+       alertpanel_full(buf, NULL, GTK_STOCK_CLOSE, NULL, NULL,
+                       FALSE, cert_widget, ALERT_NOTICE, G_ALERTDEFAULT);
        g_free(buf);
 }
 
@@ -240,7 +241,7 @@ gboolean sslcertwindow_ask_new_cert(SSLCertificate *cert)
        GtkWidget *cert_widget;
        
        vbox = gtk_vbox_new(FALSE, 5);
-       buf = g_strdup_printf(_("Certificate for %s is unknown. Do you want to accept it?"), cert->host);
+       buf = g_strdup_printf(_("Certificate for %s is unknown.\nDo you want to accept it?"), cert->host);
        label = gtk_label_new(buf);
        gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5);
        gtk_box_pack_start(GTK_BOX(vbox), label, TRUE, TRUE, 0);
@@ -262,7 +263,10 @@ gboolean sslcertwindow_ask_new_cert(SSLCertificate *cert)
        gtk_box_pack_start(GTK_BOX(vbox), button, FALSE, FALSE, 0);
        cert_widget = cert_presenter(cert);
        gtk_container_add(GTK_CONTAINER(button), cert_widget);
-       val = alertpanel_with_type(_("Unknown SSL Certificate"), NULL, _("Accept and save"), _("Cancel connection"), NULL, vbox, ALERT_QUESTION);
+
+       val = alertpanel_full(_("Unknown SSL Certificate"), NULL,
+                             _("Accept and save"), _("Cancel connection"), NULL,
+                             FALSE, vbox, ALERT_QUESTION, G_ALERTDEFAULT);
        
        return (val == G_ALERTDEFAULT);
 }
@@ -313,7 +317,9 @@ gboolean sslcertwindow_ask_changed_cert(SSLCertificate *old_cert, SSLCertificate
        gtk_box_pack_start(GTK_BOX(vbox2), button, FALSE, FALSE, 0);
        gtk_container_add(GTK_CONTAINER(button), vbox);
 
-       val = alertpanel_with_type(_("Changed SSL Certificate"), NULL, _("Accept and save"), _("Cancel connection"), NULL, vbox2, ALERT_WARNING);
+       val = alertpanel_full(_("Changed SSL Certificate"), NULL,
+                             _("Accept and save"), _("Cancel connection"), NULL,
+                             FALSE, vbox2, ALERT_WARNING, G_ALERTDEFAULT);
        
        return (val == G_ALERTDEFAULT);
 }
index a838f5c0b6df08dd3b499171031cd6267737191a..d0a6ec8a7c32de598bff452bbb63aba1b35906ef 100644 (file)
@@ -267,8 +267,9 @@ static void remove_server_cb(FolderView *folderview, guint action, GtkWidget *wi
 
        name = trim_string(item->folder->name, 32);
        message = g_strdup_printf(_("Really delete IMAP4 account '%s'?"), name);
-       avalue = alertpanel(_("Delete IMAP4 account"), message,
-                           _("Yes"), _("+No"), NULL);
+       avalue = alertpanel_full(_("Delete IMAP4 account"), message,
+                                GTK_STOCK_YES, GTK_STOCK_NO, NULL, FALSE,
+                                NULL, ALERT_WARNING, G_ALERTALTERNATE);
        g_free(message);
        g_free(name);
 
@@ -315,8 +316,9 @@ static void delete_folder_cb(FolderView *folderview, guint action,
                (_("All folders and messages under '%s' will be permanently deleted. "
                   "Recovery will not be possible.\n\n"
                   "Do you really want to delete?"), name);
-       avalue = alertpanel(_("Delete folder"), message,
-                           _("Yes"), _("+No"), NULL);
+       avalue = alertpanel_full(_("Delete folder"), message,
+                                GTK_STOCK_YES, GTK_STOCK_NO, NULL, FALSE,
+                                NULL, ALERT_WARNING, G_ALERTALTERNATE);
        g_free(message);
        if (avalue != G_ALERTDEFAULT) return;
 
@@ -411,7 +413,7 @@ gboolean imap_gtk_should_override(void)
                
                answer = (alertpanel(_("Offline warning"), 
                               _("You're working offline. Override during 10 minutes?"),
-                              _("Yes"), _("No"), NULL) == G_ALERTDEFAULT);
+                              GTK_STOCK_YES, GTK_STOCK_NO, NULL) == G_ALERTDEFAULT);
                
                if (answer == TRUE)
                        overridden_yes = time(NULL);
index 7dac1653d71cc77aa2784852ca979f4732fbbea6..4b16497890e426403d4abd5bc4ad51bcc927e9c3 100644 (file)
--- a/src/inc.c
+++ b/src/inc.c
@@ -176,7 +176,7 @@ void inc_mail(MainWindow *mainwin, gboolean notify)
        if (prefs_common.work_offline)
                if (alertpanel(_("Offline warning"), 
                               _("You're working offline. Override?"),
-                              _("Yes"), _("No"), NULL) != G_ALERTDEFAULT)
+                              GTK_STOCK_YES, GTK_STOCK_NO, NULL) != G_ALERTDEFAULT)
                return;
 
        inc_lock();
@@ -281,7 +281,7 @@ gint inc_account_mail(MainWindow *mainwin, PrefsAccount *account)
        if (prefs_common.work_offline)
                if (alertpanel(_("Offline warning"), 
                               _("You're working offline. Override?"),
-                              _("Yes"), _("No"), NULL) != G_ALERTDEFAULT)
+                              GTK_STOCK_YES, GTK_STOCK_NO, NULL) != G_ALERTDEFAULT)
                        return 0;
 
        inc_autocheck_timer_remove();
@@ -307,7 +307,7 @@ void inc_all_account_mail(MainWindow *mainwin, gboolean autocheck,
        if (prefs_common.work_offline)
                if (alertpanel(_("Offline warning"), 
                               _("You're working offline. Override?"),
-                              _("Yes"), _("No"), NULL) != G_ALERTDEFAULT)
+                              GTK_STOCK_YES, GTK_STOCK_NO, NULL) != G_ALERTDEFAULT)
                return;
 
        if (inc_lock_count) return;
index 70776d5f55b455f976017bff8fbaef9cbb5a3d17..e9aa9d5021b9bc71408b4a2430c58a30eb72b585 100644 (file)
@@ -197,11 +197,10 @@ static void message_search_execute(gboolean backward)
                }
 
                if (all_searched) {
-                       alertpanel_with_type
-                               (_("Search failed"),
-                                _("Search string not found."),
-                                NULL, NULL, NULL, NULL,
-                                ALERT_WARNING);
+                       alertpanel_full(_("Search failed"),
+                                       _("Search string not found."),
+                                        GTK_STOCK_CLOSE, NULL, NULL, FALSE,
+                                        NULL, ALERT_WARNING, G_ALERTDEFAULT);
                        break;
                }
 
index 2d10c63f1e9e51bd053fe7a9c3d79925658eb567..3eb2873865a954d17eb77e3406412e3e0d78d861 100644 (file)
@@ -550,8 +550,9 @@ static gint disposition_notification_send(MsgInfo *msginfo)
                                   "Return path: %s\n"
                                   "It is advised to not to send the return "
                                   "receipt."), to, buf);
-               val = alertpanel_with_type(_("Warning"), message, _("Send"),
-                               _("+Don't Send"), NULL, NULL, ALERT_WARNING);
+               val = alertpanel_full(_("Warning"), message,
+                                       _("Send"), _("+Don't Send"), NULL, FALSE,
+                                       NULL, ALERT_WARNING, G_ALERTALTERNATE);
                g_free(message);                                
                if (val != G_ALERTDEFAULT)
                        return -1;
@@ -562,16 +563,16 @@ static gint disposition_notification_send(MsgInfo *msginfo)
 
        if (ac_list == NULL) {
                AlertValue val = 
-               alertpanel_with_type(_("Warning"),
+               alertpanel_full(_("Warning"),
                                _("This message is asking for a return "
-                                  "receipt notification\n"
-                                  "but according to its 'To:' and 'CC:' "
-                                  "headers it was not\nofficially addressed "
-                                  "to you.\n"
-                                  "It is advised to not to send the return ."
-                                  "receipt."),
-                               _("Send"), _("+Don't Send"), NULL, 
-                               NULL, ALERT_WARNING);
+                               "receipt notification\n"
+                               "but according to its 'To:' and 'CC:' "
+                               "headers it was not\nofficially addressed "
+                               "to you.\n"
+                               "It is advised to not to send the return ."
+                               "receipt."),
+                               _("Send"), _("+Don't Send"),NULL, FALSE,
+                               NULL, ALERT_WARNING, G_ALERTALTERNATE);
                if (val != G_ALERTDEFAULT)
                        return -1;
        }
@@ -691,7 +692,7 @@ static gint disposition_notification_send(MsgInfo *msginfo)
        if (prefs_common.work_offline)
                if (alertpanel(_("Offline warning"), 
                               _("You're working offline. Override?"),
-                              _("Yes"), _("No"), NULL) != G_ALERTDEFAULT)
+                              GTK_STOCK_YES, GTK_STOCK_NO, NULL) != G_ALERTDEFAULT)
                        return 0;
 
        /* send it */
index 3d77496581496c9b2ea26f097a3777139a2f2743..a66d387658ae6e81fe7edfa2f476bab58b8b3a1d 100644 (file)
@@ -167,8 +167,9 @@ static void delete_folder_cb(FolderView *folderview, guint action,
                (_("All folders and messages under '%s' will be permanently deleted. "
                   "Recovery will not be possible.\n\n"
                   "Do you really want to delete?"), name);
-       avalue = alertpanel_with_type(_("Delete folder"), message,
-                           _("Yes"), _("+No"), NULL, NULL, ALERT_WARNING);
+       avalue = alertpanel_full(_("Delete folder"), message,
+                                GTK_STOCK_YES, GTK_STOCK_NO, NULL, FALSE,
+                                NULL, ALERT_WARNING, G_ALERTALTERNATE);
        g_free(message);
        if (avalue != G_ALERTDEFAULT) return;
 
@@ -310,8 +311,10 @@ static void remove_mailbox_cb(FolderView *folderview, guint action,
        message = g_strdup_printf
                (_("Really remove the mailbox '%s' ?\n"
                   "(The messages are NOT deleted from the disk)"), name);
-       avalue = alertpanel(_("Remove mailbox"), message,
-                           _("Yes"), _("+No"), NULL);
+       avalue = alertpanel_full(_("Remove mailbox"), message,
+                                GTK_STOCK_YES, GTK_STOCK_NO, NULL, FALSE,
+                                NULL, ALERT_WARNING, G_ALERTALTERNATE);
+                           
        g_free(message);
        g_free(name);
        if (avalue != G_ALERTDEFAULT) return;
index 42bdc844ac51ee4bf50565114aabae544be65f3c..85ccbca5231a5eab77bd67bc7966246ddb056cbb 100644 (file)
@@ -202,8 +202,9 @@ static void unsubscribe_newsgroup_cb(FolderView *folderview, guint action,
 
        name = trim_string(item->path, 32);
        message = g_strdup_printf(_("Really unsubscribe newsgroup '%s'?"), name);
-       avalue = alertpanel(_("Unsubscribe newsgroup"), message,
-                           _("Yes"), _("+No"), NULL);
+       avalue = alertpanel_full(_("Unsubscribe newsgroup"), message,
+                                GTK_STOCK_YES, GTK_STOCK_NO, NULL, FALSE,
+                                NULL, ALERT_WARNING, G_ALERTALTERNATE);
        g_free(message);
        g_free(name);
        if (avalue != G_ALERTDEFAULT) return;
@@ -251,8 +252,9 @@ static void remove_news_server_cb(FolderView *folderview, guint action,
 
        name = trim_string(item->folder->name, 32);
        message = g_strdup_printf(_("Really delete news account '%s'?"), name);
-       avalue = alertpanel(_("Delete news account"), message,
-                           _("Yes"), _("+No"), NULL);
+       avalue = alertpanel_full(_("Delete news account"), message,
+                                GTK_STOCK_YES, GTK_STOCK_NO, NULL, FALSE,
+                                NULL, ALERT_WARNING, G_ALERTALTERNATE);
        g_free(message);
        g_free(name);
 
index c4adca337c2f6038f3911b51cc23b59028dd37f7..0128caf7b25acb28a2cab584a35130f48d46c5be 100644 (file)
@@ -366,12 +366,13 @@ void sgpgme_init()
                if (prefs_gpg_get_config()->gpg_warning) {
                        AlertValue val;
 
-                       val = alertpanel_message_with_disable
+                       val = alertpanel_full
                                (_("Warning"),
                                 _("GnuPG is not installed properly, or needs "
-                                  "to be upgraded.\n"
-                                  "OpenPGP support disabled."), 
-                               NULL, NULL, NULL, ALERT_WARNING);
+                                "to be upgraded.\n"
+                                "OpenPGP support disabled."),
+                                GTK_STOCK_CLOSE, NULL, NULL, TRUE, NULL,
+                                ALERT_WARNING, G_ALERTDEFAULT);
                        if (val & G_ALERTDISABLE)
                                prefs_gpg_get_config()->gpg_warning = FALSE;
                }
index 7e838140972c6b8e05a23b2debddd3dae6437b11..85ee3806ece6e939ec270c401201ad98fc912f8d 100644 (file)
@@ -690,7 +690,7 @@ static void prefs_actions_cancel(GtkWidget *w, gpointer data)
 {
        if (modified && alertpanel(_("Entry not saved"),
                                 _("The entry was not saved. Close anyway?"),
-                                _("Yes"), _("No"), NULL) != G_ALERTDEFAULT) {
+                                GTK_STOCK_YES, GTK_STOCK_NO, NULL) != G_ALERTDEFAULT) {
                return;
        }
        modified = FALSE;
@@ -709,7 +709,7 @@ static void prefs_actions_ok(GtkWidget *widget, gpointer data)
 
        if (modified && alertpanel(_("Entry not saved"),
                                 _("The entry was not saved. Close anyway?"),
-                                _("Yes"), _("No"), NULL) != G_ALERTDEFAULT) {
+                                GTK_STOCK_YES, GTK_STOCK_NO, NULL) != G_ALERTDEFAULT) {
                return;
        }
        modified = FALSE;
index c54a25b0dcc1ac455b528441c11f3e2b297002c9..9bc2db026726fe13640b1329fdd659e2e971d953 100644 (file)
@@ -875,7 +875,7 @@ static void prefs_filtering_delete_cb(void)
 
        if (alertpanel(_("Delete rule"),
                       _("Do you really want to delete this rule?"),
-                      _("Yes"), _("No"), NULL) == G_ALERTALTERNATE)
+                      GTK_STOCK_YES, GTK_STOCK_NO, NULL) == G_ALERTALTERNATE)
                return;
 
        model = gtk_tree_view_get_model(list_view);     
@@ -1032,7 +1032,7 @@ static void prefs_filtering_ok(void)
                if (!filtering_str) {
                        val = alertpanel(_("Entry not saved"),
                                 _("The entry was not saved. Close anyway?"),
-                                _("Yes"), _("No"), NULL);
+                                GTK_STOCK_YES, GTK_STOCK_NO, NULL);
                        if (G_ALERTDEFAULT != val) {
                                g_free(filtering_str);
                                g_free(str); /* fixed two leaks: huzzah! */
index 1e783be0f4609636d357ba54af66ccaec8ac0913..86453025e3608c0f8d448c93f30e2fe4719a2190 100644 (file)
@@ -1602,7 +1602,7 @@ static void prefs_matcher_ok(void)
                                if (!matcher_str || strcmp(matcher_str, str) != 0) {
                                        val = alertpanel(_("Entry not saved"),
                                                         _("The entry was not saved\nHave you really finished?"),
-                                                        _("Yes"), _("No"), NULL);
+                                                        GTK_STOCK_YES, GTK_STOCK_NO, NULL);
                                        if (G_ALERTDEFAULT != val) {
                                                g_free(matcher_str);                                             
                                                g_free(str);
index d65a01b9055eedfc09c8a8d805443a7529beda62..88ddafdb39cf684b152deeaba9468b431339e435 100644 (file)
@@ -370,7 +370,7 @@ static void prefs_template_ok_cb(void)
 
        if (modified && alertpanel(_("Entry not saved"),
                                 _("The entry was not saved. Close anyway?"),
-                                _("Yes"), _("No"), NULL) != G_ALERTDEFAULT) {
+                                GTK_STOCK_YES, GTK_STOCK_NO, NULL) != G_ALERTDEFAULT) {
                return;
        }
        modified = FALSE;
@@ -386,7 +386,7 @@ static void prefs_template_cancel_cb(void)
 {
        if (modified && alertpanel(_("Entry not saved"),
                                 _("The entry was not saved. Close anyway?"),
-                                _("Yes"), _("No"), NULL) != G_ALERTDEFAULT) {
+                                GTK_STOCK_YES, GTK_STOCK_NO, NULL) != G_ALERTDEFAULT) {
                return;
        }
        modified = FALSE;
index b90979fad26d30577c4a1b64adbafab6dcda0202..0a8d7d119575f5c9020141f1361195ffd90120f0 100644 (file)
@@ -431,7 +431,7 @@ static void prefs_themes_btn_remove_clicked_cb(GtkWidget *widget, gpointer data)
 
        val = alertpanel(alert_title,
                         _("Are you sure you want to remove this theme?"),
-                        _("No"), _("Yes"), _("Cancel"));
+                        GTK_STOCK_YES, GTK_STOCK_NO, GTK_STOCK_CANCEL);
        g_free(alert_title);
        if (G_ALERTALTERNATE == val) {
                gchar *status = NULL;
@@ -486,14 +486,14 @@ static void prefs_themes_btn_install_clicked_cb(GtkWidget *widget, gpointer data
        if (file_exist(themeinfo, FALSE) == FALSE) {
                val = alertpanel(alert_title,
                                 _("This folder doesn't seem to be a theme folder.\nInstall anyway?"),
-                                _("Yes"), _("No"), _("Cancel"));
+                                GTK_STOCK_YES, GTK_STOCK_NO, GTK_STOCK_CANCEL);
                if (G_ALERTDEFAULT != val)
                        goto end_inst;
        }
        if (getuid() == 0) {
                val = alertpanel(alert_title,
                                 _("Do you want to install theme for all users?"),
-                                _("Yes"), _("No"), _("Cancel"));
+                                GTK_STOCK_YES, GTK_STOCK_NO, GTK_STOCK_CANCEL);
                switch (val) {
                case G_ALERTDEFAULT:
                        cinfo->dest = g_strconcat(PACKAGE_DATA_DIR, G_DIR_SEPARATOR_S,
index 415cdd3dbce6f4890a07d70506369da587f090d8..62d5c74223db2b8a878faf0024aa83cb35f28251 100644 (file)
@@ -370,9 +370,12 @@ static void ssl_manager_delete_cb(GtkWidget *widget,
        if (!cert)
                return;
 
-       val = alertpanel(_("Delete certificate"), 
-                            _("Do you really want to delete this certificate?"),
-                            _("Yes"), _("+No"), NULL);
+       val = alertpanel_full(_("Delete certificate"),
+                             _("Do you really want to delete this certificate?"),
+                             GTK_STOCK_YES, GTK_STOCK_NO, NULL, FALSE,
+                             NULL, ALERT_WARNING, G_ALERTALTERNATE);
+
+                            
        if (val != G_ALERTDEFAULT)
                return;
        
index 5652a9ebcb2402a4c4b597baa37dffc783196f3a..70ee35cb13b653ab38a57296b522f6cb3e683460 100644 (file)
@@ -374,11 +374,10 @@ static void summary_search_execute(gboolean backward, gboolean search_all)
                        }
 
                        if (all_searched) {
-                               alertpanel_with_type
-                                       (_("Search failed"),
-                                        _("Search string not found."),
-                                        NULL, NULL, NULL, NULL,
-                                        ALERT_WARNING);
+                               alertpanel_full(_("Search failed"),
+                                               _("Search string not found."),
+                                               GTK_STOCK_CLOSE, NULL, NULL, FALSE,
+                                               NULL, ALERT_WARNING, G_ALERTDEFAULT);
                                break;
                        }
 
index 86152f835765b302bffb8d1070cdd2553cee90e4..ac22ffec6c6e3236a2a2310a2503660cdc7c4d42 100644 (file)
@@ -2213,9 +2213,9 @@ static gboolean textview_uri_security_check(TextView *textview, RemoteURI *uri)
                                        "\n"
                                        "Open it anyway?"),
                                      uri->uri, visible_str);
-               aval = alertpanel_with_type(_("Fake URL warning"), msg,
-                                           GTK_STOCK_YES, GTK_STOCK_NO,
-                                           NULL, NULL, ALERT_WARNING);
+               aval = alertpanel_full(_("Fake URL warning"), msg,
+                                      GTK_STOCK_YES, GTK_STOCK_NO, NULL, FALSE,
+                                      NULL, ALERT_WARNING, G_ALERTALTERNATE);
                g_free(msg);
                if (aval == G_ALERTDEFAULT)
                        retval = TRUE;
index 7e4568af29830bca08be0777a7cd7643ff32ada7..0c2112114a6241b0b8e2afab0daf180e6c528b0c 100644 (file)
@@ -1914,7 +1914,7 @@ void send_queue_cb(gpointer data, guint action, GtkWidget *widget)
        if (prefs_common.work_offline)
                if (alertpanel(_("Offline warning"), 
                               _("You're working offline. Override?"),
-                              _("Yes"), _("No"), NULL) != G_ALERTDEFAULT)
+                              GTK_STOCK_YES, GTK_STOCK_NO, NULL) != G_ALERTDEFAULT)
                return;
 
        /* ask for confirmation before sending queued messages only
@@ -1933,7 +1933,7 @@ void send_queue_cb(gpointer data, guint action, GtkWidget *widget)
                if (found && !prefs_common.work_offline) {
                        if (alertpanel(_("Send queued messages"), 
                                   _("Send all queued messages?"),
-                                  _("Yes"), _("No"), NULL) != G_ALERTDEFAULT)
+                                  GTK_STOCK_YES, GTK_STOCK_NO, NULL) != G_ALERTDEFAULT)
                                return;
                }
        }