Enlightenment CVS committal
Author : dj2
Project : e17
Module : apps/e_utils
Dir : e17/apps/e_utils/src/bin/eapp_edit
Modified Files:
eapp_edit_main.c
Log Message:
- convert to ewl api change
===================================================================
RCS file:
/cvsroot/enlightenment/e17/apps/e_utils/src/bin/eapp_edit/eapp_edit_main.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -3 -r1.34 -r1.35
--- eapp_edit_main.c 21 Oct 2005 04:15:04 -0000 1.34
+++ eapp_edit_main.c 4 Dec 2005 17:00:10 -0000 1.35
@@ -297,23 +297,13 @@
fd = ewl_widget_name_find("fd");
if (!fd)
{
- Ewl_Widget *dialog;
-
- fd = ewl_window_new();
- ewl_window_title_set(EWL_WINDOW(fd), "Eapp Editor Icon Selection");
- ewl_window_name_set(EWL_WINDOW(fd), "Eapp Editor");
- ewl_window_class_set(EWL_WINDOW(fd), "Eapp Editor");
- ewl_widget_name_set(fd, "fd");
- ewl_callback_append(fd, EWL_CALLBACK_DELETE_WINDOW,
- eapp_cb_fd_hide, NULL);
-
- dialog = ewl_filedialog_new();
- ewl_filedialog_type_set(EWL_FILEDIALOG(dialog),
+ fd = ewl_filedialog_new();
+ ewl_widget_name_set(fd, "fd");
+ ewl_filedialog_type_set(EWL_FILEDIALOG(fd),
EWL_FILEDIALOG_TYPE_OPEN);
- ewl_callback_append(dialog, EWL_CALLBACK_VALUE_CHANGED,
+ ewl_callback_append(fd, EWL_CALLBACK_VALUE_CHANGED,
eapp_cb_fd_changed, NULL);
- ewl_container_child_append(EWL_CONTAINER(fd), dialog);
- ewl_widget_show(dialog);
+ ewl_widget_show(fd);
}
ewl_widget_show(fd);
}
@@ -327,10 +317,10 @@
static void
eapp_cb_fd_changed(Ewl_Widget *w, void *ev, void *data)
{
- Ewl_Filedialog_Event *e;
+ Ewl_Dialog_Event *e;
Ewl_Widget *o;
- e = EWL_FILEDIALOG_EVENT(ev);
+ e = ev;
if (e->response == EWL_STOCK_OPEN)
{
char *icon;
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs