Re: Menu destruction
- From: Tim Janik <timj imendio com>
- To: Johannes Schmid <johannes schmid gmx de>
- Cc: Gtk+ Developers <gtk-devel-list gnome org>, pjdavis engineering uiowa edu, Murray Cumming <murrayc murrayc com>
- Subject: Re: Menu destruction
- Date: Thu, 12 Apr 2007 13:52:57 +0200 (CEST)
On Thu, 12 Apr 2007, Johannes Schmid wrote:
Hi!
Thanks for your help. Well, I think I found what the main difference is:
gtk_container_add() sets widget->parent while
gtk_menu_attach_to_widget() does not. As we check for widget->parent in
the special case for GtkContainer we don't catch the menu case there. As
there might be reasons why parent is not set by
gtk_menu_attach_to_widget I will simply add another special case.
the reason is that the because of the gtk architecture, the submenu
needs a GtkWindow as parent in order to be shown in it's own toplevel
POPUP window.
Thanks,
Johannes
---
ciaoTJ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]