1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 2 -*- */
2 /* GTK - The GIMP Toolkit
3 * Copyright (C) 2000 Red Hat, Inc.
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
22 * Modified by the GTK+ Team and others 1997-2003. See the AUTHORS
23 * file for a list of people on the GTK+ Team. See the ChangeLog
24 * files for a list of changes. These files are distributed with
25 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
31 #include "gtkmessagedialog.h"
32 #include "gtkaccessible.h"
38 #include "gtkiconfactory.h"
40 #include "gtkprivate.h"
43 #define GTK_MESSAGE_DIALOG_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_MESSAGE_DIALOG, GtkMessageDialogPrivate))
45 typedef struct _GtkMessageDialogPrivate GtkMessageDialogPrivate;
47 struct _GtkMessageDialogPrivate
49 GtkWidget *secondary_label;
50 guint message_type : 3;
51 guint has_primary_markup : 1;
52 guint has_secondary_text : 1;
55 static void gtk_message_dialog_style_set (GtkWidget *widget,
56 GtkStyle *prev_style);
58 static void gtk_message_dialog_set_property (GObject *object,
62 static void gtk_message_dialog_get_property (GObject *object,
66 static void gtk_message_dialog_add_buttons (GtkMessageDialog *message_dialog,
67 GtkButtonsType buttons);
76 PROP_SECONDARY_USE_MARKUP,
80 G_DEFINE_TYPE (GtkMessageDialog, gtk_message_dialog, GTK_TYPE_DIALOG)
83 gtk_message_dialog_class_init (GtkMessageDialogClass *class)
85 GtkWidgetClass *widget_class;
86 GObjectClass *gobject_class;
88 widget_class = GTK_WIDGET_CLASS (class);
89 gobject_class = G_OBJECT_CLASS (class);
91 widget_class->style_set = gtk_message_dialog_style_set;
93 gobject_class->set_property = gtk_message_dialog_set_property;
94 gobject_class->get_property = gtk_message_dialog_get_property;
96 gtk_widget_class_install_style_property (widget_class,
97 g_param_spec_int ("message-border",
98 P_("Image/label border"),
99 P_("Width of border around the label and image in the message dialog"),
103 GTK_PARAM_READABLE));
105 * GtkMessageDialog:use-separator:
107 * Whether to draw a separator line between the message label and the buttons
112 gtk_widget_class_install_style_property (widget_class,
113 g_param_spec_boolean ("use-separator",
115 P_("Whether to put a separator between the message dialog's text and the buttons"),
117 GTK_PARAM_READABLE));
119 * GtkMessageDialog:message-type:
121 * The type of the message. The type is used to determine
122 * the image that is shown in the dialog, unless the image is
123 * explicitly set by the ::image property.
125 g_object_class_install_property (gobject_class,
127 g_param_spec_enum ("message-type",
129 P_("The type of message"),
130 GTK_TYPE_MESSAGE_TYPE,
132 GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT));
133 g_object_class_install_property (gobject_class,
135 g_param_spec_enum ("buttons",
136 P_("Message Buttons"),
137 P_("The buttons shown in the message dialog"),
138 GTK_TYPE_BUTTONS_TYPE,
140 GTK_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
143 * GtkMessageDialog:text:
145 * The primary text of the message dialog. If the dialog has
146 * a secondary text, this will appear as the title.
150 g_object_class_install_property (gobject_class,
152 g_param_spec_string ("text",
154 P_("The primary text of the message dialog"),
156 GTK_PARAM_READWRITE));
159 * GtkMessageDialog:use-markup:
161 * %TRUE if the primary text of the dialog includes Pango markup.
162 * See pango_parse_markup().
166 g_object_class_install_property (gobject_class,
168 g_param_spec_boolean ("use-markup",
170 P_("The primary text of the title includes Pango markup."),
172 GTK_PARAM_READWRITE));
175 * GtkMessageDialog:secondary-text:
177 * The secondary text of the message dialog.
181 g_object_class_install_property (gobject_class,
183 g_param_spec_string ("secondary-text",
184 P_("Secondary Text"),
185 P_("The secondary text of the message dialog"),
187 GTK_PARAM_READWRITE));
190 * GtkMessageDialog:secondary-use-markup:
192 * %TRUE if the secondary text of the dialog includes Pango markup.
193 * See pango_parse_markup().
197 g_object_class_install_property (gobject_class,
198 PROP_SECONDARY_USE_MARKUP,
199 g_param_spec_boolean ("secondary-use-markup",
200 P_("Use Markup in secondary"),
201 P_("The secondary text includes Pango markup."),
203 GTK_PARAM_READWRITE));
206 * GtkMessageDialog:image:
208 * The image for this dialog.
212 g_object_class_install_property (gobject_class,
214 g_param_spec_object ("image",
218 GTK_PARAM_READWRITE));
220 g_type_class_add_private (gobject_class,
221 sizeof (GtkMessageDialogPrivate));
225 gtk_message_dialog_init (GtkMessageDialog *dialog)
227 GtkWidget *hbox, *vbox;
228 GtkMessageDialogPrivate *priv;
230 priv = GTK_MESSAGE_DIALOG_GET_PRIVATE (dialog);
232 gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE);
233 gtk_window_set_title (GTK_WINDOW (dialog), "");
234 gtk_window_set_skip_taskbar_hint (GTK_WINDOW (dialog), TRUE);
236 priv->has_primary_markup = FALSE;
237 priv->has_secondary_text = FALSE;
238 priv->secondary_label = gtk_label_new (NULL);
239 gtk_widget_set_no_show_all (priv->secondary_label, TRUE);
241 dialog->label = gtk_label_new (NULL);
242 dialog->image = gtk_image_new_from_stock (NULL, GTK_ICON_SIZE_DIALOG);
243 gtk_misc_set_alignment (GTK_MISC (dialog->image), 0.5, 0.0);
245 gtk_label_set_line_wrap (GTK_LABEL (dialog->label), TRUE);
246 gtk_label_set_selectable (GTK_LABEL (dialog->label), TRUE);
247 gtk_misc_set_alignment (GTK_MISC (dialog->label), 0.0, 0.0);
249 gtk_label_set_line_wrap (GTK_LABEL (priv->secondary_label), TRUE);
250 gtk_label_set_selectable (GTK_LABEL (priv->secondary_label), TRUE);
251 gtk_misc_set_alignment (GTK_MISC (priv->secondary_label), 0.0, 0.0);
253 hbox = gtk_hbox_new (FALSE, 12);
254 vbox = gtk_vbox_new (FALSE, 12);
256 gtk_box_pack_start (GTK_BOX (vbox), dialog->label,
259 gtk_box_pack_start (GTK_BOX (vbox), priv->secondary_label,
262 gtk_box_pack_start (GTK_BOX (hbox), dialog->image,
265 gtk_box_pack_start (GTK_BOX (hbox), vbox,
268 gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox),
272 gtk_container_set_border_width (GTK_CONTAINER (dialog), 5);
273 gtk_container_set_border_width (GTK_CONTAINER (hbox), 5);
274 gtk_box_set_spacing (GTK_BOX (GTK_DIALOG (dialog)->vbox), 14); /* 14 + 2 * 5 = 24 */
275 gtk_container_set_border_width (GTK_CONTAINER (GTK_DIALOG (dialog)->action_area), 5);
276 gtk_box_set_spacing (GTK_BOX (GTK_DIALOG (dialog)->action_area), 6);
278 gtk_widget_show_all (hbox);
280 _gtk_dialog_set_ignore_separator (GTK_DIALOG (dialog), TRUE);
284 setup_primary_label_font (GtkMessageDialog *dialog)
287 PangoFontDescription *font_desc;
288 GtkMessageDialogPrivate *priv;
290 priv = GTK_MESSAGE_DIALOG_GET_PRIVATE (dialog);
292 /* unset the font settings */
293 gtk_widget_modify_font (dialog->label, NULL);
295 if (priv->has_secondary_text && !priv->has_primary_markup)
297 size = pango_font_description_get_size (dialog->label->style->font_desc);
298 font_desc = pango_font_description_new ();
299 pango_font_description_set_weight (font_desc, PANGO_WEIGHT_BOLD);
300 pango_font_description_set_size (font_desc, size * PANGO_SCALE_LARGE);
301 gtk_widget_modify_font (dialog->label, font_desc);
302 pango_font_description_free (font_desc);
307 setup_type (GtkMessageDialog *dialog,
310 GtkMessageDialogPrivate *priv = GTK_MESSAGE_DIALOG_GET_PRIVATE (dialog);
311 const gchar *stock_id = NULL;
314 priv->message_type = type;
318 case GTK_MESSAGE_INFO:
319 stock_id = GTK_STOCK_DIALOG_INFO;
322 case GTK_MESSAGE_QUESTION:
323 stock_id = GTK_STOCK_DIALOG_QUESTION;
326 case GTK_MESSAGE_WARNING:
327 stock_id = GTK_STOCK_DIALOG_WARNING;
330 case GTK_MESSAGE_ERROR:
331 stock_id = GTK_STOCK_DIALOG_ERROR;
334 case GTK_MESSAGE_OTHER:
338 g_warning ("Unknown GtkMessageType %u", type);
343 gtk_image_set_from_stock (GTK_IMAGE (dialog->image), stock_id,
344 GTK_ICON_SIZE_DIALOG);
346 atk_obj = gtk_widget_get_accessible (GTK_WIDGET (dialog));
347 if (GTK_IS_ACCESSIBLE (atk_obj))
349 atk_object_set_role (atk_obj, ATK_ROLE_ALERT);
354 gtk_stock_lookup (stock_id, &item);
355 atk_object_set_name (atk_obj, item.label);
361 gtk_message_dialog_set_property (GObject *object,
366 GtkMessageDialog *dialog;
367 GtkMessageDialogPrivate *priv;
369 dialog = GTK_MESSAGE_DIALOG (object);
370 priv = GTK_MESSAGE_DIALOG_GET_PRIVATE (dialog);
374 case PROP_MESSAGE_TYPE:
375 setup_type (dialog, g_value_get_enum (value));
378 gtk_message_dialog_add_buttons (dialog, g_value_get_enum (value));
381 if (priv->has_primary_markup)
382 gtk_label_set_markup (GTK_LABEL (dialog->label),
383 g_value_get_string (value));
385 gtk_label_set_text (GTK_LABEL (dialog->label),
386 g_value_get_string (value));
388 case PROP_USE_MARKUP:
389 priv->has_primary_markup = g_value_get_boolean (value) != FALSE;
390 gtk_label_set_use_markup (GTK_LABEL (dialog->label),
391 priv->has_primary_markup);
392 setup_primary_label_font (dialog);
394 case PROP_SECONDARY_TEXT:
396 const gchar *txt = g_value_get_string (value);
398 if (gtk_label_get_use_markup (GTK_LABEL (priv->secondary_label)))
399 gtk_label_set_markup (GTK_LABEL (priv->secondary_label), txt);
401 gtk_label_set_text (GTK_LABEL (priv->secondary_label), txt);
405 priv->has_secondary_text = TRUE;
406 gtk_widget_show (priv->secondary_label);
410 priv->has_secondary_text = FALSE;
411 gtk_widget_hide (priv->secondary_label);
413 setup_primary_label_font (dialog);
416 case PROP_SECONDARY_USE_MARKUP:
417 gtk_label_set_use_markup (GTK_LABEL (priv->secondary_label),
418 g_value_get_boolean (value));
421 gtk_message_dialog_set_image (dialog, (GtkWidget *)g_value_get_object (value));
425 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
431 gtk_message_dialog_get_property (GObject *object,
436 GtkMessageDialog *dialog;
437 GtkMessageDialogPrivate *priv;
439 dialog = GTK_MESSAGE_DIALOG (object);
440 priv = GTK_MESSAGE_DIALOG_GET_PRIVATE (dialog);
444 case PROP_MESSAGE_TYPE:
445 g_value_set_enum (value, (GtkMessageType) priv->message_type);
448 g_value_set_string (value, gtk_label_get_label (GTK_LABEL (dialog->label)));
450 case PROP_USE_MARKUP:
451 g_value_set_boolean (value, priv->has_primary_markup);
453 case PROP_SECONDARY_TEXT:
454 if (priv->has_secondary_text)
455 g_value_set_string (value,
456 gtk_label_get_label (GTK_LABEL (priv->secondary_label)));
458 g_value_set_string (value, NULL);
460 case PROP_SECONDARY_USE_MARKUP:
461 if (priv->has_secondary_text)
462 g_value_set_boolean (value,
463 gtk_label_get_use_markup (GTK_LABEL (priv->secondary_label)));
465 g_value_set_boolean (value, FALSE);
468 g_value_set_object (value, dialog->image);
471 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
477 * gtk_message_dialog_new:
478 * @parent: transient parent, or %NULL for none
480 * @type: type of message
481 * @buttons: set of buttons to use
482 * @message_format: printf()-style format string, or %NULL
483 * @Varargs: arguments for @message_format
485 * Creates a new message dialog, which is a simple dialog with an icon
486 * indicating the dialog type (error, warning, etc.) and some text the
487 * user may want to see. When the user clicks a button a "response"
488 * signal is emitted with response IDs from #GtkResponseType. See
489 * #GtkDialog for more details.
491 * Return value: a new #GtkMessageDialog
494 gtk_message_dialog_new (GtkWindow *parent,
495 GtkDialogFlags flags,
497 GtkButtonsType buttons,
498 const gchar *message_format,
506 g_return_val_if_fail (parent == NULL || GTK_IS_WINDOW (parent), NULL);
508 widget = g_object_new (GTK_TYPE_MESSAGE_DIALOG,
509 "message-type", type,
512 dialog = GTK_DIALOG (widget);
514 if (flags & GTK_DIALOG_NO_SEPARATOR)
516 g_warning ("The GTK_DIALOG_NO_SEPARATOR flag cannot be used for GtkMessageDialog");
517 flags &= ~GTK_DIALOG_NO_SEPARATOR;
522 va_start (args, message_format);
523 msg = g_strdup_vprintf (message_format, args);
526 gtk_label_set_text (GTK_LABEL (GTK_MESSAGE_DIALOG (widget)->label),
533 gtk_window_set_transient_for (GTK_WINDOW (widget),
534 GTK_WINDOW (parent));
536 if (flags & GTK_DIALOG_MODAL)
537 gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
539 if (flags & GTK_DIALOG_DESTROY_WITH_PARENT)
540 gtk_window_set_destroy_with_parent (GTK_WINDOW (dialog), TRUE);
546 * gtk_message_dialog_new_with_markup:
547 * @parent: transient parent, or %NULL for none
549 * @type: type of message
550 * @buttons: set of buttons to use
551 * @message_format: printf()-style format string, or %NULL
552 * @Varargs: arguments for @message_format
554 * Creates a new message dialog, which is a simple dialog with an icon
555 * indicating the dialog type (error, warning, etc.) and some text which
556 * is marked up with the <link linkend="PangoMarkupFormat">Pango text markup language</link>.
557 * When the user clicks a button a "response" signal is emitted with
558 * response IDs from #GtkResponseType. See #GtkDialog for more details.
560 * Special XML characters in the printf() arguments passed to this
561 * function will automatically be escaped as necessary.
562 * (See g_markup_printf_escaped() for how this is implemented.)
563 * Usually this is what you want, but if you have an existing
564 * Pango markup string that you want to use literally as the
565 * label, then you need to use gtk_message_dialog_set_markup()
566 * instead, since you can't pass the markup string either
567 * as the format (it might contain '%' characters) or as a string
571 * dialog = gtk_message_dialog_new (main_application_window,
572 * GTK_DIALOG_DESTROY_WITH_PARENT,
576 * gtk_message_dialog_set_markup (GTK_MESSAGE_DIALOG (dialog),
580 * Return value: a new #GtkMessageDialog
585 gtk_message_dialog_new_with_markup (GtkWindow *parent,
586 GtkDialogFlags flags,
588 GtkButtonsType buttons,
589 const gchar *message_format,
596 g_return_val_if_fail (parent == NULL || GTK_IS_WINDOW (parent), NULL);
598 widget = gtk_message_dialog_new (parent, flags, type, buttons, NULL);
602 va_start (args, message_format);
603 msg = g_markup_vprintf_escaped (message_format, args);
606 gtk_message_dialog_set_markup (GTK_MESSAGE_DIALOG (widget), msg);
615 * gtk_message_dialog_set_image:
616 * @dialog: a #GtkMessageDialog
619 * Sets the dialog's image to @image.
624 gtk_message_dialog_set_image (GtkMessageDialog *dialog,
627 GtkMessageDialogPrivate *priv;
630 g_return_if_fail (GTK_IS_MESSAGE_DIALOG (dialog));
632 priv = GTK_MESSAGE_DIALOG_GET_PRIVATE (dialog);
634 priv->message_type = GTK_MESSAGE_OTHER;
636 parent = dialog->image->parent;
637 gtk_container_add (GTK_CONTAINER (parent), image);
638 gtk_container_remove (GTK_CONTAINER (parent), dialog->image);
639 gtk_box_reorder_child (GTK_BOX (parent), image, 0);
641 dialog->image = image;
643 g_object_notify (G_OBJECT (dialog), "image");
647 * gtk_message_dialog_get_image:
648 * @dialog: a #GtkMessageDialog
650 * Return value: the dialog's image
655 gtk_message_dialog_get_image (GtkMessageDialog *dialog)
657 g_return_val_if_fail (GTK_IS_MESSAGE_DIALOG (dialog), NULL);
659 return dialog->image;
663 * gtk_message_dialog_set_markup:
664 * @message_dialog: a #GtkMessageDialog
665 * @str: markup string (see <link linkend="PangoMarkupFormat">Pango markup format</link>)
667 * Sets the text of the message dialog to be @str, which is marked
668 * up with the <link linkend="PangoMarkupFormat">Pango text markup
674 gtk_message_dialog_set_markup (GtkMessageDialog *message_dialog,
677 GtkMessageDialogPrivate *priv;
679 g_return_if_fail (GTK_IS_MESSAGE_DIALOG (message_dialog));
681 priv = GTK_MESSAGE_DIALOG_GET_PRIVATE (message_dialog);
682 priv->has_primary_markup = TRUE;
683 gtk_label_set_markup (GTK_LABEL (message_dialog->label), str);
687 * gtk_message_dialog_format_secondary_text:
688 * @message_dialog: a #GtkMessageDialog
689 * @message_format: printf()-style format string, or %NULL
690 * @Varargs: arguments for @message_format
692 * Sets the secondary text of the message dialog to be @message_format
693 * (with printf()-style).
695 * Note that setting a secondary text makes the primary text become
696 * bold, unless you have provided explicit markup.
701 gtk_message_dialog_format_secondary_text (GtkMessageDialog *message_dialog,
702 const gchar *message_format,
707 GtkMessageDialogPrivate *priv;
709 g_return_if_fail (GTK_IS_MESSAGE_DIALOG (message_dialog));
711 priv = GTK_MESSAGE_DIALOG_GET_PRIVATE (message_dialog);
715 priv->has_secondary_text = TRUE;
717 va_start (args, message_format);
718 msg = g_strdup_vprintf (message_format, args);
721 gtk_widget_show (priv->secondary_label);
722 gtk_label_set_text (GTK_LABEL (priv->secondary_label), msg);
728 priv->has_secondary_text = FALSE;
729 gtk_widget_hide (priv->secondary_label);
732 setup_primary_label_font (message_dialog);
736 * gtk_message_dialog_format_secondary_markup:
737 * @message_dialog: a #GtkMessageDialog
738 * @message_format: printf()-style markup string (see
739 <link linkend="PangoMarkupFormat">Pango markup format</link>), or %NULL
740 * @Varargs: arguments for @message_format
742 * Sets the secondary text of the message dialog to be @message_format (with
743 * printf()-style), which is marked up with the
744 * <link linkend="PangoMarkupFormat">Pango text markup language</link>.
746 * Note that setting a secondary text makes the primary text become
747 * bold, unless you have provided explicit markup.
749 * Due to an oversight, this function does not escape special XML characters
750 * like gtk_message_dialog_new_with_markup() does. Thus, if the arguments
751 * may contain special XML characters, you should use g_markup_printf_escaped()
754 * <informalexample><programlisting>
757 * msg = g_markup_printf_escaped (message_format, ...);
758 * gtk_message_dialog_format_secondary_markup (message_dialog, "%s", msg);
760 * </programlisting></informalexample>
765 gtk_message_dialog_format_secondary_markup (GtkMessageDialog *message_dialog,
766 const gchar *message_format,
771 GtkMessageDialogPrivate *priv;
773 g_return_if_fail (GTK_IS_MESSAGE_DIALOG (message_dialog));
775 priv = GTK_MESSAGE_DIALOG_GET_PRIVATE (message_dialog);
779 priv->has_secondary_text = TRUE;
781 va_start (args, message_format);
782 msg = g_strdup_vprintf (message_format, args);
785 gtk_widget_show (priv->secondary_label);
786 gtk_label_set_markup (GTK_LABEL (priv->secondary_label), msg);
792 priv->has_secondary_text = FALSE;
793 gtk_widget_hide (priv->secondary_label);
796 setup_primary_label_font (message_dialog);
800 gtk_message_dialog_add_buttons (GtkMessageDialog* message_dialog,
801 GtkButtonsType buttons)
803 GtkDialog* dialog = GTK_DIALOG (message_dialog);
807 case GTK_BUTTONS_NONE:
812 gtk_dialog_add_button (dialog,
817 case GTK_BUTTONS_CLOSE:
818 gtk_dialog_add_button (dialog,
823 case GTK_BUTTONS_CANCEL:
824 gtk_dialog_add_button (dialog,
826 GTK_RESPONSE_CANCEL);
829 case GTK_BUTTONS_YES_NO:
830 gtk_dialog_add_button (dialog,
833 gtk_dialog_add_button (dialog,
836 gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
842 case GTK_BUTTONS_OK_CANCEL:
843 gtk_dialog_add_button (dialog,
845 GTK_RESPONSE_CANCEL);
846 gtk_dialog_add_button (dialog,
849 gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
856 g_warning ("Unknown GtkButtonsType");
860 g_object_notify (G_OBJECT (message_dialog), "buttons");
864 gtk_message_dialog_style_set (GtkWidget *widget,
865 GtkStyle *prev_style)
867 GtkMessageDialog *dialog = GTK_MESSAGE_DIALOG (widget);
868 gboolean use_separator;
872 parent = GTK_WIDGET (GTK_MESSAGE_DIALOG (widget)->image->parent);
876 gtk_widget_style_get (widget, "message-border",
877 &border_width, NULL);
879 gtk_container_set_border_width (GTK_CONTAINER (parent),
880 MAX (0, border_width - 7));
883 gtk_widget_style_get (widget,
884 "use-separator", &use_separator,
887 _gtk_dialog_set_ignore_separator (GTK_DIALOG (widget), FALSE);
888 gtk_dialog_set_has_separator (GTK_DIALOG (widget), use_separator);
889 _gtk_dialog_set_ignore_separator (GTK_DIALOG (widget), TRUE);
891 setup_primary_label_font (dialog);
893 if (GTK_WIDGET_CLASS (gtk_message_dialog_parent_class)->style_set)
894 (GTK_WIDGET_CLASS (gtk_message_dialog_parent_class)->style_set) (widget, prev_style);
897 #define __GTK_MESSAGE_DIALOG_C__
898 #include "gtkaliasdef.c"