Enlightenment CVS committal
Author : urandom
Project : e17
Module : proto
Dir : e17/proto/edje_viewer/src/bin
Modified Files:
etk_gui.c
Log Message:
fix the filechooser
===================================================================
RCS file: /cvs/e/e17/proto/edje_viewer/src/bin/etk_gui.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- etk_gui.c 19 Jun 2006 17:39:29 -0000 1.3
+++ etk_gui.c 19 Jun 2006 18:03:40 -0000 1.4
@@ -227,11 +227,20 @@
static void _gui_fm_ok_clicked_cb(Etk_Object *obj, void *data)
{
Gui *gui;
+ char *file;
+ char *dir;
if (!(gui = data)) return;
- gui->file = etk_filechooser_widget_selected_file_get(
+ dir = etk_filechooser_widget_current_folder_get(
ETK_FILECHOOSER_WIDGET(gui->fm_chooser));
+ file = etk_filechooser_widget_selected_file_get(
+ ETK_FILECHOOSER_WIDGET(gui->fm_chooser));
+ gui->file = strdup(dir);
+ gui->file = strcat(gui->file, "/");
+ gui->file = strcat(gui->file, file);
+ free(dir);
+ free(file);
list_entries(gui->file, ETK_TREE(gui->tree), ETK_TREE(gui->output),
ETK_CANVAS(gui->canvas));
etk_window_hide_on_delete(ETK_OBJECT(gui->fm_dialog), NULL);
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs