eog r4812 - in trunk: . src
- From: csaavedra svn gnome org
- To: svn-commits-list gnome org
- Subject: eog r4812 - in trunk: . src
- Date: Tue, 30 Sep 2008 20:46:55 +0000 (UTC)
Author: csaavedra
Date: Tue Sep 30 20:46:55 2008
New Revision: 4812
URL: http://svn.gnome.org/viewvc/eog?rev=4812&view=rev
Log:
2008-09-30 Claudio Saavedra <csaavedra igalia com>
* src/eog-list-store.c: (eog_list_store_append_directory): Do not
attempt to monitor a directory if monitoring is not supported.
Fixes a couple of critical warnings.
Modified:
trunk/ChangeLog
trunk/src/eog-list-store.c
Modified: trunk/src/eog-list-store.c
==============================================================================
--- trunk/src/eog-list-store.c (original)
+++ trunk/src/eog-list-store.c Tue Sep 30 20:46:55 2008
@@ -503,13 +503,16 @@
file_monitor = g_file_monitor_directory (file,
0, NULL, NULL);
- g_signal_connect (file_monitor, "changed",
- G_CALLBACK (file_monitor_changed_cb), store);
- /* prepend seems more efficient to me, we don't need this list
- to be sorted */
- store->priv->monitors = g_list_prepend (store->priv->monitors, file_monitor);
-
+ if (file_monitor != NULL) {
+ g_signal_connect (file_monitor, "changed",
+ G_CALLBACK (file_monitor_changed_cb), store);
+
+ /* prepend seems more efficient to me, we don't need this list
+ to be sorted */
+ store->priv->monitors = g_list_prepend (store->priv->monitors, file_monitor);
+ }
+
file_enumerator = g_file_enumerate_children (file,
G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE ","
G_FILE_ATTRIBUTE_STANDARD_NAME,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]