summaryrefslogtreecommitdiff
path: root/gtk/gtkclist.c
diff options
context:
space:
mode:
authorOwen Taylor <owt1@cornell.edu>1998-03-18 21:11:04 +0000
committerOwen Taylor <otaylor@src.gnome.org>1998-03-18 21:11:04 +0000
commitf9739e834376121d8f766072499126e1cac2f332 (patch)
treedb18acfaf13950986d1f9098980326cfabfb1d5a /gtk/gtkclist.c
parent85d4cd0f43c29fcca9c38282d7fa169bf775409e (diff)
downloadgtk+-f9739e834376121d8f766072499126e1cac2f332.tar.gz
( From: James Henstridge <james@daa.com.au> )
Wed Mar 18 11:09:10 1998 Owen Taylor <owt1@cornell.edu> ( From: James Henstridge <james@daa.com.au> ) * gtk/gtkclist.c: Don't remove, then destroy labels in gtk_clist_set_column_[*], just remove them. * gtk/gtkmain.c (gtk_invoke_timeout_function): call marshal when appropriate, not function. Tue Mar 17 14:15:07 1998 Owen Taylor <owt1@cornell.edu> * gtk/testgtk.c (create_main_window): Alphabetize tests * gtk/gtk[hv]paned.c: Change division on resize if necessary to keep handle visible. * gtk/gtkgamma.c gtk/gtkcurve.c: Moved initialization into _init() functions. * gtk/gtkscrolledwindow.c: Added missing _construct() functions.
Diffstat (limited to 'gtk/gtkclist.c')
-rw-r--r--gtk/gtkclist.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/gtk/gtkclist.c b/gtk/gtkclist.c
index 1c5e4c3813..9392948b64 100644
--- a/gtk/gtkclist.c
+++ b/gtk/gtkclist.c
@@ -679,10 +679,7 @@ gtk_clist_set_column_title (GtkCList * clist,
/* remove and destroy the old widget */
old_widget = GTK_BUTTON (clist->column[column].button)->child;
if (old_widget)
- {
- gtk_container_remove (GTK_CONTAINER (clist->column[column].button), old_widget);
- gtk_widget_destroy (old_widget);
- }
+ gtk_container_remove (GTK_CONTAINER (clist->column[column].button), old_widget);
/* create new alignment based no column justification */
switch (clist->column[column].justification)
@@ -742,10 +739,7 @@ gtk_clist_set_column_widget (GtkCList * clist,
/* remove and destroy the old widget */
old_widget = GTK_BUTTON (clist->column[column].button)->child;
if (old_widget)
- {
- gtk_container_remove (GTK_CONTAINER (clist->column[column].button), old_widget);
- gtk_widget_destroy (old_widget);
- }
+ gtk_container_remove (GTK_CONTAINER (clist->column[column].button), old_widget);
/* add and show the widget */
if (widget)