Specialize alertpanel icons
[claws.git] / src / alertpanel.h
index 203b5106adac6a824ec2ef352ba4ccd767602095..fc0b05755eac52554b6b48af05295d97d83201f5 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999,2000 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2001 Hiroyuki Yamamoto
  *
  * 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
@@ -30,21 +30,34 @@ typedef enum
        G_ALERTOTHER,
        G_ALERTWAIT,
 
-       G_ALERT_VALUE_MASK      = 0x0000FFFF,
-       G_ALERTDISABLE          = 0x00010000
+       G_ALERTDISABLE  = 1 << 16
 } AlertValue;
 
+typedef enum
+{
+       ALERT_NOTICE,
+       ALERT_QUESTION,
+       ALERT_WARNING,
+       ALERT_ERROR
+} AlertType;
+#define G_ALERT_VALUE_MASK     0x0000ffff
+
 AlertValue alertpanel  (const gchar    *title,
                         const gchar    *message,
                         const gchar    *button1_label,
                         const gchar    *button2_label,
                         const gchar    *button3_label);
 
-void alertpanel_message        (const gchar    *title,
-                        const gchar    *message);
+AlertValue alertpanel_with_widget      (const gchar *title,
+                                        const gchar *message,
+                                        const gchar *button1_label,
+                                        const gchar *button2_label,
+                                        const gchar *button3_label,
+                                        GtkWidget *widget);
 
-AlertValue alertpanel_message_with_disable(const gchar *title,
-                                          const gchar  *message);
+AlertValue alertpanel_message_with_disable     (const gchar    *title,
+                                                const gchar    *message,
+                                                gint            alert_type);
 
 void alertpanel_notice (const gchar    *format,
                         ...) G_GNUC_PRINTF(1, 2);
@@ -52,5 +65,7 @@ void alertpanel_warning       (const gchar    *format,
                         ...) G_GNUC_PRINTF(1, 2);
 void alertpanel_error  (const gchar    *format,
                         ...) G_GNUC_PRINTF(1, 2);
+void alertpanel_error_log(const gchar  *format,
+                         ...) G_GNUC_PRINTF(1, 2);
 
 #endif /* __ALERTPANEL_H__ */