Commit 506c4c71 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

if a Title is set, use that as the pattern name.

2004-06-03  Sven Neumann  <sven@gimp.org>

	* app/core/gimppattern.c (gimp_pattern_load_pixbuf): if a Title is
	set, use that as the pattern name.
parent 532d42d0
2004-06-03 Sven Neumann <sven@gimp.org>
* app/core/gimppattern.c (gimp_pattern_load_pixbuf): if a Title is
set, use that as the pattern name.
2004-06-03 Sven Neumann <sven@gimp.org>
* app/core/gimpdatafactory.c (gimp_data_factory_load_data):
......
......@@ -462,7 +462,10 @@ gimp_pattern_load_pixbuf (const gchar *filename,
if (! pixbuf)
return NULL;
name = g_strdup (gdk_pixbuf_get_option (pixbuf, "tEXt::Comment"));
name = g_strdup (gdk_pixbuf_get_option (pixbuf, "tEXt::Title"));
if (! name)
name = g_strdup (gdk_pixbuf_get_option (pixbuf, "tEXt::Comment"));
if (! name)
{
......
......@@ -462,7 +462,10 @@ gimp_pattern_load_pixbuf (const gchar *filename,
if (! pixbuf)
return NULL;
name = g_strdup (gdk_pixbuf_get_option (pixbuf, "tEXt::Comment"));
name = g_strdup (gdk_pixbuf_get_option (pixbuf, "tEXt::Title"));
if (! name)
name = g_strdup (gdk_pixbuf_get_option (pixbuf, "tEXt::Comment"));
if (! name)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment