Commit a49551e1 authored by Jesse van den Kieboom's avatar Jesse van den Kieboom Committed by Paolo Borelli

tweak focus handling some more. Bug 335169.

2006-03-23  Jesse van den Kieboom  <jesse@icecrew.nl>

	* gedit/dialogs/gedit-search-dialog.c: tweak focus handling some
	more. Bug 335169.
parent e19530ec
2006-03-23 Jesse van den Kieboom <jesse@icecrew.nl>
* gedit/dialogs/gedit-search-dialog.c: tweak focus handling some
more. Bug 335169.
2006-03-23 Steve Frécinaux <steve@istique.net>
* gedit/gedit-plugin-manager.c: show a description of the plugins
......
......@@ -115,16 +115,24 @@ static gboolean
gedit_search_dialog_focus_in_event (GtkWidget *widget,
GdkEventFocus *event)
{
gboolean res;
GeditSearchDialog *dlg = GEDIT_SEARCH_DIALOG (widget);
GtkWidget *entry = dlg->priv->search_entry;
res = GTK_WIDGET_CLASS (gedit_search_dialog_parent_class)->focus_in_event (widget, event);
/*
* If the document is focused and we print ctrl+F
* we want the focus to go on the entry even if it
* currently was on the Find button.
*/
if (!GTK_WIDGET_HAS_FOCUS (entry))
{
gtk_widget_grab_focus (entry);
gtk_editable_set_position (GTK_EDITABLE (entry), -1);
}
return GTK_WIDGET_CLASS (gedit_search_dialog_parent_class)->focus_in_event (widget, event);
return res;
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment