[Xfce4-commits] [xfce/thunar] 01/02: Show debug message if creating a folder monitor failed
noreply at xfce.org
noreply at xfce.org
Mon Aug 26 22:21:09 CEST 2019
This is an automated email from the git hooks/post-receive script.
a l e x p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/thunar.
commit 2d05dd8011bdaf4cac13f61cb1c19716048d4536
Author: Alexander Schwinn <alexxcons at xfce.org>
Date: Thu Jul 18 10:49:38 2019 +0200
Show debug message if creating a folder monitor failed
---
thunar/thunar-folder.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/thunar/thunar-folder.c b/thunar/thunar-folder.c
index 203a1b9..bdec107 100644
--- a/thunar/thunar-folder.c
+++ b/thunar/thunar-folder.c
@@ -136,12 +136,18 @@ static void
thunar_folder_constructed (GObject *object)
{
ThunarFolder *folder = THUNAR_FOLDER (object);
+ GError *error = NULL;
/* add us to the folder alteration monitor */
folder->monitor = g_file_monitor_directory (thunar_file_get_file (folder->corresponding_file),
- G_FILE_MONITOR_SEND_MOVED, NULL, NULL);
+ G_FILE_MONITOR_SEND_MOVED, NULL, &error);
if (G_LIKELY (folder->monitor != NULL))
g_signal_connect (folder->monitor, "changed", G_CALLBACK (thunar_folder_monitor), folder);
+ else
+ {
+ g_debug ("Could not create folder monitor: %s", error->message);
+ g_error_free (error);
+ }
G_OBJECT_CLASS (thunar_folder_parent_class)->constructed (object);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list