Commit 46c4b66d authored by Corentin Noël's avatar Corentin Noël

file-chooser-entry: notify on file change

parent 00c71f0b
......@@ -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]);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment