gtk_widget_activate and menu's
- From: "andew ecu" <andrewecu hotmail com>
- To: gtk-app-devel-list gnome org
- Subject: gtk_widget_activate and menu's
- Date: Wed, 23 May 2001 08:38:25 -0000
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]