1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00

Fix the accelerator keys (i.e. Ctl+Q, Ctl+I, etc.). This bug has been

filed with the GAIM authors as bug #717883:

https://sourceforge.net/tracker/?func=detail&atid=300235&aid=717883&group_id=235

Reported by:	Kenneth W Cochran <kwc@TheWorld.com>
This commit is contained in:
Joe Marcus Clarke 2003-04-09 02:02:10 +00:00
parent 0530dc76b7
commit a04ee26651
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=78641
4 changed files with 46 additions and 2 deletions

View File

@ -6,7 +6,7 @@
PORTNAME= gaim
PORTVERSION= 0.60
PORTREVISION?= 1
PORTREVISION?= 2
CATEGORIES?= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

View File

@ -0,0 +1,22 @@
--- src/buddy.c.orig Tue Apr 8 19:09:42 2003
+++ src/buddy.c Tue Apr 8 19:09:47 2003
@@ -1132,6 +1132,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}};
@@ -1156,7 +1157,10 @@
gtk_widget_add_events(gtkblist->window, GDK_VISIBILITY_NOTIFY_MASK);
/******************************* Menu bar *************************************/
- ift = gtk_item_factory_new(GTK_TYPE_MENU_BAR, "<GaimMain>", 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, "<GaimMain>", accel_group);
gtk_item_factory_set_translate_func (ift,
item_factory_translate_func,
NULL, NULL);

View File

@ -6,7 +6,7 @@
PORTNAME= gaim
PORTVERSION= 0.60
PORTREVISION?= 1
PORTREVISION?= 2
CATEGORIES?= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

View File

@ -0,0 +1,22 @@
--- src/buddy.c.orig Tue Apr 8 19:09:42 2003
+++ src/buddy.c Tue Apr 8 19:09:47 2003
@@ -1132,6 +1132,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}};
@@ -1156,7 +1157,10 @@
gtk_widget_add_events(gtkblist->window, GDK_VISIBILITY_NOTIFY_MASK);
/******************************* Menu bar *************************************/
- ift = gtk_item_factory_new(GTK_TYPE_MENU_BAR, "<GaimMain>", 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, "<GaimMain>", accel_group);
gtk_item_factory_set_translate_func (ift,
item_factory_translate_func,
NULL, NULL);