Revision: 1537
http://geeqie.svn.sourceforge.net/geeqie/?rev=1537&view=rev
Author: nadvornik
Date: 2009-03-15 12:20:14 +0000 (Sun, 15 Mar 2009)
Log Message:
-----------
added notification to the exif pane
Modified Paths:
--------------
trunk/src/bar_exif.c
Modified: trunk/src/bar_exif.c
===================================================================
--- trunk/src/bar_exif.c 2009-03-15 11:58:46 UTC (rev 1536)
+++ trunk/src/bar_exif.c 2009-03-15 12:20:14 UTC (rev 1537)
@@ -232,6 +232,12 @@
bar_pane_exif_update(ped);
}
+static void bar_pane_exif_notify_cb(FileData *fd, NotifyType type, gpointer
data)
+{
+ PaneExifData *ped = data;
+ if ((type & (NOTIFY_REREAD | NOTIFY_CHANGE | NOTIFY_METADATA)) && fd ==
ped->fd) bar_pane_exif_update(ped);
+}
+
/*
*-------------------------------------------------------------------
* dnd
@@ -597,6 +603,7 @@
{
PaneExifData *ped = data;
+ file_data_unregister_notify_func(bar_pane_exif_notify_cb, ped);
g_object_unref(ped->size_group);
file_data_unref(ped->fd);
g_free(ped);
@@ -646,6 +653,8 @@
bar_pane_exif_dnd_init(ped->widget);
g_signal_connect(ped->widget, "button_press_event",
G_CALLBACK(bar_pane_exif_menu_cb), ped);
+ file_data_register_notify_func(bar_pane_exif_notify_cb, ped,
NOTIFY_PRIORITY_LOW);
+
if (populate)
{
bar_pane_exif_add_entry(ped, EXIF_FORMATTED("Camera"), NULL,
TRUE);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn