From afe981214a93ec3cd81f072994d82aff79b8cea2 Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Thu, 10 Jan 2008 13:27:26 +0000 Subject: [PATCH] Hopefully fix bug with Cut/Copy/Paste KB not working (#1867861). git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2156 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- ChangeLog | 6 ++++++ src/keybindings.c | 12 +++--------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 06d5f88e..03070ad3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-01-10 Nick Treleaven + + * src/keybindings.c: + Hopefully fix bug with Cut/Copy/Paste KB not working (#1867861). + + 2008-01-09 Nick Treleaven * src/project.c: diff --git a/src/keybindings.c b/src/keybindings.c index 708c0159..9ca7f8b8 100644 --- a/src/keybindings.c +++ b/src/keybindings.c @@ -1141,24 +1141,18 @@ static void goto_matching_brace(gint idx) static void cb_func_clipboard(guint key_id) { - GtkWidget *item = NULL; - switch (key_id) { case GEANY_KEYS_MENU_CUT: - item = lookup_widget(app->window, "menu_cut1"); + on_cut1_activate(NULL, NULL); break; case GEANY_KEYS_MENU_COPY: - item = lookup_widget(app->window, "menu_copy1"); + on_copy1_activate(NULL, NULL); break; case GEANY_KEYS_MENU_PASTE: - item = lookup_widget(app->window, "menu_paste1"); + on_paste1_activate(NULL, NULL); break; } - if (item && GTK_WIDGET_IS_SENSITIVE(item)) - { - gtk_menu_item_activate(GTK_MENU_ITEM(item)); - } }