aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-01-21 06:20:42 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-01-21 06:20:42 +0000
commitc80517e20f9e0da36a0dec8a0e89c963ca851481 (patch)
tree8fba122556dfa7295e5806953a3729bf0674d31a /plugin
parent441b184056b95fcf0ce22a1f61c7e8ce779949cc (diff)
plugin/test/test.c: added tests for compose.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2437 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'plugin')
-rw-r--r--plugin/test/test.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugin/test/test.c b/plugin/test/test.c
index 3526e960..393a2b91 100644
--- a/plugin/test/test.c
+++ b/plugin/test/test.c
@@ -114,7 +114,17 @@ static void menu_popup_cb(GObject *obj, GtkItemFactory *ifactory,
static void compose_created_cb(GObject *obj, gpointer compose)
{
+ gchar *text;
+
g_print("test: %p: compose created (%p)\n", obj, compose);
+
+ text = syl_plugin_compose_entry_get_text(compose, 0);
+ g_print("test: compose To: %s\n", text);
+ g_free(text);
+#if 0
+ syl_plugin_compose_entry_set(compose, "test-plugin@test", 1);
+ syl_plugin_compose_entry_append(compose, "second@test", 1);
+#endif
}
static void compose_destroy_cb(GObject *obj, gpointer compose)