added gimp_message_valist().

2006-09-28  Sven Neumann  <sven@gimp.org>

	* app/core/gimp.[ch]: added gimp_message_valist().
This commit is contained in:
Sven Neumann 2006-09-28 10:47:44 +00:00 committed by Sven Neumann
parent 947fa0fa8c
commit afd2ab683f
3 changed files with 24 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2006-09-28 Sven Neumann <sven@gimp.org>
* app/core/gimp.[ch]: added gimp_message_valist().
2006-09-28 Sven Neumann <sven@gimp.org>
* app/core/gimp.h: formatting.

View File

@ -997,15 +997,27 @@ gimp_message (Gimp *gimp,
const gchar *format,
...)
{
va_list args;
gchar *message;
va_list args;
va_start (args, format);
gimp_message_valist (gimp, progress, format, args);
va_end (args);
}
void
gimp_message_valist (Gimp *gimp,
GimpProgress *progress,
const gchar *format,
va_list args)
{
gchar *message;
g_return_if_fail (GIMP_IS_GIMP (gimp));
g_return_if_fail (progress == NULL || GIMP_IS_PROGRESS (progress));
va_start (args, format);
message = g_strdup_vprintf (format, args);
va_end (args);
gimp_show_message (gimp, progress, NULL, message);

View File

@ -178,6 +178,10 @@ void gimp_message (Gimp *gimp,
GimpProgress *progress,
const gchar *format,
...) G_GNUC_PRINTF(3,4);
void gimp_message_valist (Gimp *gimp,
GimpProgress *progress,
const gchar *format,
va_list args);
#endif /* __GIMP_H__ */