Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2004:
[Freeciv-Dev] (PR#10616) Chatline doesn't work!!!
Home

[Freeciv-Dev] (PR#10616) Chatline doesn't work!!!

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: mstefek@xxxxxxxxx
Subject: [Freeciv-Dev] (PR#10616) Chatline doesn't work!!!
From: "Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx>
Date: Tue, 19 Oct 2004 10:05:13 -0700
Reply-to: rt@xxxxxxxxxxx

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

This patch reverts this particular piece of code.

Index: client/gui-gtk-2.0/gui_main.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk-2.0/gui_main.c,v
retrieving revision 1.84
diff -u -r1.84 gui_main.c
--- client/gui-gtk-2.0/gui_main.c       19 Oct 2004 00:06:40 -0000      1.84
+++ client/gui-gtk-2.0/gui_main.c       19 Oct 2004 17:04:25 -0000
@@ -217,17 +217,13 @@
 /**************************************************************************
  handles main window keyboard events.
 **************************************************************************/
-static void set_menu_accelerators(bool enable)
-{
-  gtk_widget_set_sensitive(main_menubar, enable);
-}
-
-/**************************************************************************
-...
-**************************************************************************/
 static gboolean inputline_focus(GtkWidget *w, GdkEventFocus *ev, gpointer data)
 {
-  set_menu_accelerators(GPOINTER_TO_INT(data) == 0);
+  if (GPOINTER_TO_INT(data) != 0) {
+    gtk_window_remove_accel_group(GTK_WINDOW(toplevel), toplevel_accel);
+  } else {
+    gtk_window_add_accel_group(GTK_WINDOW(toplevel), toplevel_accel);
+  }
   return FALSE;
 }
 

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