aboutsummaryrefslogtreecommitdiff
path: root/plugin/test
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/test')
-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");