summaryrefslogtreecommitdiff
path: root/gtk/gtkmessagedialog.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-02-04 00:25:36 -0500
committerMatthias Clasen <mclasen@redhat.com>2021-02-04 00:25:36 -0500
commit1e0ea21297b46ac8bc879ff2b23ed9d0d34b5d5f (patch)
tree044845ed0d2e53bfac78e614dd5d525724dd4275 /gtk/gtkmessagedialog.c
parente91e75173d0650293345694e263d038ee9f5588b (diff)
downloadgtk+-1e0ea21297b46ac8bc879ff2b23ed9d0d34b5d5f.tar.gz
messagedialog: Don't initialize twice
We don't need to set these fields more than once. Pointed out in https://www.viva64.com/en/b/0793/
Diffstat (limited to 'gtk/gtkmessagedialog.c')
-rw-r--r--gtk/gtkmessagedialog.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gtk/gtkmessagedialog.c b/gtk/gtkmessagedialog.c
index faa100354e..af61f8cb55 100644
--- a/gtk/gtkmessagedialog.c
+++ b/gtk/gtkmessagedialog.c
@@ -456,8 +456,6 @@ gtk_message_dialog_init (GtkMessageDialog *dialog)
priv->has_primary_markup = FALSE;
priv->has_secondary_text = FALSE;
- priv->has_primary_markup = FALSE;
- priv->has_secondary_text = FALSE;
priv->message_type = GTK_MESSAGE_OTHER;
gtk_widget_add_css_class (GTK_WIDGET (dialog), "message");