Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_colordialog.c ewl_filepicker.c 


Log Message:
fix warnings

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_colordialog.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -3 -r1.24 -r1.25
--- ewl_colordialog.c   30 Nov 2006 19:35:46 -0000      1.24
+++ ewl_colordialog.c   1 Dec 2006 17:35:38 -0000       1.25
@@ -72,14 +72,16 @@
        /* create the buttons */
        o = ewl_button_new();
        ewl_container_child_append(EWL_CONTAINER(cd), o);
-       ewl_stock_type_set(EWL_BUTTON(o), EWL_STOCK_OK);
-       ewl_callback_append(o, EWL_CALLBACK_CLICKED, 
ewl_colordialog_cb_button_click, cd);
+       ewl_stock_type_set(EWL_STOCK(o), EWL_STOCK_OK);
+       ewl_callback_append(o, EWL_CALLBACK_CLICKED, 
+                                       ewl_colordialog_cb_button_click, cd);
        ewl_widget_show(o);
 
        o = ewl_button_new();
        ewl_container_child_append(EWL_CONTAINER(cd), o);
-       ewl_stock_type_set(EWL_BUTTON(o), EWL_STOCK_CANCEL);
-       ewl_callback_append(o, EWL_CALLBACK_CLICKED, 
ewl_colordialog_cb_button_click, cd);
+       ewl_stock_type_set(EWL_STOCK(o), EWL_STOCK_CANCEL);
+       ewl_callback_append(o, EWL_CALLBACK_CLICKED, 
+                                       ewl_colordialog_cb_button_click, cd);
        ewl_widget_show(o);
 
        DRETURN_INT(TRUE, DLEVEL_STABLE);
@@ -301,7 +303,7 @@
        DCHECK_PARAM_PTR("w", w);
        DCHECK_TYPE("w", w, EWL_WIDGET_TYPE);
 
-       type = ewl_stock_type_get(EWL_BUTTON(w));
+       type = ewl_stock_type_get(EWL_STOCK(w));
        ewl_colordialog_respond(EWL_COLORDIALOG(data), type);
         
        DLEAVE_FUNCTION(DLEVEL_STABLE);
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_filepicker.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- ewl_filepicker.c    30 Nov 2006 19:35:46 -0000      1.17
+++ ewl_filepicker.c    1 Dec 2006 17:35:38 -0000       1.18
@@ -595,7 +595,7 @@
                                                        void *data)
 {
        Ewl_Filepicker *fp;
-       Ewl_Button *b;
+       Ewl_Stock *s;
        Ewl_Filepicker_Event e;
 
        DENTER_FUNCTION(DLEVEL_STABLE);
@@ -604,9 +604,9 @@
        DCHECK_TYPE("w", w, EWL_WIDGET_TYPE);
 
        fp = data;
-       b = EWL_BUTTON(w);
+       s = EWL_STOCK(w);
 
-       e.response = ewl_stock_type_get(b);
+       e.response = ewl_stock_type_get(s);
 
        if (e.response == EWL_STOCK_CANCEL)
        {



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to