aboutsummaryrefslogtreecommitdiff
path: root/src/plugin.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2013-02-13 08:44:28 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2013-02-13 08:44:28 +0000
commit40a57dbe977d3d7b2a2b22f2bc7ffcb20832e9e4 (patch)
treea662ed6715beed9ed2c112710bc88431e8ef72ef /src/plugin.c
parentdef6dee82e3ddfbaaba95255f08e196575444f58 (diff)
added plug-in API for notification window.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3217 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/plugin.c')
-rw-r--r--src/plugin.c29
1 files changed, 28 insertions, 1 deletions
diff --git a/src/plugin.c b/src/plugin.c
index be1636f5..d78893fc 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -1,6 +1,6 @@
/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2012 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2013 Hiroyuki Yamamoto
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1373,3 +1373,30 @@ gint syl_plugin_send_message_set_forward_flags(const gchar *forward_targets)
GETFUNC("send_message_set_forward_flags");
return SAFE_CALL_ARG1_RET_VAL(func, forward_targets, -1);
}
+
+gint syl_plugin_notification_window_open(const gchar *message,
+ const gchar *submessage,
+ guint timeout)
+{
+ gint (*func)(const gchar *, const gchar *, guint);
+
+ GETFUNC("notification_window_open");
+ return SAFE_CALL_ARG3_RET_VAL(func, message, submessage, timeout, -1);
+}
+
+void syl_plugin_notification_window_set_message(const gchar *message,
+ const gchar *submessage)
+{
+ void (*func)(const gchar *, const gchar *);
+
+ GETFUNC("notification_window_set_message");
+ SAFE_CALL_ARG2(func, message, submessage);
+}
+
+void syl_plugin_notification_window_close(void)
+{
+ void (*func)(void);
+
+ GETFUNC("notification_window_close");
+ SAFE_CALL(func);
+}