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
This commit is contained in:
Nick Treleaven 2008-01-10 13:27:26 +00:00
parent 1d1cd90028
commit afe981214a
2 changed files with 9 additions and 9 deletions

View File

@ -1,3 +1,9 @@
2008-01-10 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/keybindings.c:
Hopefully fix bug with Cut/Copy/Paste KB not working (#1867861).
2008-01-09 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/project.c:

View File

@ -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));
}
}