appchooserdialog: Don't fire notify::heading twice
authorMohammed Sadiq <sadiq@sadiqpk.org>
Sun, 13 May 2018 07:51:06 +0000 (13:21 +0530)
committerMohammed Sadiq <sadiq@sadiqpk.org>
Sun, 13 May 2018 09:26:49 +0000 (14:56 +0530)
The gtk_app_chooser_dialog_set_heading() function do emit
notify::heading. Since the setter simply calls the function,
the setter itself shouldn't emit a notify signal by itself.

gtk/gtkappchooserdialog.c

index 352f73548628cb8bfd7c8e0253deb70d99fcb218..8762796e34532dfba148f283739782824399123a 100644 (file)
@@ -639,7 +639,8 @@ gtk_app_chooser_dialog_class_init (GtkAppChooserDialogClass *klass)
                                P_("Heading"),
                                P_("The text to show at the top of the dialog"),
                                NULL,
-                               G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
+                               G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS |
+                               G_PARAM_EXPLICIT_NOTIFY);
   g_object_class_install_property (gobject_class, PROP_HEADING, pspec);
 
   /* Bind class to template