X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=gtk%2Fxoptions.c;h=0eb165880ef81bbfbc24aa14c3f203ff6b11c6e5;hb=7801dc7d61bc47273aa27cd65f60bc42e6f5a859;hp=18fc857c2026deccd2a0da1600d11b206beafdf1;hpb=515cd3f7b2ca2d5ba4450fc8bd8576c7602fe41d;p=xboard.git diff --git a/gtk/xoptions.c b/gtk/xoptions.c index 18fc857..0eb1658 100644 --- a/gtk/xoptions.c +++ b/gtk/xoptions.c @@ -1571,13 +1571,8 @@ SendText (int n) void SetInsertPos (Option *opt, int pos) { -#ifdef TODO_GTK - Arg args[16]; - XtSetArg(args[0], XtNinsertPosition, pos); - XtSetValues(opt->handle, args, 1); -// SetFocus(opt->handle, shells[InputBoxDlg], NULL, False); // No idea why this does not work, and the following is needed: -// XSetInputFocus(xDisplay, XtWindow(opt->handle), RevertToPointerRoot, CurrentTime); -#endif + if(opt->value > 80) ScrollToCursor(opt, pos); + else gtk_editable_set_position(GTK_EDITABLE(opt->handle), pos); } void