2005-07-17 [colin] 1.9.12cvs74
[claws.git] / src / alertpanel.c
index 1b3eac0a529cea6b9b05bc88e7ffdb4de0231bb8..1dfea5501fbf691adf2c6e3d4715b5440731ad0e 100644 (file)
@@ -124,6 +124,9 @@ static void alertpanel_message(const gchar *title, const gchar *message, gint ty
 
 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)
 {
        if (alertpanel_is_open)
@@ -131,8 +134,8 @@ AlertValue alertpanel_message_with_disable(const gchar *title,
        else
                alertpanel_is_open = TRUE;
 
-       alertpanel_create(title, message, NULL, NULL, NULL, TRUE, NULL,
-                         alert_type);
+       alertpanel_create(title, message, button1_label, button2_label, 
+                         button3_label, TRUE, NULL, alert_type);
        alertpanel_show();
 
        return value;
@@ -244,6 +247,7 @@ static void alertpanel_create(const gchar *title,
        GtkWidget *icon;
        const gchar *label2;
        const gchar *label3;
+       
        gchar *title_full = g_strdup_printf("<span weight=\"bold\" "
                                "size=\"larger\">%s</span>",
                                title?title:"");
@@ -257,7 +261,9 @@ static void alertpanel_create(const gchar *title,
 
        dialog = gtk_dialog_new();
        gtk_window_set_title(GTK_WINDOW(dialog), title);
-       gtk_window_set_resizable(GTK_WINDOW(dialog), FALSE);
+       gtk_window_set_resizable(GTK_WINDOW(dialog), TRUE);
+
+       gtk_window_set_default_size(GTK_WINDOW(dialog), 300, 100);
        gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE);
        
        gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER);
@@ -293,7 +299,7 @@ static void alertpanel_create(const gchar *title,
        label = gtk_label_new(title_full);
        gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
        gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT);
-       gtk_label_set_use_markup (GTK_LABEL (label), TRUE);
+       gtk_label_set_use_markup(GTK_LABEL (label), TRUE);
        gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
        gtk_label_set_line_wrap(GTK_LABEL(label), TRUE);
        if (!font_desc) {
@@ -314,6 +320,8 @@ static void alertpanel_create(const gchar *title,
        label = gtk_label_new(message);
        gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
        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_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
        gtk_widget_show(label);