Give the entry box in the "Find Frame" and "Go To Frame" dialog boxes

the initial focus, so you can start typing immediately.

svn path=/trunk/; revision=1722
This commit is contained in:
Guy Harris 2000-03-15 08:54:24 +00:00
parent 3fa89a91c3
commit 87d1359345
2 changed files with 8 additions and 2 deletions

View File

@ -1,7 +1,7 @@
/* find_dlg.c
* Routines for "find frame" window
*
* $Id: find_dlg.c,v 1.6 2000/02/12 06:46:53 guy Exp $
* $Id: find_dlg.c,v 1.7 2000/03/15 08:54:24 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@ -132,6 +132,9 @@ find_frame_cb(GtkWidget *w, gpointer d)
gtk_object_set_data(GTK_OBJECT(find_frame_w), E_FIND_FILT_KEY, filter_te);
gtk_object_set_data(GTK_OBJECT(find_frame_w), E_FIND_BACKWARD_KEY, backward_rb);
/* Give the initial focus to the "Filter" entry box. */
gtk_widget_grab_focus(filter_te);
gtk_widget_show(find_frame_w);
}

View File

@ -1,7 +1,7 @@
/* goto_dlg.c
* Routines for "go to frame" window
*
* $Id: goto_dlg.c,v 1.4 2000/01/03 06:59:21 guy Exp $
* $Id: goto_dlg.c,v 1.5 2000/03/15 08:54:24 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@ -110,6 +110,9 @@ goto_frame_cb(GtkWidget *w, gpointer d)
/* Attach pointers to needed widgets to the capture prefs window/object */
gtk_object_set_data(GTK_OBJECT(goto_frame_w), E_GOTO_FNUMBER_KEY, fnumber_te);
/* Give the initial focus to the "Frame number" entry box. */
gtk_widget_grab_focus(fnumber_te);
gtk_widget_show(goto_frame_w);
}