[Freeciv-Dev] (PR#6367) gtk2.0/ 1.14.1beta: the Enter key doesn't close
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=6367 >
The default focused widget of the city dialog is the close button with
this patch.
Index: client/gui-gtk-2.0/citydlg.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk-2.0/citydlg.c,v
retrieving revision 1.92
diff -u -r1.92 citydlg.c
--- client/gui-gtk-2.0/citydlg.c 18 Sep 2004 22:02:46 -0000 1.92
+++ client/gui-gtk-2.0/citydlg.c 18 Sep 2004 23:58:02 -0000
@@ -1225,6 +1225,8 @@
gtk_widget_show_all(GTK_DIALOG(pdialog->shell)->vbox);
gtk_widget_show_all(GTK_DIALOG(pdialog->shell)->action_area);
+ gtk_window_set_focus(GTK_WINDOW(pdialog->shell), close_command);
+
return pdialog;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#6367) gtk2.0/ 1.14.1beta: the Enter key doesn't close the city dialog,
Vasco Alexandre da Silva Costa <=
|
|