Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src
Modified Files:
ewl_checkbutton.c ewl_checkbutton.h
Log Message:
- cleanup the checkbutton on destroy
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_checkbutton.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -3 -r1.43 -r1.44
--- ewl_checkbutton.c 18 Aug 2004 04:41:59 -0000 1.43
+++ ewl_checkbutton.c 9 Dec 2004 01:55:44 -0000 1.44
@@ -45,7 +45,9 @@
ewl_object_fill_policy_set(EWL_OBJECT(w), EWL_FLAG_FILL_NONE);
ewl_callback_append(w, EWL_CALLBACK_CLICKED,
- ewl_checkbutton_clicked_cb, NULL);
+ ewl_checkbutton_clicked_cb, NULL);
+ ewl_callback_append(w, EWL_CALLBACK_DESTROY,
+ ewl_checkbutton_destroy_cb, NULL);
cb->label_position = EWL_POSITION_RIGHT;
@@ -124,3 +126,15 @@
DLEAVE_FUNCTION(DLEVEL_STABLE);
}
+
+void
+ewl_checkbutton_destroy_cb(Ewl_Widget * w, void *ev_data, void *user_data)
+{
+ Ewl_CheckButton *ck;
+
+ ck = EWL_CHECKBUTTON(w);
+ if (ck->check)
+ ewl_widget_destroy(ck->check);
+}
+
+
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_checkbutton.h,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -3 -r1.21 -r1.22
--- ewl_checkbutton.h 26 Nov 2004 02:53:20 -0000 1.21
+++ ewl_checkbutton.h 9 Dec 2004 01:55:44 -0000 1.22
@@ -65,7 +65,7 @@
void ewl_checkbutton_clicked_cb(Ewl_Widget * w, void *ev_data,
void *user_data);
-void ewl_check_clicked_cb(Ewl_Widget * w, void *ev_data,
+void ewl_checkbutton_destroy_cb(Ewl_Widget * w, void *ev_data,
void *user_data);
/**
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs