Initialize icon theme in midori_view_update_icon to avoid warning

This commit is contained in:
Christian Dywan 2009-10-23 18:07:19 +02:00
parent 9c7c1e0783
commit 09498f2473

View file

@ -625,8 +625,8 @@ midori_view_update_icon (MidoriView* view,
if (!icon)
{
GdkScreen* screen;
GtkIconTheme* icon_theme;
gchar** parts;
GtkIconTheme* icon_theme = NULL;
gchar** parts = NULL;
gchar* icon_name;
if ((screen = gtk_widget_get_screen (GTK_WIDGET (view))))
@ -638,8 +638,6 @@ midori_view_update_icon (MidoriView* view,
katze_assign (parts, NULL);
}
}
else
parts = NULL;
if (parts)
icon = midori_view_mime_icon (icon_theme, "%s-%s",