Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_separator.c ewl_separator.h 


Log Message:
Fix the vertical and horizontal constructors.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_separator.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ewl_separator.c     4 Oct 2005 05:23:26 -0000       1.5
+++ ewl_separator.c     5 Oct 2005 05:50:06 -0000       1.6
@@ -5,7 +5,7 @@
 
 /**
  * @return Returns pointer to new separator widget on success, NULL on failure.
- * @brief Allocate a new separator widget
+ * @brief Allocate a new separator widget with default (horizontal) orientation
  */
 Ewl_Widget     *ewl_separator_new()
 {
@@ -23,6 +23,48 @@
 }
 
 /**
+ * @return Returns pointer to new separator widget on success, NULL on failure.
+ * @brief Allocate a new separator widget with horizontal orientation
+ */
+Ewl_Widget *ewl_hseparator_new()
+{
+       Ewl_Widget *s;
+
+       DENTER_FUNCTION(DLEVEL_STABLE);
+
+       s = ewl_separator_new();
+       if (s)
+               ewl_separator_orientation_set(EWL_SEPARATOR(s),
+                               EWL_ORIENTATION_HORIZONTAL);
+
+       DRETURN_PTR(EWL_WIDGET(s), DLEVEL_STABLE);
+}
+
+/**
+ * @return Returns pointer to new separator widget on success, NULL on failure.
+ * @brief Allocate a new separator widget with vertical orientation
+ */
+Ewl_Widget *ewl_vseparator_new()
+{
+       Ewl_Widget *s;
+
+       DENTER_FUNCTION(DLEVEL_STABLE);
+
+       s = ewl_separator_new();
+       if (s)
+               ewl_separator_orientation_set(EWL_SEPARATOR(s),
+                               EWL_ORIENTATION_VERTICAL);
+
+       DRETURN_PTR(EWL_WIDGET(s), DLEVEL_STABLE);
+}
+
+/**
+ * @def ewl_vseparator_new()
+ * @brief Convenience macro to easily define a vertical separator.
+ */
+#define ewl_vseparator_new() ewl_separator_new(EWL_ORIENTATION_VERTICAL)
+
+/**
  * @param s: the separator to initialize
  * @return Returns TRUE on success, FALSE on failure.
  * @brief Initialize the separator and inherited fields
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_separator.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- ewl_separator.h     4 Oct 2005 05:23:26 -0000       1.4
+++ ewl_separator.h     5 Oct 2005 05:50:06 -0000       1.5
@@ -40,19 +40,9 @@
        Ewl_Orientation orientation; /**< Sets drawing horizontal or vertical */
 };
 
-/**
- * @def ewl_hseparator_new()
- * @brief Convenience macro to easily define a horizontal separator.
- */
-#define ewl_hseparator_new() ewl_separator_new(EWL_ORIENTATION_HORIZONTAL)
-
-/**
- * @def ewl_vseparator_new()
- * @brief Convenience macro to easily define a vertical separator.
- */
-#define ewl_vseparator_new() ewl_separator_new(EWL_ORIENTATION_VERTICAL)
-
 Ewl_Widget     *ewl_separator_new();
+Ewl_Widget     *ewl_hseparator_new();
+Ewl_Widget     *ewl_vseparator_new();
 int             ewl_separator_init(Ewl_Separator * s);
 void            ewl_separator_orientation_set(Ewl_Separator *s, 
Ewl_Orientation o);
 Ewl_Orientation ewl_separator_orientation_get(Ewl_Separator *s);




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