Mercurial > geeqie
diff src/ui_fileops.h @ 403:2649a28d31b6
Introduce printf_term() macro and use it.
author | zas_ |
---|---|
date | Fri, 18 Apr 2008 09:15:09 +0000 |
parents | f9611a6cf0e2 |
children | 4b2d7f9af171 |
line wrap: on
line diff
--- a/src/ui_fileops.h Thu Apr 17 20:14:49 2008 +0000 +++ b/src/ui_fileops.h Fri Apr 18 09:15:09 2008 +0000 @@ -23,6 +23,13 @@ void print_term(const gchar *text_utf8); +#define printf_term(...) \ + do { \ + gchar *msg = g_strdup_printf(__VA_ARGS__); \ + print_term(msg); \ + g_free(msg); \ + } while (0) + gchar *path_to_utf8(const gchar *path); gchar *path_from_utf8(const gchar *path);