void nautilus_location_entry_focus (NautilusLocationEntry *entry) { /* Put the keyboard focus in the text field when switching to this mode, * and select all text for easy overtyping */ gtk_widget_grab_focus (GTK_WIDGET (entry)); nautilus_entry_select_all (NAUTILUS_ENTRY (entry)); }
static gboolean select_all_at_idle (gpointer callback_data) { NautilusEntry *entry; entry = NAUTILUS_ENTRY (callback_data); nautilus_entry_select_all (entry); entry->details->select_idle_id = 0; return FALSE; }