mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 12:32:37 +00:00
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:
parent
532d42d012
commit
506c4c7101
|
@ -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>
|
2004-06-03 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* app/core/gimpdatafactory.c (gimp_data_factory_load_data):
|
* app/core/gimpdatafactory.c (gimp_data_factory_load_data):
|
||||||
|
|
|
@ -462,7 +462,10 @@ gimp_pattern_load_pixbuf (const gchar *filename,
|
||||||
if (! pixbuf)
|
if (! pixbuf)
|
||||||
return NULL;
|
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)
|
if (! name)
|
||||||
{
|
{
|
||||||
|
|
|
@ -462,7 +462,10 @@ gimp_pattern_load_pixbuf (const gchar *filename,
|
||||||
if (! pixbuf)
|
if (! pixbuf)
|
||||||
return NULL;
|
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)
|
if (! name)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue