MarkMenu("View.ICSInputBox", InputBoxDlg);
if(GenericPopUp(boxOptions, _("ICS input box"), InputBoxDlg, BoardWindow, NONMODAL, 0))
AddHandler(&boxOptions[0], InputBoxDlg, 3);
+ CursorAtEnd(&boxOptions[0]);
}
void
buf[0] = firstchar; ASSIGN(icsText, buf);
if(GenericPopUp(typeOptions, _("Type a move"), TransientDlg, BoardWindow, MODAL, 0))
AddHandler(&typeOptions[0], TransientDlg, 2);
+ CursorAtEnd(&typeOptions[0]);
}
void
//void ColorChanged P((Widget w, XtPointer data, XEvent *event, Boolean *b));
void SetInsertPos P((Option *opt, int pos));
void HardSetFocus P((Option *opt));
+void CursorAtEnd P((Option *opt));
void GetWidgetText P((Option *opt, char **buf));
void SetWidgetText P((Option *opt, char *buf, int n));
void GetWidgetState P((Option *opt, int *state));
Option *typeIn; // kludge to distinguish type-in callback from input-box callback
+void
+CursorAtEnd (Option *opt)
+{
+ gtk_editable_set_position(opt->handle, -1);
+}
+
static gboolean
ICSKeyEvent(GtkWidget *widget, GdkEventKey *event, gpointer g)
{