[Xfce4-commits] <midori:master> Don't set background on suggestions on Win32

Christian Dywan noreply at xfce.org
Tue Jul 10 19:42:02 CEST 2012


Updating branch refs/heads/master
         to 7a6bc50d0a6608cde790f19a57d247730e51d242 (commit)
       from 7f7668048e05191be126f2993c390a8e60251279 (commit)

commit 7a6bc50d0a6608cde790f19a57d247730e51d242
Author: Christian Dywan <christian at twotoasts.de>
Date:   Tue Jul 10 19:39:48 2012 +0200

    Don't set background on suggestions on Win32
    
    The color from the native theme is wrong.

 midori/midori-locationaction.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c
index 0778463..d10e41b 100644
--- a/midori/midori-locationaction.c
+++ b/midori/midori-locationaction.c
@@ -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;


More information about the Xfce4-commits mailing list