gtk_widget_activate and menu's



I want to be able to use gtk_widget_activate() or anythings simialar, to open a menu on the menu bar by just using GTK functions.

if in my code i have
--------------------------------------------------------------
GtkWidget *menu, *menu_item;

menu = gtk_menu_new();
menu_item = gtk_menu_item_new_with_label("FILE");
gtk_menu_item_set_submenu(GTK_MENU_ITEM(menu_item), menu);
gtk_menu_bar_append(GTK_MENU_BAR(menubar), menuitem);
gtk_widget_show(menu_item);;
-----------------------------------------------------------

i tried using this;
gtk_widget_activate(menu_item);

and it returns a true.. but the menu doesn't pop up.

Am i doing something wrong?

Thanks
Andrew

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]