Search
lxdream.org :: lxdream :: r616:527ab167712b
lxdream 0.9.1
released Jun 29
Download Now
changeset616:527ab167712b
parent615:38b69ec2f4c8
child617:476a717a54f3
authornkeynes
dateTue Jan 29 10:38:34 2008 +0000 (11 years ago)
Tweak key text box size to fit joystick buttons
src/gtkui/ctrl_dlg.c
1.1 --- a/src/gtkui/ctrl_dlg.c Mon Jan 28 11:17:15 2008 +0000
1.2 +++ b/src/gtkui/ctrl_dlg.c Tue Jan 29 10:38:34 2008 +0000
1.3 @@ -154,7 +154,7 @@
1.4 gtk_table_attach( GTK_TABLE(table), gtk_label_new(conf[i].key), x, x+1, y, y+1,
1.5 GTK_SHRINK, GTK_SHRINK, 0, 0 );
1.6 text = gtk_entry_new();
1.7 - gtk_entry_set_width_chars( GTK_ENTRY(text), 8 );
1.8 + gtk_entry_set_width_chars( GTK_ENTRY(text), 11 );
1.9 gtk_entry_set_editable( GTK_ENTRY(text), FALSE );
1.10 g_signal_connect( text, "key_press_event",
1.11 G_CALLBACK(config_key_keypress), NULL );
1.12 @@ -166,7 +166,7 @@
1.13 gtk_table_attach_defaults( GTK_TABLE(table), text, x+1, x+2, y, y+1);
1.14 focus_chain = g_list_append( focus_chain, text );
1.15 text2 = gtk_entry_new();
1.16 - gtk_entry_set_width_chars( GTK_ENTRY(text2), 8 );
1.17 + gtk_entry_set_width_chars( GTK_ENTRY(text2), 11 );
1.18 gtk_entry_set_editable( GTK_ENTRY(text2), FALSE );
1.19 g_signal_connect( text2, "key_press_event",
1.20 G_CALLBACK(config_key_keypress), NULL );
.