From 5c2b9546d6627010baa638a25f9887efc6482308 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Thu, 11 Mar 2004 21:38:21 +0000 Subject: Fix attach/attach->parent type. (#136919, Tim Mooney) Thu Mar 11 16:28:15 2004 Owen Taylor * gtk/gtkmenu.c (gtk_menu_get_toplevel): Fix attach/attach->parent type. (#136919, Tim Mooney) --- gtk/gtkmenu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk/gtkmenu.c') 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; } -- cgit v1.2.1