]> spindle.queued.net Git - midori/commitdiff
Build fix: Remove search api
authorChristian Dywan <christian@twotoasts.de>
Mon, 17 Dec 2007 12:12:38 +0000 (13:12 +0100)
committerChristian Dywan <christian@twotoasts.de>
Mon, 17 Dec 2007 12:12:38 +0000 (13:12 +0100)
Remove the search api that is not in upstream WebKit

src/browser.c

index c2c4e05ce87fa0e04369c907abab3af15e8de884..2f2fec3d7d9708779758a9714a71c8e70167ea45 100644 (file)
@@ -125,7 +125,7 @@ void on_action_find_activate(GtkAction* action, CBrowser* browser)
 
 void on_action_find_next_activate(GtkAction* action, CBrowser* browser)
 {
-    if(!GTK_WIDGET_VISIBLE(browser->findbox))
+    /*if(!GTK_WIDGET_VISIBLE(browser->findbox))
         ; // FIXME: What if the findbox is hidden?
     const gchar* text = gtk_entry_get_text(GTK_ENTRY(browser->findbox_text));
     const gboolean caseSensitive = gtk_toggle_tool_button_get_active(
@@ -142,12 +142,12 @@ void on_action_find_next_activate(GtkAction* action, CBrowser* browser)
     webkit_web_view_mark_text_matches(WEBKIT_WEB_VIEW(webView), text, caseSensitive, 0);
     const gboolean highlight = gtk_toggle_tool_button_get_active(
      GTK_TOGGLE_TOOL_BUTTON(browser->findbox_highlight));
-    webkit_web_view_set_highlight_text_matches(WEBKIT_WEB_VIEW(webView), highlight);
+    webkit_web_view_set_highlight_text_matches(WEBKIT_WEB_VIEW(webView), highlight);*/
 }
 
 void on_action_find_previous_activate(GtkAction* action, CBrowser* browser)
 {
-    if(!GTK_WIDGET_VISIBLE(browser->findbox))
+    /*if(!GTK_WIDGET_VISIBLE(browser->findbox))
         ; // FIXME: What if the findbox is hidden?
     const gchar* text = gtk_entry_get_text(GTK_ENTRY(browser->findbox_text));
     const gboolean caseSensitive = gtk_toggle_tool_button_get_active(
@@ -164,14 +164,14 @@ void on_action_find_previous_activate(GtkAction* action, CBrowser* browser)
     webkit_web_view_mark_text_matches(WEBKIT_WEB_VIEW(webView), text, caseSensitive, 0);
     const gboolean highlight = gtk_toggle_tool_button_get_active(
      GTK_TOGGLE_TOOL_BUTTON(browser->findbox_highlight));
-    webkit_web_view_set_highlight_text_matches(WEBKIT_WEB_VIEW(webView), highlight);
+    webkit_web_view_set_highlight_text_matches(WEBKIT_WEB_VIEW(webView), highlight);*/
 }
 
 void on_findbox_highlight_toggled(GtkToggleToolButton* toolitem, CBrowser* browser)
 {
-    GtkWidget* webView = get_nth_webView(-1, browser);
+    /*GtkWidget* webView = get_nth_webView(-1, browser);
     const gboolean highlight = gtk_toggle_tool_button_get_active(toolitem);
-    webkit_web_view_set_highlight_text_matches(WEBKIT_WEB_VIEW(webView), highlight);
+    webkit_web_view_set_highlight_text_matches(WEBKIT_WEB_VIEW(webView), highlight);*/
 }
 
 void on_action_preferences_activate(GtkAction* action, CBrowser* browser)