Jean-Marie Aubry wrote:
> 
> Hi all,
> 
> Is it currently possible to use the options menus defined in glade? I
> can't see how to connect my handler to the `activate' signal. Actually,
> the widget properties editor just shows the button properties, not the
> ones for the menu.
> 
> Thank you for any help,
> 
> --
>     JiheM
> 

Salut,

No signals seem to be able to be connected to an item of an option_menu.
The sipler way is to do it by hand (bof).
The other way I see is not to connect a signal to a menu_item of an
option_menu
but when you need what is inside the option_menu, you could apply a
function like this :
        menu = gtk_option_menu_get_menu (option_menu); /*to get the menu */
        active_item = gtk_menu_get_active (menu); /*to retrieve the item that
has been selected */

This second way permits to keep the source code generated by Glade even
when using libglade;

Bonne journee

Pierre

+---------------------------------------------------------------------+
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the line "unsubscribe glade-devel" in the body of the message.

Reply via email to