ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: Re: [ethereal-dev] misc. suggestions for go to frame

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Sun, 5 Dec 1999 16:29:53 -0800
> > > go to frame - take focus in entry area when bringing up window
> 
> gtk_widget_grab_focus(entrywidget);

I guess the real question was how to make it do so without having to
*explicitly* do so - it appears to have given the focus to the "OK"
button, rather than to the first widget in the dialog box, for some
reason.

Perhaps Windows and/or Motif and/or Qt and...  all have different rules,
and all have non-obvious rules, for determining which widget gets the
focus when a window is first popped up, but GTK+'s rules don't seem to,
by default, do what I expect.

> Ick, no kidding. That does suck, at least if you could do hierarchical
> menus with web forms you could do something about that. (You could rig
> something with javascript probably, but yuck.)

JavaScript + UNIX Netscape appears to have, as its primary function, the
creation of files in the current directory with the characters "c", "o",
"r", and "e", in that order, in their name (the exact name appears to
depend on the flavor of UNIX you're using - on Solaris, it's just
"core", but, on FreeBSD, it's called "netscape.core"); for some reason,
Netscape seems to get rid of all its windows after doing so.  :-)