Enlightenment CVS committal
Author : jethomas
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/bin/tests/io_manager
Modified Files:
ewl_io_manager.c
Log Message:
Fix tests as filedialog now returns full path to file
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/io_manager/ewl_io_manager.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ewl_io_manager.c 23 Aug 2007 05:26:45 -0000 1.6
+++ ewl_io_manager.c 15 Nov 2007 04:05:48 -0000 1.7
@@ -81,22 +81,21 @@
fd = EWL_FILEDIALOG(w);
s = ewl_filedialog_selected_file_get(fd);
- snprintf(path, sizeof(path), "%s/%s",
- ewl_filedialog_directory_get(fd), s);
- if (s) free(s);
ewl_widget_destroy(w);
scroll = ewl_widget_name_find("scroll");
ewl_container_reset(EWL_CONTAINER(scroll));
- t = ewl_io_manager_uri_read(path);
+ t = ewl_io_manager_uri_read(s);
if (!t)
{
- printf("Unable to create widget from file (%s)\n", path);
+ printf("Unable to create widget from file (%s)\n", s);
return;
}
ewl_container_child_append(EWL_CONTAINER(scroll), t);
ewl_widget_show(t);
+
+ free(s);
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs