[Freeciv-Dev] (PR#10616) Chatline doesn't work!!!
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<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;
}
|
|