[Xfce4-commits] <midori:master> Initialize icon theme in midori_view_update_icon to avoid warning

Christian Dywan noreply at xfce.org
Fri Oct 23 18:12:01 CEST 2009


Updating branch refs/heads/master
         to 09498f2473f168bb05f45cc5f0c6e36b7847bc8b (commit)
       from 9c7c1e07830f4ce64fa1709d39238d2836c2ef08 (commit)

commit 09498f2473f168bb05f45cc5f0c6e36b7847bc8b
Author: Christian Dywan <christian at twotoasts.de>
Date:   Fri Oct 23 18:07:19 2009 +0200

    Initialize icon theme in midori_view_update_icon to avoid warning

 midori/midori-view.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/midori/midori-view.c b/midori/midori-view.c
index 95006fe..23b9d7b 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -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",



More information about the Xfce4-commits mailing list