mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
gtk: update constants
This commit is contained in:
parent
799e89fdc1
commit
2ade75158b
2 changed files with 9 additions and 10 deletions
|
@ -97,9 +97,8 @@ gtkaskdict( GSList* dicts, gchar* buf, gint buflen )
|
|||
GtkWidget* button = gtk_button_new_with_label( "Ok" );
|
||||
g_signal_connect( GTK_OBJECT(button), "clicked",
|
||||
G_CALLBACK(on_clicked), NULL );
|
||||
gtk_box_pack_start( GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(dialog))), button,
|
||||
FALSE, TRUE, 0 );
|
||||
// gtk_widget_show( button );
|
||||
gtk_box_pack_start( GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(dialog))),
|
||||
button, FALSE, TRUE, 0 );
|
||||
|
||||
gtk_widget_show_all( dialog );
|
||||
gtk_main();
|
||||
|
|
|
@ -205,31 +205,31 @@ evtToXPKey( GdkEventKey* event, XP_Bool* movesCursorP )
|
|||
|
||||
switch( keyval ) {
|
||||
#ifdef KEYBOARD_NAV
|
||||
case GDK_Return:
|
||||
case GDK_KEY_Return:
|
||||
xpkey = XP_RETURN_KEY;
|
||||
break;
|
||||
case GDK_space:
|
||||
case GDK_KEY_space:
|
||||
xpkey = XP_RAISEFOCUS_KEY;
|
||||
break;
|
||||
|
||||
case GDK_Left:
|
||||
case GDK_KEY_Left:
|
||||
xpkey = XP_CURSOR_KEY_LEFT;
|
||||
movesCursor = XP_TRUE;
|
||||
break;
|
||||
case GDK_Right:
|
||||
case GDK_KEY_Right:
|
||||
xpkey = XP_CURSOR_KEY_RIGHT;
|
||||
movesCursor = XP_TRUE;
|
||||
break;
|
||||
case GDK_Up:
|
||||
case GDK_KEY_Up:
|
||||
xpkey = XP_CURSOR_KEY_UP;
|
||||
movesCursor = XP_TRUE;
|
||||
break;
|
||||
case GDK_Down:
|
||||
case GDK_KEY_Down:
|
||||
xpkey = XP_CURSOR_KEY_DOWN;
|
||||
movesCursor = XP_TRUE;
|
||||
break;
|
||||
#endif
|
||||
case GDK_BackSpace:
|
||||
case GDK_KEY_BackSpace:
|
||||
XP_LOGF( "... it's a DEL" );
|
||||
xpkey = XP_CURSOR_KEY_DEL;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue