Sat Mar 7 15:24:49 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>

* gwidget.c (entry_click): Focus the entry on clicks.
This commit is contained in:
Miguel de Icaza 1998-03-07 21:24:48 +00:00
parent 2dc8839548
commit 8ba83a3921
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Sat Mar 7 15:24:49 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gwidget.c (entry_click): Focus the entry on clicks.
Fri Mar 6 20:50:19 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gmain.c (create_panels): New per-port variable, used to flush

View File

@ -129,6 +129,12 @@ x_create_check (Dlg_head *h, widget_data parent, WCheck *c)
}
/* Input lines */
static void
entry_click (GtkWidget *widget, GdkEvent *event, WInput *in)
{
dlg_select_widget (in->widget.parent, in);
}
int
x_create_input (Dlg_head *h, widget_data parent, WInput *in)
{
@ -139,6 +145,8 @@ x_create_input (Dlg_head *h, widget_data parent, WInput *in)
in->widget.wdata = (widget_data) entry;
gtk_entry_set_text (GTK_ENTRY (entry), in->buffer);
gtk_entry_set_position (GTK_ENTRY (entry), in->point);
gtk_signal_connect (GTK_ENTRY (entry), "button_press_event",
GTK_SIGNAL_FUNC (entry_click), in);
return 1;
}