[prev in list] [next in list] [prev in thread] [next in thread]
List: gtk-app-devel
Subject: Re: GtkMenuItem callback problem
From: Havoc Pennington <rhp () zirx ! pair ! com>
Date: 1999-03-02 20:16:58
[Download RAW message or body]
On Tue, 2 Mar 1999, Robert Hawkins wrote:
>
> However selecting the "close window" menu item just seems to disable the
> menu, and doesn't destroy the window. I verified that the class path of
> "widget" is GtkWindow.GtkMenu.GtkMenuItem and that "window" really is a
> window (see the code above). However for some reason it is not the same
> as the window originally created. I am not sure what I am doing wrong.
> Is it incorrect to try to find the top level window from a menu item in
> this way? If I pass the window as the data pointer I can close it
> successfully. However I would rather make use of the widget parameter of
> the callback if possible.
>
The menu item's toplevel window is the popup menu window, not hte main
application window.
I would suggest using gtk_object_set_data() and gtk_object_get_data() to
solve this problem.
Havoc
--
To unsubscribe: mail gtk-app-devel-list-request@redhat.com with
"unsubscribe" as the Subject.
Mailing list concerns should be mailed to <listmaster@redhat.com>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic