[Xfce4-commits] [apps/ristretto] 01/01: Fix GLib-GObject-CRITICAL in directory monitoring code
noreply at xfce.org
noreply at xfce.org
Sun Feb 5 18:12:52 CET 2017
This is an automated email from the git hooks/post-receive script.
f2404 pushed a commit to branch master
in repository apps/ristretto.
commit 19e709c4885204be640ccb053de8006e10edb12f
Author: Igor <f2404 at yandex.ru>
Date: Sun Feb 5 20:12:46 2017 +0300
Fix GLib-GObject-CRITICAL in directory monitoring code
---
src/image_list.c | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/src/image_list.c b/src/image_list.c
index 427d7c3..f37dd8c 100644
--- a/src/image_list.c
+++ b/src/image_list.c
@@ -836,11 +836,14 @@ rstto_image_list_monitor_dir (
NULL,
NULL);
- g_signal_connect (
- G_OBJECT(monitor),
- "changed",
- G_CALLBACK (cb_file_monitor_changed),
- image_list);
+ if ( monitor != NULL )
+ {
+ g_signal_connect (
+ G_OBJECT (monitor),
+ "changed",
+ G_CALLBACK (cb_file_monitor_changed),
+ image_list);
+ }
}
if (image_list->priv->image_monitors)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list