Initialize icon theme in midori_view_update_icon to avoid warning
This commit is contained in:
parent
9c7c1e0783
commit
09498f2473
1 changed files with 2 additions and 4 deletions
|
@ -625,8 +625,8 @@ midori_view_update_icon (MidoriView* view,
|
||||||
if (!icon)
|
if (!icon)
|
||||||
{
|
{
|
||||||
GdkScreen* screen;
|
GdkScreen* screen;
|
||||||
GtkIconTheme* icon_theme;
|
GtkIconTheme* icon_theme = NULL;
|
||||||
gchar** parts;
|
gchar** parts = NULL;
|
||||||
gchar* icon_name;
|
gchar* icon_name;
|
||||||
|
|
||||||
if ((screen = gtk_widget_get_screen (GTK_WIDGET (view))))
|
if ((screen = gtk_widget_get_screen (GTK_WIDGET (view))))
|
||||||
|
@ -638,8 +638,6 @@ midori_view_update_icon (MidoriView* view,
|
||||||
katze_assign (parts, NULL);
|
katze_assign (parts, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
parts = NULL;
|
|
||||||
|
|
||||||
if (parts)
|
if (parts)
|
||||||
icon = midori_view_mime_icon (icon_theme, "%s-%s",
|
icon = midori_view_mime_icon (icon_theme, "%s-%s",
|
||||||
|
|
Loading…
Reference in a new issue