Commit 19e709c4 authored by Igor's avatar Igor

Fix GLib-GObject-CRITICAL in directory monitoring code

parent f6a233c0
...@@ -836,11 +836,14 @@ rstto_image_list_monitor_dir ( ...@@ -836,11 +836,14 @@ rstto_image_list_monitor_dir (
NULL, NULL,
NULL); NULL);
g_signal_connect ( if ( monitor != NULL )
G_OBJECT(monitor), {
"changed", g_signal_connect (
G_CALLBACK (cb_file_monitor_changed), G_OBJECT (monitor),
image_list); "changed",
G_CALLBACK (cb_file_monitor_changed),
image_list);
}
} }
if (image_list->priv->image_monitors) if (image_list->priv->image_monitors)
......
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