aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-error.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2008-02-08 22:43:44 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2008-02-08 22:43:44 +0800
commit974e152f9bbc98a81c6f12ecd2fac08023d35302 (patch)
tree9d8c3f17b2201ebce7ca9c5601aba6ca18c6a08a /e-util/e-error.h
parent05438a2dad5111faa4e3e6551f4cc8d9be56b092 (diff)
downloadgsoc2013-evolution-974e152f9bbc98a81c6f12ecd2fac08023d35302.tar
gsoc2013-evolution-974e152f9bbc98a81c6f12ecd2fac08023d35302.tar.gz
gsoc2013-evolution-974e152f9bbc98a81c6f12ecd2fac08023d35302.tar.bz2
gsoc2013-evolution-974e152f9bbc98a81c6f12ecd2fac08023d35302.tar.lz
gsoc2013-evolution-974e152f9bbc98a81c6f12ecd2fac08023d35302.tar.xz
gsoc2013-evolution-974e152f9bbc98a81c6f12ecd2fac08023d35302.tar.zst
gsoc2013-evolution-974e152f9bbc98a81c6f12ecd2fac08023d35302.zip
** Fixes part of bug #509741
2008-02-08 Matthew Barnes <mbarnes@redhat.com> ** Fixes part of bug #509741 * mail/mail-session.c (user_message_exec): Use the number of dialog buttons as a heuristic for whether to display a message in the status bar or immediately present the dialog to the user. * e-util/e-error.c (e_error_newv): If the error dialog has no primary text, fallback to the window title for the "primary" data key. This is what gets displayed in the status bar. * e-util/e-error.c (e_error_count_buttons): New function counts buttons in a dialog's action area. svn path=/trunk/; revision=34977
Diffstat (limited to 'e-util/e-error.h')
-rw-r--r--e-util/e-error.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/e-util/e-error.h b/e-util/e-error.h
index cb32a4dadb..1cf3aca3bb 100644
--- a/e-util/e-error.h
+++ b/e-util/e-error.h
@@ -23,6 +23,7 @@
#define _E_ERROR_H
#include <stdarg.h>
+#include <gtk/gtk.h>
struct _GtkWindow;
@@ -54,6 +55,8 @@ struct _GtkWidget *e_error_newv(struct _GtkWindow *parent, const char *tag, cons
int e_error_run(struct _GtkWindow *parent, const char *tag, const char *arg0, ...);
int e_error_runv(struct _GtkWindow *parent, const char *tag, const char *arg0, va_list ap);
+guint e_error_count_buttons (GtkDialog *dialog);
+
void e_error_default_parent(struct _GtkWindow *parent);
#endif /* !_E_ERROR_H */