From b738ec5cd4ea57f9b48f8e33495e6cb35dc59abc Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 17 Sep 2004 03:27:01 +0000 Subject: [PATCH] Reuse existing message to avoid unnecessary string freeze break. Noticed Thu Sep 16 23:24:36 2004 Matthias Clasen * io-xpm.c (pixbuf_create_from_xpm): Reuse existing message to avoid unnecessary string freeze break. Noticed by Danilo Segan. --- gdk-pixbuf/ChangeLog | 6 ++++++ gdk-pixbuf/io-xpm.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 3a4c81d853..a31fb1a757 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,9 @@ +Thu Sep 16 23:24:36 2004 Matthias Clasen + + * io-xpm.c (pixbuf_create_from_xpm): Reuse existing message + to avoid unnecessary string freeze break. Noticed by Danilo + Segan. + 2004-09-15 Matthias Clasen * io-ico.c: diff --git a/gdk-pixbuf/io-xpm.c b/gdk-pixbuf/io-xpm.c index 34ed8d9d7e..6e50bf6dc3 100644 --- a/gdk-pixbuf/io-xpm.c +++ b/gdk-pixbuf/io-xpm.c @@ -1269,7 +1269,7 @@ pixbuf_create_from_xpm (const gchar * (*get_buf) (enum buf_op op, gpointer handl g_set_error (error, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY, - _("Cannot allocate memory for loading XPM image")); + _("Can't allocate memory for loading XPM image")); g_hash_table_destroy (color_hash); return NULL; } @@ -1278,7 +1278,7 @@ pixbuf_create_from_xpm (const gchar * (*get_buf) (enum buf_op op, gpointer handl g_set_error (error, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY, - _("Cannot allocate memory for loading XPM image")); + _("Can't allocate memory for loading XPM image")); g_hash_table_destroy (color_hash); g_free (name_buf); return NULL;