summaryrefslogtreecommitdiff
path: root/gtk/gtkmessagedialog.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-09-02 09:11:23 -0400
committerMatthias Clasen <mclasen@redhat.com>2010-09-02 09:14:20 -0400
commitd433a606111d89727530f71d7b956ba40655bcbf (patch)
treebefde181b278304e852d5d6c8063a7de78b29b37 /gtk/gtkmessagedialog.c
parent97cd2500c34fd2419923ec06dc315dd9fd3340d1 (diff)
downloadgtk+-d433a606111d89727530f71d7b956ba40655bcbf.tar.gz
Remove separators from dialogs
It seems more reasonable to remove this feature than to keep fighting off every separator that pops up by accident in a dialog.
Diffstat (limited to 'gtk/gtkmessagedialog.c')
-rw-r--r--gtk/gtkmessagedialog.c32
1 files changed, 1 insertions, 31 deletions
diff --git a/gtk/gtkmessagedialog.c b/gtk/gtkmessagedialog.c
index 5458bd54f1..62bbe070cb 100644
--- a/gtk/gtkmessagedialog.c
+++ b/gtk/gtkmessagedialog.c
@@ -187,20 +187,7 @@ gtk_message_dialog_class_init (GtkMessageDialogClass *class)
G_MAXINT,
12,
GTK_PARAM_READABLE));
- /**
- * GtkMessageDialog:use-separator:
- *
- * Whether to draw a separator line between the message label and the buttons
- * in the dialog.
- *
- * Since: 2.4
- */
- gtk_widget_class_install_style_property (widget_class,
- g_param_spec_boolean ("use-separator",
- P_("Use separator"),
- P_("Whether to put a separator between the message dialog's text and the buttons"),
- FALSE,
- GTK_PARAM_READABLE));
+
/**
* GtkMessageDialog:message-type:
*
@@ -386,8 +373,6 @@ gtk_message_dialog_init (GtkMessageDialog *dialog)
gtk_box_set_spacing (GTK_BOX (action_area), 6);
gtk_widget_show_all (hbox);
-
- _gtk_dialog_set_ignore_separator (GTK_DIALOG (dialog), TRUE);
}
static void
@@ -616,12 +601,6 @@ gtk_message_dialog_new (GtkWindow *parent,
NULL);
dialog = GTK_DIALOG (widget);
- if (flags & GTK_DIALOG_NO_SEPARATOR)
- {
- g_warning ("The GTK_DIALOG_NO_SEPARATOR flag cannot be used for GtkMessageDialog");
- flags &= ~GTK_DIALOG_NO_SEPARATOR;
- }
-
if (message_format)
{
va_start (args, message_format);
@@ -1001,7 +980,6 @@ gtk_message_dialog_style_set (GtkWidget *widget,
GtkStyle *prev_style)
{
GtkMessageDialog *dialog = GTK_MESSAGE_DIALOG (widget);
- gboolean use_separator;
GtkWidget *parent;
gint border_width;
@@ -1016,14 +994,6 @@ gtk_message_dialog_style_set (GtkWidget *widget,
MAX (0, border_width - 7));
}
- gtk_widget_style_get (widget,
- "use-separator", &use_separator,
- NULL);
-
- _gtk_dialog_set_ignore_separator (GTK_DIALOG (widget), FALSE);
- gtk_dialog_set_has_separator (GTK_DIALOG (widget), use_separator);
- _gtk_dialog_set_ignore_separator (GTK_DIALOG (widget), TRUE);
-
setup_primary_label_font (dialog);
GTK_WIDGET_CLASS (gtk_message_dialog_parent_class)->style_set (widget, prev_style);