diff options
Diffstat (limited to 'widgets/misc')
-rw-r--r-- | widgets/misc/ChangeLog | 7 | ||||
-rw-r--r-- | widgets/misc/e-dateedit.c | 25 |
2 files changed, 7 insertions, 25 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog index 973569fb2a..75d7d5c123 100644 --- a/widgets/misc/ChangeLog +++ b/widgets/misc/ChangeLog @@ -1,3 +1,10 @@ +2003-04-29 Dan Winship <danw@ximian.com> + + * e-dateedit.c (e_date_edit_forall): Remove this so that + GtkContainer's destroy method will destroy all of the internal + widgets. (This is how other compound-widgets-that-aren't- + meant-to-be-used-as-containers behave.) #41458 + 2003-04-16 Ettore Perazzoli <ettore@ximian.com> * e-search-bar.c (remove_bonobo_menus): Only do the actual remove diff --git a/widgets/misc/e-dateedit.c b/widgets/misc/e-dateedit.c index a812c9d332..a7e265eff0 100644 --- a/widgets/misc/e-dateedit.c +++ b/widgets/misc/e-dateedit.c @@ -138,10 +138,6 @@ static void e_date_edit_init (EDateEdit *dedit); static void create_children (EDateEdit *dedit); static void e_date_edit_dispose (GObject *object); static void e_date_edit_grab_focus (GtkWidget *widget); -static void e_date_edit_forall (GtkContainer *container, - gboolean include_internals, - GtkCallback callback, - gpointer callback_data); static gint on_date_entry_key_press (GtkWidget *widget, GdkEventKey *event, @@ -241,7 +237,6 @@ e_date_edit_class_init (EDateEditClass *class) { GObjectClass *object_class = (GObjectClass *) class; GtkWidgetClass *widget_class = (GtkWidgetClass *) class; - GtkContainerClass *container_class = (GtkContainerClass *) class; parent_class = g_type_class_ref (GTK_TYPE_HBOX); @@ -258,8 +253,6 @@ e_date_edit_class_init (EDateEditClass *class) widget_class->grab_focus = e_date_edit_grab_focus; - container_class->forall = e_date_edit_forall; - class->changed = NULL; } @@ -518,24 +511,6 @@ e_date_edit_set_editable (EDateEdit *dedit, gboolean editable) gtk_widget_set_sensitive (priv->date_button, editable); } -static void -e_date_edit_forall (GtkContainer *container, - gboolean include_internals, - GtkCallback callback, - gpointer callback_data) -{ - g_return_if_fail (E_IS_DATE_EDIT (container)); - g_return_if_fail (callback != NULL); - - /* Let GtkBox handle the internal widgets if needed. */ - if (include_internals) { - if (GTK_CONTAINER_CLASS (parent_class)->forall) - (* GTK_CONTAINER_CLASS (parent_class)->forall) - (container, include_internals, - callback, callback_data); - } -} - /** * e_date_edit_get_time: |