summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-02-04 00:25:36 -0500
committerMatthias Clasen <mclasen@redhat.com>2021-02-07 11:44:39 -0500
commit44cb05cbf63dea50f13fe5829749503592221517 (patch)
tree1bcfe06e2e7d9b51b60a498cf714f261d8143f4a
parent647bc9ff75027273515bc9fc9a7d2538606ef3d5 (diff)
downloadgtk+-44cb05cbf63dea50f13fe5829749503592221517.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/
-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");