[gcompris/gcomprixogoo] Put initial focus on the activation code on Windows.
- From: Bruno Coudoin <bcoudoin src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gcompris/gcomprixogoo] Put initial focus on the activation code on Windows.
- Date: Sat, 13 Feb 2010 13:39:07 +0000 (UTC)
commit 221259d5c85a13943bf12fbd7eb3160a26d0d9f4
Author: Bruno Coudoin <bruno coudoin free fr>
Date: Sat Feb 13 14:38:34 2010 +0100
Put initial focus on the activation code on Windows.
src/gcompris/gcompris.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gcompris/gcompris.c b/src/gcompris/gcompris.c
index ff7169d..f84c719 100644
--- a/src/gcompris/gcompris.c
+++ b/src/gcompris/gcompris.c
@@ -911,9 +911,6 @@ display_activation_dialog()
GTK_SIGNAL_FUNC(activation_enter_callback),
NULL);
- gtk_widget_show(GTK_WIDGET(widget_activation_entry));
- gtk_entry_set_text(GTK_ENTRY(widget_activation_entry), "CODE");
-
char *msg = g_strdup_printf( \
_("GCompris is free software released under the GPL License. "
"In order to support its development, the Windows version "
@@ -927,6 +924,9 @@ display_activation_dialog()
gc_dialog(msg, activation_done);
g_free(msg);
+ gtk_widget_show(GTK_WIDGET(widget_activation_entry));
+ gtk_entry_set_text(GTK_ENTRY(widget_activation_entry), "CODE");
+ gtk_widget_grab_focus(GTK_WIDGET(widget_activation_entry));
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]