[eog] Emit ::file-changed when a image in a a monitored directory changes
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] Emit ::file-changed when a image in a a monitored directory changes
- Date: Tue, 14 Sep 2010 12:21:45 +0000 (UTC)
commit d4174ac084accda573e9e345c380dc3b0d63d170
Author: Claudio Saavedra <csaavedra igalia com>
Date: Fri Sep 10 17:52:41 2010 +0300
Emit ::file-changed when a image in a a monitored directory changes
src/eog-list-store.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/eog-list-store.c b/src/eog-list-store.c
index cb58a24..0ff78da 100644
--- a/src/eog-list-store.c
+++ b/src/eog-list-store.c
@@ -389,6 +389,7 @@ file_monitor_changed_cb (GFileMonitor *monitor,
const char *mimetype;
GFileInfo *file_info;
GtkTreeIter iter;
+ EogImage *image;
switch (event) {
case G_FILE_MONITOR_EVENT_CHANGED:
@@ -402,6 +403,11 @@ file_monitor_changed_cb (GFileMonitor *monitor,
if (is_file_in_list_store_file (store, file, &iter)) {
if (eog_image_is_supported_mime_type (mimetype)) {
+ gtk_tree_model_get (GTK_TREE_MODEL (store), &iter,
+ EOG_LIST_STORE_EOG_IMAGE, &image,
+ -1);
+ eog_image_file_changed (image);
+ g_object_unref (image);
eog_list_store_thumbnail_refresh (store, &iter);
} else {
eog_list_store_remove (store, &iter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]