Enlightenment CVS committal
Author : jethomas
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/bin/tests/io_manager
Modified Files:
ewl_io_manager_test.c
Log Message:
Bunch of small fixes
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/io_manager/ewl_io_manager_test.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_io_manager_test.c 9 Dec 2007 04:33:38 -0000 1.2
+++ ewl_io_manager_test.c 9 Dec 2007 06:21:42 -0000 1.3
@@ -8,6 +8,8 @@
#include <stdio.h>
#include <stdlib.h>
+#include <Ecore_Data.h>
+#include <string.h>
static int create_test(Ewl_Container *box);
@@ -50,11 +52,16 @@
void *data __UNUSED__)
{
Ewl_Widget *fd;
+ Ecore_List *filters;
+
+ filters = ecore_list_new();
+ ecore_list_append(filters, strdup("image/jpeg"));
+ ecore_list_append(filters, strdup("image/png"));
+ ecore_list_append(filters, strdup("image/gif"));
fd = ewl_filedialog_new();
ewl_filedialog_filter_add(EWL_FILEDIALOG(fd), "txt", "*.txt", NULL);
- ewl_filedialog_filter_add(EWL_FILEDIALOG(fd), "png", "*.png", NULL);
- ewl_filedialog_filter_add(EWL_FILEDIALOG(fd), "jpg", "*.jpg", NULL);
+ ewl_filedialog_filter_add(EWL_FILEDIALOG(fd), "Images", NULL, filters);
ewl_callback_append(fd, EWL_CALLBACK_DELETE_WINDOW, cb_fd_delete, NULL);
ewl_callback_append(fd, EWL_CALLBACK_VALUE_CHANGED, cb_open, NULL);
ewl_widget_show(fd);
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs