diff options
Diffstat (limited to 'widgets/misc/e-gui-utils.c')
-rw-r--r-- | widgets/misc/e-gui-utils.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/widgets/misc/e-gui-utils.c b/widgets/misc/e-gui-utils.c index 7d9f4d49d9..9387d5015d 100644 --- a/widgets/misc/e-gui-utils.c +++ b/widgets/misc/e-gui-utils.c @@ -14,12 +14,18 @@ #include "e-gui-utils.h" void -e_notice (GtkWindow *window, const char *type, const char *str) +e_notice (GtkWindow *window, const char *type, const char *format, ...) { GtkWidget *dialog; + va_list args; + char *str; + va_start (args, format); + str = g_strdup_vprintf (format, args); dialog = gnome_message_box_new (str, type, GNOME_STOCK_BUTTON_OK, NULL); - + va_end (args); + g_free (str); + if (window) gnome_dialog_set_parent (GNOME_DIALOG (dialog), window); |