2006-06-20 [paul] 2.3.1cvs2
[claws.git] / src / alertpanel.c
index ca1475a1c3bd682297dc8890e7a9f7ea2ed0b02c..1535f1c511eee8248421b8133429d4d070ee5819 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2005 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2006 Hiroyuki Yamamoto and the Sylpheed-Claws team
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -41,7 +41,7 @@
 #define TITLE_HEIGHT           72
 #define MESSAGE_HEIGHT         62
 
-static gboolean alertpanel_is_open = FALSE;
+gboolean alertpanel_is_open = FALSE;
 static AlertValue value;
 
 static GtkWidget *dialog;
@@ -185,8 +185,8 @@ void alertpanel_error_log(const gchar *format, ...)
        mainwin = mainwindow_get_mainwindow();
        
        if (mainwin && mainwin->logwin) {
-               val = alertpanel_full(_("Error"), buf, GTK_STOCK_OK,
-                                     _("View log"), NULL, FALSE, NULL,
+               val = alertpanel_full(_("Error"), buf, GTK_STOCK_CLOSE,
+                                     _("_View log"), NULL, FALSE, NULL,
                                      ALERT_ERROR, G_ALERTDEFAULT);
                if (val == G_ALERTALTERNATE)
                        log_window_show(mainwin->logwin);
@@ -316,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_label_set_use_markup(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);