epiphany r8736 - trunk/src



Author: xan
Date: Tue Jan 27 17:09:00 2009
New Revision: 8736
URL: http://svn.gnome.org/viewvc/epiphany?rev=8736&view=rev

Log:
ephy-find-toolbar: do not search for the empty string or NULL.

Spews critical warnings on console and it's obviously useless.

Modified:
   trunk/src/ephy-find-toolbar.c

Modified: trunk/src/ephy-find-toolbar.c
==============================================================================
--- trunk/src/ephy-find-toolbar.c	(original)
+++ trunk/src/ephy-find-toolbar.c	Tue Jan 27 17:09:00 2009
@@ -263,6 +263,9 @@
         WebKitWebView *web_view = priv->web_view;
         gboolean case_sensitive = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (priv->case_sensitive));
 
+        if (!priv->find_string || !g_strcmp0 (priv->find_string, ""))
+                return EPHY_FIND_NOTFOUND;
+
         if (!webkit_web_view_search_text
             (web_view, priv->find_string, case_sensitive, TRUE, FALSE)) {
                 /* not found, try to wrap */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]