]> spindle.queued.net Git - midori/commitdiff
Correct accidental _modify_fg rather than _text
authorChristian Dywan <christian@twotoasts.de>
Thu, 15 Dec 2011 03:25:43 +0000 (04:25 +0100)
committerChristian Dywan <christian@twotoasts.de>
Thu, 15 Dec 2011 03:29:44 +0000 (04:29 +0100)
Fixes: https://bugs.launchpad.net/midori/+bug/904276
midori/midori-locationaction.c
midori/midori-view.c

index c1e4b2b18ae43bce2b7d9244716cc9d52792a331..f380b6dd74584223e1467ac04b2af926c62df25a 100644 (file)
@@ -1689,7 +1689,7 @@ midori_location_action_set_security_hint (MidoriLocationAction* location_action,
         if (bg_color) gdk_color_parse (bg_color, &color);
         gtk_widget_modify_base (entry, GTK_STATE_NORMAL, bg_color ? &color : NULL);
         if (fg_color) gdk_color_parse (fg_color, &color);
-        gtk_widget_modify_fg (entry, GTK_STATE_NORMAL, fg_color ? &color : NULL);
+        gtk_widget_modify_text (entry, GTK_STATE_NORMAL, fg_color ? &color : NULL);
         #endif
         }
     }
index d73bcfd96e8808611a8b958b6c215307c40f4003..47d28a03522189b14d3b0f8bfdb3fa6c0fb62076 100644 (file)
@@ -667,7 +667,7 @@ midori_view_apply_icon (MidoriView*  view,
 
     if (view->tab_icon)
     {
-        if (icon_name)
+        if (icon_name && !strchr (icon_name, '/'))
             katze_throbber_set_static_icon_name (KATZE_THROBBER (view->tab_icon),
                                                  icon_name);
         else
@@ -677,7 +677,7 @@ midori_view_apply_icon (MidoriView*  view,
     if (view->menu_item)
     {
         GtkWidget* image;
-        if (icon_name)
+        if (icon_name && !strchr (icon_name, '/'))
             image = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_MENU);
         else
             image = gtk_image_new_from_pixbuf (view->icon);
@@ -719,7 +719,7 @@ midori_view_update_icon (MidoriView* view,
 
     if (icon)
     {
-        midori_view_apply_icon (view, icon, NULL);
+        midori_view_apply_icon (view, icon, view->icon_uri);
         return;
     }