Changeset 163699 in webkit


Ignore:
Timestamp:
Feb 8, 2014 12:26:57 AM (10 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK] Minibrowser: Matched words of a searched text are not highlighted after reopening search bar
https://bugs.webkit.org/show_bug.cgi?id=128380

Patch by Diego Pino Garcia <Diego Pino Garcia> on 2014-02-08
Reviewed by Carlos Garcia Campos.

When open the search bar, perform last search if there is any.

  • MiniBrowser/gtk/BrowserSearchBar.c:

(browser_search_bar_open):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r163698 r163699  
     12014-02-08  Diego Pino Garcia  <dpino@igalia.com>
     2
     3        [GTK] Minibrowser: Matched words of a searched text are not highlighted after reopening search bar
     4        https://bugs.webkit.org/show_bug.cgi?id=128380
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        When open the search bar, perform last search if there is any.
     9
     10        * MiniBrowser/gtk/BrowserSearchBar.c:
     11        (browser_search_bar_open):
     12
    1132014-02-08  Adrian Perez de Castro  <aperez@igalia.com>
    214
  • trunk/Tools/MiniBrowser/gtk/BrowserSearchBar.c

    r159774 r163699  
    275275    g_return_if_fail(BROWSER_IS_SEARCH_BAR(searchBar));
    276276
     277    GtkEntry *entry = GTK_ENTRY(searchBar->entry);
     278
    277279    gtk_widget_show(GTK_WIDGET(searchBar));
    278     gtk_widget_grab_focus(GTK_WIDGET(searchBar->entry));
    279     gtk_editable_select_region(GTK_EDITABLE(searchBar->entry), 0, -1);
     280    gtk_widget_grab_focus(GTK_WIDGET(entry));
     281    gtk_editable_select_region(GTK_EDITABLE(entry), 0, -1);
     282    if (gtk_entry_get_text_length(entry))
     283        doSearch(searchBar);
    280284}
    281285
Note: See TracChangeset for help on using the changeset viewer.