# HG changeset patch # User Luke Schierer # Date 1049930927 0 # Node ID 29b80bc21ba7d3ae16fb60658d2b1ede2799f70f # Parent 73e3f3c78d12a9303882772e7c8b644f59a21634 [gaim-migrate @ 5451] Joe Clarke (jmarcus) writes: "The accelerator keys (e.g. ctl+q, ctl+i, etc.) do not work in GAIM 0.60. I think that's because there is no accelerator group attached to the main GAIM window. The attached patch corrects the problem." committer: Tailor Script diff -r 73e3f3c78d12 -r 29b80bc21ba7 ChangeLog --- a/ChangeLog Wed Apr 09 05:59:13 2003 +0000 +++ b/ChangeLog Wed Apr 09 23:28:47 2003 +0000 @@ -1,5 +1,9 @@ Gaim: The Pimpin' Penguin IM Clone that's good for the soul! +version 0.62 + * Keyboard shortcuts in the buddy list work again (Thanks Joe + Clarke). + version 0.61 (04/07/2003): * Split the buddy pounce core and UI, and rewrote the UI for it. * Removed folder icons and excess space from the buddy list (Thanks diff -r 73e3f3c78d12 -r 29b80bc21ba7 src/buddy.c --- a/src/buddy.c Wed Apr 09 05:59:13 2003 +0000 +++ b/src/buddy.c Wed Apr 09 23:28:47 2003 +0000 @@ -1112,6 +1112,7 @@ GtkWidget *sw; GtkWidget *button; GtkSizeGroup *sg; + GtkAccelGroup *accel_group; GtkTreeSelection *selection; GtkTargetEntry gte[] = {{"GAIM_BLIST_NODE", GTK_TARGET_SAME_APP, DRAG_ROW}, {"application/x-im-contact", 0, DRAG_BUDDY}}; @@ -1136,7 +1137,10 @@ gtk_widget_add_events(gtkblist->window, GDK_VISIBILITY_NOTIFY_MASK); /******************************* Menu bar *************************************/ - ift = gtk_item_factory_new(GTK_TYPE_MENU_BAR, "", NULL); + accel_group = gtk_accel_group_new(); + gtk_window_add_accel_group(GTK_WINDOW (gtkblist->window), accel_group); + g_object_unref(accel_group); + ift = gtk_item_factory_new(GTK_TYPE_MENU_BAR, "", accel_group); gtk_item_factory_set_translate_func (ift, item_factory_translate_func, NULL, NULL);