/*
* 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
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);
...) 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__ */