Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_filedialog.c ewl_filedialog.h 


Log Message:
- make the filedialog return a struct instead of a int coerced into a void *
- a bit of reformatting on the tests using the filedialog

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_filedialog.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- ewl_filedialog.c    10 Oct 2005 15:27:10 -0000      1.7
+++ ewl_filedialog.c    21 Oct 2005 04:13:03 -0000      1.8
@@ -241,11 +241,13 @@
 void ewl_filedialog_click_cb(Ewl_Widget *w, void *ev_data __UNUSED__,
                                                                void* data)
 {
+       Ewl_Filedialog_Event ev;
        Ewl_Filedialog *fd = EWL_FILEDIALOG(data);
 
+       ev.response = ewl_button_stock_type_get(EWL_BUTTON(w));
+
        ewl_callback_call_with_event_data(EWL_WIDGET(fd),
-                                         EWL_CALLBACK_VALUE_CHANGED,
-                                         &EWL_BUTTON(w)->stock_type);
+                                         EWL_CALLBACK_VALUE_CHANGED, &ev);
 }
 
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_filedialog.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- ewl_filedialog.h    5 Oct 2005 05:41:01 -0000       1.4
+++ ewl_filedialog.h    21 Oct 2005 04:13:03 -0000      1.5
@@ -50,6 +50,26 @@
        Ewl_Widget *cancel;       /**< Cancel button */
 };
 
+/**
+ * The Ewl_Filedialog_Event returned as the EWL_CALLBACK_VALUE_CHANGED
+ * event
+ */
+typedef struct Ewl_Filedialog_Event Ewl_Filedialog_Event;
+
+/**
+ * @define EWL_FILEDIALOG_EVENT(e)
+ * Typecasts a pointer to an Ewl_Filedialog_Event pointer
+ */
+#define EWL_FILEDIALOG_EVENT(e) ((Ewl_Filedialog_Event *)e)
+
+/**
+ * @struct Ewl_Filedialog_Event
+ * Stores the reponse from the filedialog
+ */
+struct Ewl_Filedialog_Event
+{
+       unsigned int response;
+};
 
 Ewl_Widget *ewl_filedialog_multiselect_new(void);
 Ewl_Widget *ewl_filedialog_new(void);




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to