Menu Item Labels



If a menu item is created in the following manner:


file_name_label = gtk_menu_item_new_with_label (menu_label);
gtk_menu_append (GTK_MENU (toolbar_alpha_submenus), file_name_label);
gtk_widget_show (file_name_label);
gtk_signal_connect_object (GTK_OBJECT (file_name_label), "button_press_event", GTK_SIGNAL_FUNC (edit_this_file), (gpointer) g_strdup (path));


is there a way to extract the menu's label text string (menu_label) when the "button_press_event" signal is emitted? In this case, menu_label is the name of a file and when the user clicks on that menu I'd like to retrieve the file the user clicked on to be able to do some processing with it.

Thanks.

--
Marco Quezada
Aerospaceo Engineero
NLX Corporation
22626 Sally Ride Dr.
Sterling, VA, 20164
mquezada nlxcorp com
703-234-2100 x1028
http://www.nlxcorp.com





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