aboutsummaryrefslogtreecommitdiff
path: root/src/textadept.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/textadept.c')
-rw-r--r--src/textadept.c4
1 files changed, 1 insertions, 3 deletions
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);
}
/**