Use a default tab icon.

This commit is contained in:
Christian Dywan 2008-04-05 16:22:02 +02:00
parent f261464c90
commit 00df47913d

View file

@ -831,7 +831,12 @@ midori_web_view_get_proxy_tab_icon (MidoriWebView* web_view)
if (!priv->tab_icon) if (!priv->tab_icon)
{ {
priv->tab_icon = katze_throbber_new (); priv->tab_icon = katze_throbber_new ();
katze_throbber_set_pixbuf (KATZE_THROBBER(priv->tab_icon), priv->icon); if (priv->icon)
katze_throbber_set_static_pixbuf (KATZE_THROBBER(priv->tab_icon),
priv->icon);
else
katze_throbber_set_static_stock_id (KATZE_THROBBER(priv->tab_icon),
GTK_STOCK_FILE);
} }
return priv->tab_icon; return priv->tab_icon;
} }
@ -916,8 +921,7 @@ midori_web_view_get_proxy_tab_label (MidoriWebView* web_view)
if (!priv->proxy_tab_label) if (!priv->proxy_tab_label)
{ {
priv->tab_icon = katze_throbber_new (); priv->tab_icon = midori_web_view_get_proxy_tab_icon (web_view);
katze_throbber_set_pixbuf (KATZE_THROBBER(priv->tab_icon), priv->icon);
GtkWidget* event_box = gtk_event_box_new (); GtkWidget* event_box = gtk_event_box_new ();
gtk_event_box_set_visible_window(GTK_EVENT_BOX (event_box), FALSE); gtk_event_box_set_visible_window(GTK_EVENT_BOX (event_box), FALSE);