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.
This commit is contained in:
Sven Neumann 2004-06-03 12:01:17 +00:00 committed by Sven Neumann
parent 532d42d012
commit 506c4c7101
3 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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):

View File

@ -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)
{

View File

@ -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)
{