Enlightenment CVS committal
Author : titan
Project : e17
Module : proto
Dir : e17/proto/ephoto/src
Modified Files:
ephoto.c ephoto.h ephoto_misc.c
Log Message:
Add a realize callback for ephoto --view-image. This prevents the window from
growing when a big image is viewing. You can expand the window after the window
opens.
===================================================================
RCS file: /cvs/e/e17/proto/ephoto/src/ephoto.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -3 -r1.49 -r1.50
--- ephoto.c 20 May 2006 02:07:46 -0000 1.49
+++ ephoto.c 21 May 2006 16:05:21 -0000 1.50
@@ -530,10 +530,6 @@
ewl_widget_show(m->viewscroll);
m->vimage = ewl_image_new();
- if ( argimage != NULL ) {
- ewl_image_file_set(EWL_IMAGE(m->vimage),
- argimage, NULL);
- }
ewl_object_fill_policy_set(EWL_OBJECT(m->vimage),
EWL_FLAG_FILL_SHRINK);
ewl_container_child_append(EWL_CONTAINER(m->viewscroll),
@@ -859,6 +855,8 @@
/************LETS POPULATE THEM TREES******************/
ewl_callback_append(m->directory, EWL_CALLBACK_REALIZE,
populatei_cb, NULL);
+ ewl_callback_append(m->vimage, EWL_CALLBACK_REALIZE,
+ imagerealize_cb, NULL);
/******************************************************/
if ( arglload == 1 ) {
load_cb(NULL, NULL, NULL);
===================================================================
RCS file: /cvs/e/e17/proto/ephoto/src/ephoto.h,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -3 -r1.23 -r1.24
--- ephoto.h 18 May 2006 03:29:52 -0000 1.23
+++ ephoto.h 21 May 2006 16:05:21 -0000 1.24
@@ -47,6 +47,7 @@
void create_list_cb(Ewl_Widget *w, void *event, void *data);
void list_albums_cb(Ewl_Widget *w, void *event, void *data);
void addi(Ewl_Widget *w, void *event, void *data);
+void imagerealize_cb(Ewl_Widget *w, void *event, void *data);
Ecore_List *get_images(const char *dir);
typedef struct _Main Main;
@@ -160,6 +161,7 @@
extern char argload[PATH_MAX];
extern char argwidth[PATH_MAX];
extern char argheight[PATH_MAX];
+extern char argimage[PATH_MAX];
extern char *audios;
#endif
===================================================================
RCS file: /cvs/e/e17/proto/ephoto/src/ephoto_misc.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- ephoto_misc.c 18 May 2006 03:29:52 -0000 1.19
+++ ephoto_misc.c 21 May 2006 16:05:21 -0000 1.20
@@ -613,3 +613,14 @@
}
return imagefiles;
}
+void imagerealize_cb(Ewl_Widget *w, void *event, void *data)
+{
+ if ( argimage != NULL ) {
+ ewl_image_file_set(EWL_IMAGE(m->vimage),
+ argimage, NULL);
+ }
+ return;
+ w = NULL;
+ event = NULL;
+ data = NULL;
+}
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs