summaryrefslogtreecommitdiff
path: root/gtk/gtkmenu.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2004-03-11 21:38:21 +0000
committerOwen Taylor <otaylor@src.gnome.org>2004-03-11 21:38:21 +0000
commit5c2b9546d6627010baa638a25f9887efc6482308 (patch)
tree9467f7af41f6e949440e8baa72eb4713773daf2b /gtk/gtkmenu.c
parent865d3dd267e70847b2e68ae85ad9533025d6b3a7 (diff)
downloadgtk+-5c2b9546d6627010baa638a25f9887efc6482308.tar.gz
Fix attach/attach->parent type. (#136919, Tim Mooney)
Thu Mar 11 16:28:15 2004 Owen Taylor <otaylor@redhat.com> * gtk/gtkmenu.c (gtk_menu_get_toplevel): Fix attach/attach->parent type. (#136919, Tim Mooney)
Diffstat (limited to 'gtk/gtkmenu.c')
-rw-r--r--gtk/gtkmenu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c
index fa59b852d6..7cbaa6a594 100644
--- a/gtk/gtkmenu.c
+++ b/gtk/gtkmenu.c
@@ -1659,10 +1659,10 @@ gtk_menu_get_toplevel (GtkWidget *menu)
attach = attach->parent;
if (GTK_IS_MENU (attach))
- return gtk_menu_get_toplevel (attach->parent);
+ return gtk_menu_get_toplevel (attach);
else if (GTK_IS_WIDGET (attach))
{
- toplevel = gtk_widget_get_toplevel (attach->parent);
+ toplevel = gtk_widget_get_toplevel (attach);
if (GTK_WIDGET_TOPLEVEL (toplevel))
return toplevel;
}