Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_freebox.c ewl_freebox.h
Log Message:
- remove unneeded callbacks
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_freebox.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ewl_freebox.c 31 Dec 2005 06:03:36 -0000 1.1
+++ ewl_freebox.c 31 Dec 2005 06:23:30 -0000 1.2
@@ -70,14 +70,8 @@
ewl_freebox_cb_configure, NULL);
ewl_container_add_notify_set(EWL_CONTAINER(fb),
ewl_freebox_cb_child_add);
- ewl_container_remove_notify_set(EWL_CONTAINER(fb),
- ewl_freebox_cb_child_remove);
- ewl_container_resize_notify_set(EWL_CONTAINER(fb),
- ewl_freebox_cb_child_resize);
ewl_container_show_notify_set(EWL_CONTAINER(fb),
ewl_freebox_cb_child_show);
- ewl_container_hide_notify_set(EWL_CONTAINER(fb),
- ewl_freebox_cb_child_hide);
fb->layout = EWL_FREEBOX_LAYOUT_AUTO;
ewl_widget_focusable_set(EWL_WIDGET(fb), FALSE);
@@ -188,8 +182,6 @@
DCHECK_PARAM_PTR("w", w);
DCHECK_TYPE("w", w, "freebox");
-printf("CONFIGURE\n");
-
fb = EWL_FREEBOX(w);
if (fb->layout == EWL_FREEBOX_LAYOUT_AUTO)
ewl_freebox_layout_auto(fb);
@@ -221,37 +213,6 @@
fb = EWL_FREEBOX(c);
fb->sorted = FALSE;
-printf("CHILD ADD\n");
-
- DLEAVE_FUNCTION(DLEVEL_STABLE);
-}
-
-void
-ewl_freebox_cb_child_remove(Ewl_Container *c, Ewl_Widget *w)
-{
- DENTER_FUNCTION(DLEVEL_STABLE);
- DCHECK_PARAM_PTR("c", c);
- DCHECK_PARAM_PTR("w", w);
- DCHECK_TYPE("c", c, "container");
- DCHECK_TYPE("w", w, "widget");
-
-printf("CHILD REMOVE\n");
-
- DLEAVE_FUNCTION(DLEVEL_STABLE);
-}
-
-void
-ewl_freebox_cb_child_resize(Ewl_Container *c, Ewl_Widget *w,
- int size __UNUSED__,
- Ewl_Orientation o __UNUSED__)
-{
- DENTER_FUNCTION(DLEVEL_STABLE);
- DCHECK_PARAM_PTR("c", c);
- DCHECK_PARAM_PTR("w", w);
- DCHECK_TYPE("c", c, "container");
- DCHECK_TYPE("w", w, "widget");
-
-printf("CHILD RESIZE\n");
DLEAVE_FUNCTION(DLEVEL_STABLE);
}
@@ -259,30 +220,19 @@
void
ewl_freebox_cb_child_show(Ewl_Container *c, Ewl_Widget *w)
{
- DENTER_FUNCTION(DLEVEL_STABLE);
- DCHECK_PARAM_PTR("c", c);
- DCHECK_PARAM_PTR("w", w);
- DCHECK_TYPE("c", c, "container");
- DCHECK_TYPE("w", w, "widget");
-
-printf("CHILD SHOW\n");
-
- DLEAVE_FUNCTION(DLEVEL_STABLE);
-}
+ Ewl_Freebox *fb;
-void
-ewl_freebox_cb_child_hide(Ewl_Container *c, Ewl_Widget *w)
-{
DENTER_FUNCTION(DLEVEL_STABLE);
DCHECK_PARAM_PTR("c", c);
DCHECK_PARAM_PTR("w", w);
DCHECK_TYPE("c", c, "container");
DCHECK_TYPE("w", w, "widget");
-printf("CHILD HIDE\n");
+ fb = EWL_FREEBOX(c);
+ fb->sorted = FALSE;
DLEAVE_FUNCTION(DLEVEL_STABLE);
-}
+}
/* This will run through the list of child widgets and lay them out in rows
* based on their size. */
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_freebox.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ewl_freebox.h 31 Dec 2005 06:03:36 -0000 1.1
+++ ewl_freebox.h 31 Dec 2005 06:23:30 -0000 1.2
@@ -40,11 +40,7 @@
void ewl_freebox_cb_configure(Ewl_Widget *w, void *ev, void *data);
void ewl_freebox_cb_child_add(Ewl_Container *c, Ewl_Widget *w);
-void ewl_freebox_cb_child_remove(Ewl_Container *c, Ewl_Widget *w);
-void ewl_freebox_cb_child_resize(Ewl_Container *c, Ewl_Widget *w,
- int size, Ewl_Orientation o);
void ewl_freebox_cb_child_show(Ewl_Container *c, Ewl_Widget *w);
-void ewl_freebox_cb_child_hide(Ewl_Container *c, Ewl_Widget *w);
#endif
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs