]> spindle.queued.net Git - midori/commitdiff
Don't set background on suggestions on Win32
authorChristian Dywan <christian@twotoasts.de>
Tue, 10 Jul 2012 17:39:48 +0000 (19:39 +0200)
committerChristian Dywan <christian@twotoasts.de>
Tue, 10 Jul 2012 17:41:40 +0000 (19:41 +0200)
The color from the native theme is wrong.

midori/midori-locationaction.c

index 0778463f17d20aa519b5db804d55f8fb98908ae9..d10e41b9c135b94ca96b716dec451e9b1e149410 100644 (file)
@@ -397,7 +397,9 @@ midori_location_action_add_search_engines (MidoriLocationAction* action,
         icon = midori_search_action_get_icon (item, action->treeview, NULL, FALSE);
         gtk_list_store_insert_with_values (store, NULL, matches + i,
             URI_COL, uri, TITLE_COL, desc, YALIGN_COL, 0.25,
+            #ifndef G_OS_WIN32
             BACKGROUND_COL, style ? &style->bg[GTK_STATE_NORMAL] : NULL,
+            #endif
             STYLE_COL, 1, FAVICON_COL, icon, -1);
         g_free (uri);
         g_free (title);
@@ -411,7 +413,9 @@ midori_location_action_add_search_engines (MidoriLocationAction* action,
             gtk_list_store_insert_with_values (store, NULL, matches + i,
                 URI_COL, "about:search", TITLE_COL, _("Search with…"),
                 YALIGN_COL, 0.25,
+                #ifndef G_OS_WIN32
                 BACKGROUND_COL, style ? &style->bg[GTK_STATE_NORMAL] : NULL,
+                #endif
                 STYLE_COL, 1, FAVICON_COL, NULL, -1);
             i++;
             break;