[Xfce4-commits] <midori:master> Prefill entry with selected text when using inline fine manually

Christian Dywan noreply at xfce.org
Mon Nov 16 20:16:01 CET 2009


Updating branch refs/heads/master
         to f79bbe1eef9e40680310e5f2752803495cf693bb (commit)
       from 8f8a7634e03bcf74a5b017a939251355c0fdc3a6 (commit)

commit f79bbe1eef9e40680310e5f2752803495cf693bb
Author: Christian Dywan <christian at twotoasts.de>
Date:   Mon Nov 16 17:58:32 2009 +0100

    Prefill entry with selected text when using inline fine manually

 midori/midori-browser.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index c7a84f4..82f5638 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -2443,6 +2443,8 @@ _action_find_activate (GtkAction*     action,
 {
     if (!GTK_WIDGET_VISIBLE (browser->find))
     {
+        GtkWidget* view;
+
         #if !HAVE_HILDON
         gtk_icon_entry_set_icon_from_stock (GTK_ICON_ENTRY (browser->find_text),
                                             GTK_ICON_ENTRY_PRIMARY, GTK_STOCK_FIND);
@@ -2450,7 +2452,9 @@ _action_find_activate (GtkAction*     action,
         #endif
         gtk_widget_show (GTK_WIDGET (browser->find_highlight));
         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);
     }
 



More information about the Xfce4-commits mailing list