Enlightenment CVS committal
Author : jethomas
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_image.c
Log Message:
Fix bug 243
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_image.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -3 -r1.70 -r1.71
--- ewl_image.c 12 Nov 2007 22:42:22 -0000 1.70
+++ ewl_image.c 31 Dec 2007 05:56:17 -0000 1.71
@@ -14,6 +14,7 @@
static Ecore_Event_Handler *ewl_image_epsilon_handler = NULL;
static int ewl_image_thumbnail_cb_complete(void *data, int type, void *event);
+static void ewl_image_thumbnail_cb_value_changed(Ewl_Widget *w, void *ev, void
*data);
#endif
@@ -637,12 +638,37 @@
ewl_image_thumbnail_request(EWL_IMAGE_THUMBNAIL(thumb),
(char *)ewl_image_file_path_get(i));
EWL_IMAGE_THUMBNAIL(thumb)->orig = EWL_WIDGET(i);
+ ewl_callback_append(EWL_WIDGET(i),
+ EWL_CALLBACK_VALUE_CHANGED,
+ ewl_image_thumbnail_cb_value_changed,
+ thumb);
}
}
#endif
DRETURN_PTR(thumb, DLEVEL_STABLE);
}
+
+#ifdef BUILD_EPSILON_SUPPORT
+static void
+ewl_image_thumbnail_cb_value_changed(Ewl_Widget *w, void *ev, void *data)
+{
+ Ewl_Widget *thumb;
+ Ewl_Widget *image;
+
+ DENTER_FUNCTION(DLEVEL_STABLE);
+ DCHECK_PARAM_PTR(w);
+ DCHECK_PARAM_PTR(data);
+
+ thumb = data;
+ image = w;
+
+ ewl_image_thumbnail_request(EWL_IMAGE_THUMBNAIL(thumb),
+ (char *)ewl_image_file_path_get(EWL_IMAGE(image)));
+
+ DLEAVE_FUNCTION(DLEVEL_STABLE);
+}
+#endif
/**
* @return Returns a new Ewl_Image_Thumbnail widget
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs