diff -Naur libxfcegui4-4.4.2/libxfcegui4-4.4.2/debian/patches/01_fix-menu-icons.patch libxfcegui4-4.4.2.tpg/libxfcegui4-4.4.2/debian/patches/01_fix-menu-icons.patch --- libxfcegui4-4.4.2/libxfcegui4-4.4.2/debian/patches/01_fix-menu-icons.patch 1970-01-01 00:00:00.000000000 +0000 +++ libxfcegui4-4.4.2.tpg/libxfcegui4-4.4.2/debian/patches/01_fix-menu-icons.patch 2008-04-30 14:39:45.000000000 +0000 @@ -0,0 +1,32 @@ +--- libxfcegui4/icons.c 2007-11-17 20:29:54.000000000 +0100 ++++ libxfcegui4/icons.c.new 2008-03-28 14:16:07.000000000 +0100 +@@ -143,8 +143,12 @@ + ensure_gtk_icon_theme(); + + /* GtkIconTheme doesn't like extensions */ +- if((p = g_strrstr(name, ".")) && strlen(p) < 6) +- name_fixed = g_strndup(name, p-name); ++ if (g_str_has_suffix (name, ".png") || g_str_has_suffix (name, ".svg") ++ || g_str_has_suffix (name, ".xpm")) ++ { ++ if((p = g_strrstr(name, ".")) && strlen(p) < 6) ++ name_fixed = g_strndup(name, p-name); ++ } + + pix = gtk_icon_theme_load_icon(icon_theme, name_fixed ? name_fixed : name, + size, +@@ -221,8 +225,12 @@ + ensure_gtk_icon_theme(); + + /* GtkIconTheme doesn't like extensions */ +- if((p = g_strrstr(name, ".")) && strlen(p) < 6) +- name_fixed = g_strndup(name, p-name); ++ if (g_str_has_suffix (name, ".png") || g_str_has_suffix (name, ".svg") ++ || g_str_has_suffix (name, ".xpm")) ++ { ++ if((p = g_strrstr(name, ".")) && strlen(p) < 6) ++ name_fixed = g_strndup(name, p-name); ++ } + + info = gtk_icon_theme_lookup_icon(icon_theme, + name_fixed ? name_fixed : name,