GTK menus on menu-bar need 2 clicks?



I have implemented a menu-tree using GTK and it works mostly OK. 

One problem I have: 

Top-level menu items on the menu bar (i.e. without sub-menus): they work,
but they need two mouse clicks to activate, whereas menu items at deeper
levels work normally, with one mouse click. 

Is this a bug, my mis-use of the design intention, or what?

thanks,
Mike

#define add_menu_bar_item(barname,itemname,labelname,functionname)         \
   GtkWidget * itemname =  gtk_menu_item_new_with_label(#labelname);       \
   gtk_menu_bar_append(GTK_MENU_BAR(barname), itemname);                   \
   g_signal_connect(G_OBJECT(itemname), "activate",
G_CALLBACK(functionname), (void *) #labelname);

--
View this message in context: http://www.nabble.com/GTK-menus-on-menu-bar-need-2-clicks--t1424796.html#a3841503
Sent from the Gtk+ - Dev - General forum at Nabble.com.




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