ports/graphics/gimp/snapshot/patches/patch-libgimpwidgets_gimpwidgets-private_c

57 lines
2.5 KiB
Text

Index: libgimpwidgets/gimpwidgets-private.c
--- libgimpwidgets/gimpwidgets-private.c.orig
+++ libgimpwidgets/gimpwidgets-private.c
@@ -109,7 +109,7 @@ gimp_widgets_init (GimpHelpFunc standard_hel
* then the application icon is dependant to the theme and for now at
* least, we want the installed icon.
*/
- path = g_build_filename (base_dir, "16x16", cat_dir, "gimp.png", NULL);
+ path = g_build_filename (base_dir, "16x16", cat_dir, "gimp-${V}.png", NULL);
pixbuf = gdk_pixbuf_new_from_file (path, &error);
if (pixbuf)
icons = g_list_prepend (icons, pixbuf);
@@ -118,7 +118,7 @@ gimp_widgets_init (GimpHelpFunc standard_hel
g_clear_error (&error);
g_free (path);
- path = g_build_filename (base_dir, "32x32", cat_dir, "gimp.png", NULL);
+ path = g_build_filename (base_dir, "32x32", cat_dir, "gimp-${V}.png", NULL);
pixbuf = gdk_pixbuf_new_from_file (path, &error);
if (pixbuf)
icons = g_list_prepend (icons, pixbuf);
@@ -127,7 +127,7 @@ gimp_widgets_init (GimpHelpFunc standard_hel
g_clear_error (&error);
g_free (path);
- path = g_build_filename (base_dir, "48x48", cat_dir, "gimp.png", NULL);
+ path = g_build_filename (base_dir, "48x48", cat_dir, "gimp-${V}.png", NULL);
pixbuf = gdk_pixbuf_new_from_file (path, &error);
if (pixbuf)
icons = g_list_prepend (icons, pixbuf);
@@ -136,7 +136,7 @@ gimp_widgets_init (GimpHelpFunc standard_hel
g_clear_error (&error);
g_free (path);
- path = g_build_filename (base_dir, "64x64", cat_dir, "gimp.png", NULL);
+ path = g_build_filename (base_dir, "64x64", cat_dir, "gimp-${V}.png", NULL);
pixbuf = gdk_pixbuf_new_from_file (path, &error);
if (pixbuf)
icons = g_list_prepend (icons, pixbuf);
@@ -145,7 +145,7 @@ gimp_widgets_init (GimpHelpFunc standard_hel
g_clear_error (&error);
g_free (path);
- path = g_build_filename (base_dir, "scalable", cat_dir, "gimp.svg", NULL);
+ path = g_build_filename (base_dir, "scalable", cat_dir, "gimp-${V}.svg", NULL);
pixbuf = gdk_pixbuf_new_from_file_at_size (path, 128, 128, &error);
if (pixbuf)
{
@@ -178,7 +178,7 @@ gimp_widgets_init (GimpHelpFunc standard_hel
}
g_free (path);
- path = g_build_filename (base_dir, "256x256", cat_dir, "gimp.png", NULL);
+ path = g_build_filename (base_dir, "256x256", cat_dir, "gimp-${V}.png", NULL);
pixbuf = gdk_pixbuf_new_from_file (path, &error);
if (pixbuf)
icons = g_list_prepend (icons, pixbuf);