Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_toolbar.c ewl_toolbar.h 


Log Message:
- formatting

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_toolbar.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ewl_toolbar.c       1 Jan 2007 20:53:34 -0000       1.1
+++ ewl_toolbar.c       2 Jan 2007 05:22:52 -0000       1.2
@@ -33,16 +33,9 @@
 Ewl_Widget *
 ewl_htoolbar_new(void)
 {
-       Ewl_Widget *t;
-
        DENTER_FUNCTION(DLEVEL_STABLE);
 
-       t = ewl_toolbar_new();
-       if (t)
-               ewl_toolbar_orientation_set(EWL_TOOLBAR(t),
-                               EWL_ORIENTATION_HORIZONTAL);
-
-       DRETURN_PTR(EWL_WIDGET(t), DLEVEL_STABLE);
+       DRETURN_PTR(ewl_toolbar_new(), DLEVEL_STABLE);
 }
 
 /**
@@ -61,7 +54,7 @@
                ewl_toolbar_orientation_set(EWL_TOOLBAR(t),
                                EWL_ORIENTATION_VERTICAL);
 
-       DRETURN_PTR(EWL_WIDGET(t), DLEVEL_STABLE);
+       DRETURN_PTR(t, DLEVEL_STABLE);
 }
 
 /**
@@ -86,6 +79,7 @@
 
        ewl_widget_inherit(w, EWL_TOOLBAR_TYPE);
        ewl_widget_appearance_set(w, "htoolbar");
+
        ewl_object_fill_policy_set(EWL_OBJECT(t), EWL_FLAG_FILL_HFILL |
                                                  EWL_FLAG_FILL_SHRINK);
        ewl_object_alignment_set(EWL_OBJECT(t), EWL_FLAG_ALIGN_LEFT | 
@@ -191,6 +185,5 @@
                ewl_icon_part_hide(EWL_ICON(w), t->hidden);
 
        DLEAVE_FUNCTION(DLEVEL_STABLE);
-
 }
 
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_toolbar.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ewl_toolbar.h       1 Jan 2007 20:53:34 -0000       1.1
+++ ewl_toolbar.h       2 Jan 2007 05:22:52 -0000       1.2
@@ -3,7 +3,10 @@
 
 /**
  * @addtogroup Ewl_Toolbar Ewl_Toolbar: A toolbar widget
- * Defines a widget to 
+ * @brief Defines a widget to contain a toolbar
+ *
+ * @remarks Inherits from Ewl_Menubar.
+ * @image html Ewl_Toolbar_inheritance.png
  *
  * @{
  */
@@ -15,6 +18,7 @@
 #define EWL_TOOLBAR_TYPE "toolbar"
 
 /**
+ * Ewl_Toolbar
  */
 typedef struct Ewl_Toolbar Ewl_Toolbar;
 
@@ -32,16 +36,22 @@
        Ewl_Menubar     menubar; /**< Inherit from Ewl_Menubar */
        Ewl_Icon_Part   hidden;  /**< which part of icons should be hidden */
 };
-
-Ewl_Widget     *ewl_toolbar_new(void);
 Ewl_Widget     *ewl_htoolbar_new(void);
 Ewl_Widget     *ewl_vtoolbar_new(void);
+
+Ewl_Widget     *ewl_toolbar_new(void);
 int             ewl_toolbar_init(Ewl_Toolbar *t);
+
 void            ewl_toolbar_orientation_set(Ewl_Toolbar *t, Ewl_Orientation o);
 Ewl_Orientation ewl_toolbar_orientation_get(Ewl_Toolbar *t);
+
 void            ewl_toolbar_icon_part_hide(Ewl_Toolbar *t, Ewl_Icon_Part part);
 
+/*
+ * Internal functions
+ */
 void            ewl_toolbar_cb_child_add(Ewl_Container *c, Ewl_Widget *w);
+
 /**
  * @}
  */



-------------------------------------------------------------------------
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