diff --git a/src/widgets/dzl-file-chooser-entry.c b/src/widgets/dzl-file-chooser-entry.c index 7a4eade1985a7883d511dc53282e1eb9f88eba9a..9ff4fc480a0087a1aeac3f4e249127a34ad1cf0d 100644 --- a/src/widgets/dzl-file-chooser-entry.c +++ b/src/widgets/dzl-file-chooser-entry.c @@ -220,7 +220,9 @@ dzl_file_chooser_entry_changed (DzlFileChooserEntry *self, g_assert (GTK_IS_ENTRY (entry)); file = file_expand (gtk_entry_get_text (entry)); - g_set_object (&priv->file, file); + + if (g_set_object (&priv->file, file)) + g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_FILE]); } static void @@ -556,4 +558,6 @@ dzl_file_chooser_entry_set_file (DzlFileChooserEntry *self, collapsed = file_collapse (file); gtk_entry_set_text (priv->entry, collapsed); + + g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_FILE]); }