Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src


Modified Files:
        ewl_button_stock.c ewl_button_stock.h ewl_dialog.c 


Log Message:
 * Update box test to use new button API.
 * Convert the stock button api.
 * Update ewl_edb_ed to the new stock button API.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_button_stock.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- ewl_button_stock.c  19 Aug 2004 20:03:32 -0000      1.9
+++ ewl_button_stock.c  20 Aug 2004 16:56:00 -0000      1.10
@@ -19,7 +19,7 @@
 /* Otherwise, return NULL */
 /* The result must be freed when not used anymore */
 char *
-ewl_stock_get_label (const char *stock_id)
+ewl_stock_label_get (const char *stock_id)
 {
   int i, val;
   char *label = NULL;
@@ -45,7 +45,7 @@
  * @brief Allocate and initialize a new button with eventually a stock
  * icon.
  */
-Ewl_Widget *ewl_button_with_stock_new (char *stock_id)
+Ewl_Widget *ewl_button_stock_new (char *stock_id)
 {
   Ewl_Button_Stock *b;
 
@@ -55,7 +55,7 @@
   if (!b)
     return NULL;
   
-  ewl_button_with_stock_init(b, stock_id);
+  ewl_button_stock_init(b, stock_id);
 
   DRETURN_PTR(EWL_WIDGET(b), DLEVEL_STABLE);
 }
@@ -69,7 +69,7 @@
  *
  * Initializes a button to default values and callbacks.
  */
-int ewl_button_with_stock_init(Ewl_Button_Stock * b, char *stock_id)
+int ewl_button_stock_init(Ewl_Button_Stock * b, char *stock_id)
 {
   Ewl_Widget *w;
   char       *label;
@@ -78,7 +78,7 @@
   DENTER_FUNCTION(DLEVEL_STABLE);
   DCHECK_PARAM_PTR_RET("b", b, 0);
 
-  label = ewl_stock_get_label (stock_id);
+  label = ewl_stock_label_get (stock_id);
  
   if (label)
     {
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_button_stock.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- ewl_button_stock.h  27 Jul 2004 05:23:15 -0000      1.8
+++ ewl_button_stock.h  20 Aug 2004 16:56:00 -0000      1.9
@@ -67,9 +67,9 @@
   int         response_id;  /* the response Id */
 };
 
-Ewl_Widget *ewl_button_with_stock_new (char *stock_id);
-int         ewl_button_with_stock_init(Ewl_Button_Stock *b, 
-                                      char             *stock_id);
+Ewl_Widget *ewl_button_stock_new (char *stock_id);
+int         ewl_button_stock_init(Ewl_Button_Stock *b, 
+                                 char *stock_id);
 
 /**
  * @}
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_dialog.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- ewl_dialog.c        19 Aug 2004 20:03:32 -0000      1.7
+++ ewl_dialog.c        20 Aug 2004 16:56:00 -0000      1.8
@@ -244,7 +244,7 @@
   
   DENTER_FUNCTION(DLEVEL_STABLE);
 
-  button = ewl_button_with_stock_new (button_text);
+  button = ewl_button_stock_new (button_text);
   ewl_object_padding_set(EWL_OBJECT (button), 0, 3, 3, 3);
   ewl_object_fill_policy_set(EWL_OBJECT (button),
                              EWL_FLAG_FILL_VFILL || EWL_FLAG_FILL_SHRINK);
@@ -273,7 +273,7 @@
   if (!dialog)
     return NULL;
 
-  button = ewl_button_with_stock_new (button_text);
+  button = ewl_button_stock_new (button_text);
   ewl_object_padding_set (EWL_OBJECT (button), 0, 3, 3, 3);
   ewl_container_child_append (EWL_CONTAINER (dialog->action_area),
                              button);
@@ -306,7 +306,7 @@
   if (!dialog)
     return NULL;
 
-  button = ewl_button_with_stock_new (button_text);
+  button = ewl_button_stock_new (button_text);
   ewl_object_padding_set (EWL_OBJECT (button), 0, 3, 3, 3);
   ewl_container_child_prepend (EWL_CONTAINER (dialog->action_area),
                               button);




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to