diff options
author | marcus <marcus@FreeBSD.org> | 2003-04-09 10:02:10 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2003-04-09 10:02:10 +0800 |
commit | 022f3e4f22a890b0bf9a1ab0500410027478076c (patch) | |
tree | 2f94fafa866aecdcad491e3154de643d75a9b962 | |
parent | 8688182d7d83b0173bb4e6e954bfcb19424e6696 (diff) | |
download | freebsd-ports-gnome-022f3e4f22a890b0bf9a1ab0500410027478076c.tar.gz freebsd-ports-gnome-022f3e4f22a890b0bf9a1ab0500410027478076c.tar.zst freebsd-ports-gnome-022f3e4f22a890b0bf9a1ab0500410027478076c.zip |
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>
-rw-r--r-- | net-im/gaim/Makefile | 2 | ||||
-rw-r--r-- | net-im/gaim/files/patch-src_buddy.c | 22 | ||||
-rw-r--r-- | net/gaim/Makefile | 2 | ||||
-rw-r--r-- | net/gaim/files/patch-src_buddy.c | 22 |
4 files changed, 46 insertions, 2 deletions
diff --git a/net-im/gaim/Makefile b/net-im/gaim/Makefile index ca79b5521af3..ccf6ae3b3b6b 100644 --- a/net-im/gaim/Makefile +++ b/net-im/gaim/Makefile @@ -6,7 +6,7 @@ PORTNAME= gaim PORTVERSION= 0.60 -PORTREVISION?= 1 +PORTREVISION?= 2 CATEGORIES?= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/net-im/gaim/files/patch-src_buddy.c b/net-im/gaim/files/patch-src_buddy.c new file mode 100644 index 000000000000..82244ecaf7c4 --- /dev/null +++ b/net-im/gaim/files/patch-src_buddy.c @@ -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); diff --git a/net/gaim/Makefile b/net/gaim/Makefile index ca79b5521af3..ccf6ae3b3b6b 100644 --- a/net/gaim/Makefile +++ b/net/gaim/Makefile @@ -6,7 +6,7 @@ PORTNAME= gaim PORTVERSION= 0.60 -PORTREVISION?= 1 +PORTREVISION?= 2 CATEGORIES?= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/net/gaim/files/patch-src_buddy.c b/net/gaim/files/patch-src_buddy.c new file mode 100644 index 000000000000..82244ecaf7c4 --- /dev/null +++ b/net/gaim/files/patch-src_buddy.c @@ -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); |