Hi, cc_insert_custom_command_items() attempts to assign a key to the first three "Send Selection to -> ..." commands even if no key is specified, resulting in:
"(geany-bin:17617): Gtk-CRITICAL **: IA__gtk_accel_group_connect: assertion `accel_key > 0' failed" git patch attached. -- E-gards: Jimmy
>From cd9f3fd4f5cec30e96f219b8f0032e99b39917e4 Mon Sep 17 00:00:00 2001 From: Dimitar Zhekov <dimitar.zhe...@gmail.com> Date: Tue, 24 Dec 2013 18:29:40 +0200 Subject: [PATCH] fix unexisting keys assigned to "Send selection to -> ..." --- src/tools.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/tools.c b/src/tools.c index e87cd34..5ac080d 100644 --- a/src/tools.c +++ b/src/tools.c @@ -732,8 +732,11 @@ static void cc_insert_custom_command_items(GtkMenu *me, const gchar *label, cons if (key_idx != -1) { kb = keybindings_lookup_item(GEANY_KEY_GROUP_FORMAT, key_idx); - gtk_widget_add_accelerator(item, "activate", gtk_accel_group_new(), - kb->key, kb->mods, GTK_ACCEL_VISIBLE); + if (kb->key > 0) + { + gtk_widget_add_accelerator(item, "activate", gtk_accel_group_new(), + kb->key, kb->mods, GTK_ACCEL_VISIBLE); + } } gtk_container_add(GTK_CONTAINER(me), item); gtk_widget_show(item); -- 1.8.5.1
_______________________________________________ Devel mailing list Devel@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/devel