Re: Management of Gnome menu
- From: frederic gedin free fr
- To: Jens Finke <pearl darkride net>
- Cc: Frédéric Gédin <frederic gedin free fr>, <gnome-devel-list gnome org>
- Subject: Re: Management of Gnome menu
- Date: Fri, 31 Mar 2000 14:54:47 +0200
Hi Jens
Unfortunately, I don't know how to get a reference to the menuitem widget once
the menu has been created using the UIINFO structures. With python, I just have
access to a tuple and I don't know how to extract a menutiem reference from this
tuple.
Thank you
Frédéric
Quoting Jens Finke <pearl@darkride.net>:
> "Frédéric Gédin" wrote:
> > I started to play developing a Gnome application using python.
> > I would like to know how it is possible to activate to deactivate
> menus of a
> > gnome application. I did not see anything on this in the
> documentation.
>
> Every gtk menuitem is especially a GtkWidget. So if you have a reference
> to a menu item you can write something like this (in C):
>
> GtkMenuItem *menu_item;
> ...
> gtk_widget_set_sensitive(GTK_WIDGET(menu_item), FALSE);
>
> But I think the python calls are similar. Hope this helps.
>
> Regards,
>
> Jens
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]