summaryrefslogtreecommitdiff
path: root/gtk/gtkhandlebox.c
diff options
context:
space:
mode:
authorTim Janik <timj@gimp.org>1998-03-12 21:54:39 +0000
committerTim Janik <timj@src.gnome.org>1998-03-12 21:54:39 +0000
commit96a74359119261e05cb56d00a9d21cf753aba53f (patch)
treea5cbdc3ab7ef8bdd7dc769422ba854a985325d6a /gtk/gtkhandlebox.c
parent7c698ad46cf7362d8c50dbd4a2f4280ce99e0f66 (diff)
downloadgdk-pixbuf-96a74359119261e05cb56d00a9d21cf753aba53f.tar.gz
return TRUE for GtkWidget::delete_event to avoid destruction of our float
Thu Mar 12 20:17:47 1998 Tim Janik <timj@gimp.org> * gtk/gtkhandlebox.c (gtk_handle_box_delete_float): return TRUE for GtkWidget::delete_event to avoid destruction of our float window. * gtk/gtkmain.c (gtk_main_iteration_do): GDK_DELETE will destroy a widget if the last handler returned FALSE or there was none connected. * gtk/testgtk.c: adapted all delete_event/destroy case that were affected. * gtk/gtkwidget.c (gtk_widget_delete_hides): new function that will hide a widget and return TRUE to avoid window deletion if connected to GtkWIdget::delete_event.
Diffstat (limited to 'gtk/gtkhandlebox.c')
-rw-r--r--gtk/gtkhandlebox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkhandlebox.c b/gtk/gtkhandlebox.c
index ab4f8c292..1acbe7686 100644
--- a/gtk/gtkhandlebox.c
+++ b/gtk/gtkhandlebox.c
@@ -716,5 +716,5 @@ gtk_handle_box_delete_float (GtkWidget *widget,
gtk_widget_queue_resize (GTK_WIDGET (hb));
- return FALSE;
+ return TRUE;
}