mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
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:
parent
2dc8839548
commit
8ba83a3921
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user