tAccelerators now use Alt/Meta in some dialogs; try to avoid using GTK+2 with GLIB1 (or vice versa); workaround for different g_strsplit behaviour between GLIB1 and GLIB2. - vaccinewars - be a doctor and try to vaccinate the world
(HTM) git clone git://src.adamsgaard.dk/vaccinewars
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 661ccdece4da3b4e54c7e6df0945e147a535dce7
(DIR) parent d76e3b11ea424d4130bf5e934c50fad6b0dcdb6e
(HTM) Author: Ben Webb <ben@salilab.org>
Date: Mon, 25 Mar 2002 16:58:03 +0000
Accelerators now use Alt/Meta in some dialogs; try to avoid using GTK+2
with GLIB1 (or vice versa); workaround for different g_strsplit behaviour
between GLIB1 and GLIB2.
Diffstat:
M src/gui_client/newgamedia.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
(DIR) diff --git a/src/gui_client/newgamedia.c b/src/gui_client/newgamedia.c
t@@ -520,7 +520,7 @@ void NewGameDialog(Player *play)
button = gtk_button_new_with_label("");
/* Button to connect to a named dopewars server */
- SetAccelerator(button, _("_Connect"), button, "clicked", accel_group);
+ SetAccelerator(button, _("_Connect"), button, "clicked", accel_group, TRUE);
gtk_signal_connect(GTK_OBJECT(button), "clicked",
GTK_SIGNAL_FUNC(ConnectToServer), NULL);
gtk_box_pack_start(GTK_BOX(vbox2), button, FALSE, FALSE, 0);
t@@ -541,7 +541,7 @@ void NewGameDialog(Player *play)
/* Checkbox to activate 'antique mode' in single-player games */
SetAccelerator(stgam.antique, _("_Antique mode"), stgam.antique,
- "clicked", accel_group);
+ "clicked", accel_group, TRUE);
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(stgam.antique),
WantAntique);
gtk_box_pack_start(GTK_BOX(vbox2), stgam.antique, FALSE, FALSE, 0);
t@@ -549,7 +549,7 @@ void NewGameDialog(Player *play)
/* Button to start a new single-player (standalone, non-network) game */
SetAccelerator(button, _("_Start single-player game"), button,
- "clicked", accel_group);
+ "clicked", accel_group, TRUE);
gtk_signal_connect(GTK_OBJECT(button), "clicked",
GTK_SIGNAL_FUNC(StartSinglePlayer), NULL);
t@@ -579,13 +579,13 @@ void NewGameDialog(Player *play)
button = gtk_button_new_with_label("");
/* Button to update metaserver information */
- SetAccelerator(button, _("_Update"), button, "clicked", accel_group);
+ SetAccelerator(button, _("_Update"), button, "clicked", accel_group, TRUE);
gtk_signal_connect(GTK_OBJECT(button), "clicked",
GTK_SIGNAL_FUNC(UpdateMetaServerList), NULL);
gtk_box_pack_start(GTK_BOX(hbbox), button, TRUE, TRUE, 0);
button = gtk_button_new_with_label("");
- SetAccelerator(button, _("_Connect"), button, "clicked", accel_group);
+ SetAccelerator(button, _("_Connect"), button, "clicked", accel_group, TRUE);
gtk_signal_connect(GTK_OBJECT(button), "clicked",
GTK_SIGNAL_FUNC(MetaServerConnect), NULL);
gtk_box_pack_start(GTK_BOX(hbbox), button, TRUE, TRUE, 0);