Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_paned.c ewl_paned.h Log Message: - Get rid of the extra paned api. You set the active_area and then append into the paned with the container callbacks. This is the same api as the dialog uses. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_paned.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- ewl_paned.c 4 Oct 2005 11:11:00 -0000 1.6 +++ ewl_paned.c 10 Oct 2005 15:37:07 -0000 1.7 @@ -155,7 +155,7 @@ * @brief Changes the current active pane of the paned widget */ void -ewl_paned_active_set(Ewl_Paned *p, Ewl_Position pos) +ewl_paned_active_area_set(Ewl_Paned *p, Ewl_Position pos) { DENTER_FUNCTION(DLEVEL_STABLE); DCHECK_PARAM_PTR("p", p); @@ -176,7 +176,7 @@ * @brief Gets the current active partiton from the paned wiget */ Ewl_Position -ewl_paned_active_get(Ewl_Paned *p) +ewl_paned_active_area_get(Ewl_Paned *p) { DENTER_FUNCTION(DLEVEL_STABLE); DCHECK_PARAM_PTR_RET("p", p, FALSE); @@ -184,78 +184,6 @@ DRETURN_INT(p->active, DLEVEL_STABLE); } -/** - * @param p: the paned wiget to work against - * @param w: the wiget to append - * @return Returns no value. - * @brief Appends the wiget @a w to the first pane in @a p. - */ -void -ewl_paned_first_pane_append(Ewl_Paned *p, Ewl_Widget *w) -{ - DENTER_FUNCTION(DLEVEL_STABLE); - DCHECK_PARAM_PTR("p", p); - DCHECK_PARAM_PTR("w", w); - - ewl_container_child_append(EWL_CONTAINER(p->first), w); - - DLEAVE_FUNCTION(DLEVEL_STABLE); -} - -/** - * @param p: the paned wiget to work against - * @param w: the wiget to append - * @return Returns no value. - * @brief Prepends the wiget @a w to the first pane in @a p. - */ -void -ewl_paned_first_pane_prepend(Ewl_Paned *p, Ewl_Widget *w) -{ - DENTER_FUNCTION(DLEVEL_STABLE); - DCHECK_PARAM_PTR("p", p); - DCHECK_PARAM_PTR("w", w); - - ewl_container_child_prepend(EWL_CONTAINER(p->first), w); - - DLEAVE_FUNCTION(DLEVEL_STABLE); -} - -/** - * @param p: the paned wiget to work against - * @param w: the wiget to append - * @return Returns no value. - * @brief Appends the wiget @a w to the second pane in @a p. - */ -void -ewl_paned_second_pane_append(Ewl_Paned *p, Ewl_Widget *w) -{ - DENTER_FUNCTION(DLEVEL_STABLE); - DCHECK_PARAM_PTR("p", p); - DCHECK_PARAM_PTR("w", w); - - ewl_container_child_append(EWL_CONTAINER(p->second), w); - - DLEAVE_FUNCTION(DLEVEL_STABLE); -} - -/** - * @param p: the paned wiget to work against - * @param w: the wiget to append - * @return Returns no value. - * @brief Prepends the wiget @a w to the second pane in @a p. - */ -void -ewl_paned_second_pane_prepend(Ewl_Paned *p, Ewl_Widget *w) -{ - DENTER_FUNCTION(DLEVEL_STABLE); - DCHECK_PARAM_PTR("p", p); - DCHECK_PARAM_PTR("w", w); - - ewl_container_child_prepend(EWL_CONTAINER(p->second), w); - - DLEAVE_FUNCTION(DLEVEL_STABLE); -} - void ewl_paned_configure_cb(Ewl_Widget *w, void *ev __UNUSED__, void *user_data __UNUSED__) =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_paned.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- ewl_paned.h 4 Oct 2005 05:23:26 -0000 1.5 +++ ewl_paned.h 10 Oct 2005 15:37:07 -0000 1.6 @@ -44,14 +44,8 @@ Ewl_Widget *ewl_vpaned_new(void); int ewl_paned_init(Ewl_Paned *p); -void ewl_paned_active_set(Ewl_Paned *p, Ewl_Position pos); -Ewl_Position ewl_paned_active_get(Ewl_Paned *p); - -void ewl_paned_first_pane_append(Ewl_Paned *p, Ewl_Widget *w); -void ewl_paned_first_pane_prepend(Ewl_Paned *p, Ewl_Widget *w); -void ewl_paned_second_pane_append(Ewl_Paned *p, Ewl_Widget *w); -void ewl_paned_second_pane_prepend(Ewl_Paned *p, Ewl_Widget *w); - +void ewl_paned_active_area_set(Ewl_Paned *p, Ewl_Position pos); +Ewl_Position ewl_paned_active_area_get(Ewl_Paned *p); /* * Internally used callbacks, override at your own risk. ------------------------------------------------------- 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