summaryrefslogtreecommitdiff
path: root/gtk/gtkmain.c
diff options
context:
space:
mode:
authorTim Janik <timj@gimp.org>1998-02-03 14:13:05 +0000
committerTim Janik <timj@src.gnome.org>1998-02-03 14:13:05 +0000
commitb45cd0430c79f9426036ced2809427e0920dd855 (patch)
treed278a375e959b28d1f59e87cdffcfaa06dd11273 /gtk/gtkmain.c
parenta8629917ae91588cea02e0e8a20afc593a263cd7 (diff)
downloadgdk-pixbuf-b45cd0430c79f9426036ced2809427e0920dd855.tar.gz
attach/detach to menu widget via
Tue Feb 3 15:09:55 1998 Tim Janik <timj@gimp.org> * gtk/gtkoptionmenu.h: * gtk/gtkoptionmenu.c: attach/detach to menu widget via * gtk/gtkmenu.h: * gtk/gtkmenu.c: new functions gtk_menu_attach_to_widget and gtk_menu_detach that correspond to the action of gtk_widget_set_parent and gtk_widget_unparent. * gtk/widget.c: few fixups.
Diffstat (limited to 'gtk/gtkmain.c')
-rw-r--r--gtk/gtkmain.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index d932cb6c3..9e73d7732 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -1150,9 +1150,7 @@ gtk_propagate_event (GtkWidget *widget,
while (!handled_event && tmp)
{
gtk_widget_ref (tmp);
- handled_event = (GTK_OBJECT_DESTROYED (tmp) ||
- !GTK_WIDGET_IS_SENSITIVE (tmp) ||
- gtk_widget_event (tmp, event));
+ handled_event = !GTK_WIDGET_IS_SENSITIVE (tmp) || gtk_widget_event (tmp, event);
parent = tmp->parent;
gtk_widget_unref (tmp);
tmp = parent;