gtk: update constants

This commit is contained in:
Eric House 2016-08-03 08:20:05 -07:00
parent 799e89fdc1
commit 2ade75158b
2 changed files with 9 additions and 10 deletions

View file

@ -97,9 +97,8 @@ gtkaskdict( GSList* dicts, gchar* buf, gint buflen )
GtkWidget* button = gtk_button_new_with_label( "Ok" ); GtkWidget* button = gtk_button_new_with_label( "Ok" );
g_signal_connect( GTK_OBJECT(button), "clicked", g_signal_connect( GTK_OBJECT(button), "clicked",
G_CALLBACK(on_clicked), NULL ); G_CALLBACK(on_clicked), NULL );
gtk_box_pack_start( GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(dialog))), button, gtk_box_pack_start( GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(dialog))),
FALSE, TRUE, 0 ); button, FALSE, TRUE, 0 );
// gtk_widget_show( button );
gtk_widget_show_all( dialog ); gtk_widget_show_all( dialog );
gtk_main(); gtk_main();

View file

@ -205,31 +205,31 @@ evtToXPKey( GdkEventKey* event, XP_Bool* movesCursorP )
switch( keyval ) { switch( keyval ) {
#ifdef KEYBOARD_NAV #ifdef KEYBOARD_NAV
case GDK_Return: case GDK_KEY_Return:
xpkey = XP_RETURN_KEY; xpkey = XP_RETURN_KEY;
break; break;
case GDK_space: case GDK_KEY_space:
xpkey = XP_RAISEFOCUS_KEY; xpkey = XP_RAISEFOCUS_KEY;
break; break;
case GDK_Left: case GDK_KEY_Left:
xpkey = XP_CURSOR_KEY_LEFT; xpkey = XP_CURSOR_KEY_LEFT;
movesCursor = XP_TRUE; movesCursor = XP_TRUE;
break; break;
case GDK_Right: case GDK_KEY_Right:
xpkey = XP_CURSOR_KEY_RIGHT; xpkey = XP_CURSOR_KEY_RIGHT;
movesCursor = XP_TRUE; movesCursor = XP_TRUE;
break; break;
case GDK_Up: case GDK_KEY_Up:
xpkey = XP_CURSOR_KEY_UP; xpkey = XP_CURSOR_KEY_UP;
movesCursor = XP_TRUE; movesCursor = XP_TRUE;
break; break;
case GDK_Down: case GDK_KEY_Down:
xpkey = XP_CURSOR_KEY_DOWN; xpkey = XP_CURSOR_KEY_DOWN;
movesCursor = XP_TRUE; movesCursor = XP_TRUE;
break; break;
#endif #endif
case GDK_BackSpace: case GDK_KEY_BackSpace:
XP_LOGF( "... it's a DEL" ); XP_LOGF( "... it's a DEL" );
xpkey = XP_CURSOR_KEY_DEL; xpkey = XP_CURSOR_KEY_DEL;
break; break;