Prefill entry with selected text when using inline fine manually
This commit is contained in:
parent
8f8a7634e0
commit
f79bbe1eef
1 changed files with 5 additions and 1 deletions
|
@ -2443,6 +2443,8 @@ _action_find_activate (GtkAction* action,
|
||||||
{
|
{
|
||||||
if (!GTK_WIDGET_VISIBLE (browser->find))
|
if (!GTK_WIDGET_VISIBLE (browser->find))
|
||||||
{
|
{
|
||||||
|
GtkWidget* view;
|
||||||
|
|
||||||
#if !HAVE_HILDON
|
#if !HAVE_HILDON
|
||||||
gtk_icon_entry_set_icon_from_stock (GTK_ICON_ENTRY (browser->find_text),
|
gtk_icon_entry_set_icon_from_stock (GTK_ICON_ENTRY (browser->find_text),
|
||||||
GTK_ICON_ENTRY_PRIMARY, GTK_STOCK_FIND);
|
GTK_ICON_ENTRY_PRIMARY, GTK_STOCK_FIND);
|
||||||
|
@ -2450,7 +2452,9 @@ _action_find_activate (GtkAction* action,
|
||||||
#endif
|
#endif
|
||||||
gtk_widget_show (GTK_WIDGET (browser->find_highlight));
|
gtk_widget_show (GTK_WIDGET (browser->find_highlight));
|
||||||
gtk_widget_show (GTK_WIDGET (browser->find_close));
|
gtk_widget_show (GTK_WIDGET (browser->find_close));
|
||||||
gtk_entry_set_text (GTK_ENTRY (browser->find_text), "");
|
view = midori_browser_get_current_tab (browser);
|
||||||
|
gtk_entry_set_text (GTK_ENTRY (browser->find_text),
|
||||||
|
midori_view_get_selected_text (MIDORI_VIEW (view)));
|
||||||
gtk_widget_show (browser->find);
|
gtk_widget_show (browser->find);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue