aboutsummaryrefslogtreecommitdiff
path: root/src/common/helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/helper.c')
-rw-r--r--src/common/helper.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/common/helper.c b/src/common/helper.c
index 83a3667a..c2d9a971 100644
--- a/src/common/helper.c
+++ b/src/common/helper.c
@@ -235,10 +235,18 @@ static void saveAddLogEntry(void * args) {
235 * @param txt the log entry 235 * @param txt the log entry
236 * 236 *
237 */ 237 */
238void addLogEntry(const char * txt) { 238void addLogEntry(const char * txt,
239 infoMessage(NO, txt); 239 ...) {
240 va_list args;
241 gchar * note;
242
243 va_start(args, txt);
244 note = g_strdup_vprintf(txt, args);
245 va_end(args);
246 infoMessage(NO, note);
240 gtkSaveCall(&saveAddLogEntry, 247 gtkSaveCall(&saveAddLogEntry,
241 (void*) txt); 248 (void*) note);
249 g_free(note);
242} 250}
243 251
244/** 252/**