mirror of https://github.com/GNOME/gimp.git
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:
parent
947fa0fa8c
commit
afd2ab683f
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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__ */
|
||||
|
|
Loading…
Reference in New Issue