Title: [174879] trunk/Tools
Revision
174879
Author
[email protected]
Date
2014-10-20 01:23:26 -0700 (Mon, 20 Oct 2014)

Log Message

[GTK][Minibrowser] Escape key does not hide the search box
https://bugs.webkit.org/show_bug.cgi?id=137734

Patch by Tanay C <[email protected]> on 2014-10-20
Reviewed by Philippe Normand.

* MiniBrowser/gtk/BrowserWindow.c: Added the check to handle search box hide
(stopPageLoad): Modified.

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (174878 => 174879)


--- trunk/Tools/ChangeLog	2014-10-20 07:31:09 UTC (rev 174878)
+++ trunk/Tools/ChangeLog	2014-10-20 08:23:26 UTC (rev 174879)
@@ -1,3 +1,13 @@
+2014-10-20  Tanay C  <[email protected]>
+
+        [GTK][Minibrowser] Escape key does not hide the search box
+        https://bugs.webkit.org/show_bug.cgi?id=137734
+
+        Reviewed by Philippe Normand.
+
+        * MiniBrowser/gtk/BrowserWindow.c: Added the check to handle search box hide
+        (stopPageLoad): Modified.
+
 2014-10-18  Antti Koivisto  <[email protected]>
 
         REGRESSION (r173356): Safari can't install a profile, gets 'Download Failed error

Modified: trunk/Tools/MiniBrowser/gtk/BrowserWindow.c (174878 => 174879)


--- trunk/Tools/MiniBrowser/gtk/BrowserWindow.c	2014-10-20 07:31:09 UTC (rev 174878)
+++ trunk/Tools/MiniBrowser/gtk/BrowserWindow.c	2014-10-20 08:23:26 UTC (rev 174879)
@@ -552,7 +552,9 @@
 
 static void stopPageLoad(BrowserWindow *window, gpointer user_data)
 {
-    if (webkit_web_view_is_loading(window->webView))
+    if (gtk_widget_get_visible(GTK_WIDGET(window->searchBar))) 
+        browser_search_bar_close(window->searchBar);
+    else if (webkit_web_view_is_loading(window->webView))
         webkit_web_view_stop_loading(window->webView);
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to