aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2011-06-08 04:46:06 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2011-06-08 04:46:06 +0000
commit1795b4e93920d0ab38ecc8011c8c0756e18df8dd (patch)
treeba56908426869e44d89b63e326a8a745b1f9cadd /plugin
parent68b391b5c17420988118f2152d90832472bbfc0b (diff)
added a new plug-in API: 'messagev-ew-show'.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2887 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'plugin')
-rw-r--r--plugin/test/test.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugin/test/test.c b/plugin/test/test.c
index 99fbecd4..4160da2f 100644
--- a/plugin/test/test.c
+++ b/plugin/test/test.c
@@ -54,6 +54,8 @@ static void compose_destroy_cb(GObject *obj, gpointer compose);
static gboolean compose_send_cb(GObject *obj, gpointer compose,
gint compose_mode, gint send_mode,
const gchar *msg_file, GSList *to_list);
+static void messageview_show_cb(GObject *obj, gpointer msgview,
+ MsgInfo *msginfo, gboolean all_headers);
static void create_window(void);
static void create_folderview_sub_widget(void);
@@ -105,6 +107,8 @@ void plugin_load(void)
G_CALLBACK(compose_destroy_cb), NULL);
syl_plugin_signal_connect("compose-send",
G_CALLBACK(compose_send_cb), NULL);
+ syl_plugin_signal_connect("messageview-show",
+ G_CALLBACK(messageview_show_cb), NULL);
syl_plugin_add_factory_item("<SummaryView>", "/---", NULL, NULL);
syl_plugin_add_factory_item("<SummaryView>", "/Test Plug-in menu",
@@ -235,6 +239,14 @@ static gboolean compose_send_cb(GObject *obj, gpointer compose,
return TRUE; /* return FALSE to cancel sending */
}
+static void messageview_show_cb(GObject *obj, gpointer msgview,
+ MsgInfo *msginfo, gboolean all_headers)
+{
+ g_print("test: %p: messageview_show (%p), all_headers: %d: %s\n",
+ obj, msgview, all_headers,
+ msginfo && msginfo->subject ? msginfo->subject : "");
+}
+
static void button_clicked(GtkWidget *widget, gpointer data)
{
g_print("button_clicked\n");