Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2004:
[Freeciv-Dev] (PR#10821) Argh! keyboard in new Interface
Home

[Freeciv-Dev] (PR#10821) Argh! keyboard in new Interface

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: mstefek@xxxxxxxxx
Subject: [Freeciv-Dev] (PR#10821) Argh! keyboard in new Interface
From: "Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx>
Date: Mon, 1 Nov 2004 11:02:41 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=10821 >

> [mstefek - Mon Nov 01 11:43:06 2004]:
> 
> 1) If the science report is open and I press [m] in chatline the
> diplomacy dialog popups.
> 2) Enter/return for turn done doesn't work

This patch removes accelerators for the players dialog, which should fix
this issue.

Index: client/gui-gtk-2.0/plrdlg.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk-2.0/plrdlg.c,v
retrieving revision 1.40
diff -u -r1.40 plrdlg.c
--- client/gui-gtk-2.0/plrdlg.c 31 Oct 2004 20:45:55 -0000      1.40
+++ client/gui-gtk-2.0/plrdlg.c 1 Nov 2004 18:59:50 -0000
@@ -253,7 +253,6 @@
 void create_players_dialog(void)
 {
   int i;
-  GtkAccelGroup *accel = gtk_accel_group_new();
   GtkWidget *sep, *sw;
   GtkWidget *menubar, *menu, *item;
 
@@ -352,7 +351,6 @@
 
   menu = gtk_menu_new();
   gtk_menu_item_set_submenu(GTK_MENU_ITEM(item), menu);
-  gtk_menu_set_accel_group(GTK_MENU(menu), accel);
 
   players_int_command = gtk_menu_item_new_with_mnemonic(_("_Intelligence"));
   gtk_widget_set_sensitive(players_int_command, FALSE);
@@ -385,19 +383,6 @@
   gtk_menu_item_set_submenu(GTK_MENU_ITEM(item), menu);
   gtk_menu_shell_append(GTK_MENU_SHELL(menubar), item);
 
-  gtk_widget_add_accelerator(players_int_command,
-    "activate", accel, GDK_I, 0, GTK_ACCEL_VISIBLE);
-  gtk_widget_add_accelerator(players_meet_command,
-    "activate", accel, GDK_M, 0, GTK_ACCEL_VISIBLE);
-  gtk_widget_add_accelerator(players_war_command,
-    "activate", accel, GDK_C, 0, GTK_ACCEL_VISIBLE);
-  gtk_widget_add_accelerator(players_vision_command,
-    "activate", accel, GDK_W, 0, GTK_ACCEL_VISIBLE);
-  gtk_widget_add_accelerator(players_sship_command,
-    "activate", accel, GDK_S, 0, GTK_ACCEL_VISIBLE);
-
-  gtk_window_add_accel_group(
-      GTK_WINDOW(gui_dialog_get_toplevel(players_dialog_shell)), accel);
   gui_dialog_show_all(players_dialog_shell);
 
   g_signal_connect(players_meet_command, "activate",

[Prev in Thread] Current Thread [Next in Thread]