From 10398566eb46ae7b76844c77501461ce1945755e Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 26 Jan 2009 16:54:56 -0500 Subject: Menu label text is irrelevant for PM menu actions due to l10n; focus on menu_id. --- src/textadept.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/textadept.c') diff --git a/src/textadept.c b/src/textadept.c index 2ab4091c..b85dcabb 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -774,13 +774,11 @@ void pm_popup_context_menu(GdkEventButton *event) { * @see l_pm_perform_menu_action */ void pm_process_selected_menu_item(GtkWidget *menu_item, int menu_id) { - GtkWidget *label = gtk_bin_get_child(GTK_BIN(menu_item)); - const char *text = gtk_label_get_text(GTK_LABEL(label)); GtkTreePath *path; GtkTreeViewColumn *column; gtk_tree_view_get_cursor(GTK_TREE_VIEW(pm_view), &path, &column); l_pm_get_full_path(path); - l_pm_perform_menu_action(text, menu_id); + l_pm_perform_menu_action(menu_id); } /** -- cgit v1.2.3