From d08dd112ccda04400cdb19360903971525c24706 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Tue, 3 Feb 2004 19:46:43 +0000 Subject: Fix #68938. 2004-02-03 Federico Mena Quintero Fix #68938. * gtk/gtkdialog.c (GtkDialogPrivate): New private structure for GtkDialog; right now it only contains an ignore_separator field. (gtk_dialog_class_init): Register the private structure. (gtk_dialog_init): Initialize the priv->ignore_separator field. (_gtk_dialog_set_ignore_separator): New private function. (gtk_dialog_set_has_separator): Ignore the setting if appropriate. * gtk/gtkmessagedialog.c (gtk_message_dialog_class_init): Add a use_separator style property. (gtk_message_dialog_style_set): Change the dialog's separator based on the style property. (gtk_message_dialog_init): Set the dialog box to ignore the separator setting. --- gtk/gtkdialog.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gtk/gtkdialog.h') diff --git a/gtk/gtkdialog.h b/gtk/gtkdialog.h index 953857c465..60c860fa47 100644 --- a/gtk/gtkdialog.h +++ b/gtk/gtkdialog.h @@ -159,6 +159,11 @@ void gtk_dialog_response (GtkDialog *dialog, /* Returns response_id */ gint gtk_dialog_run (GtkDialog *dialog); + +/* For private use only */ +void _gtk_dialog_set_ignore_separator (GtkDialog *dialog, + gboolean ignore_separator); + #ifdef __cplusplus } #endif /* __cplusplus */ -- cgit v1.2.1