From c80517e20f9e0da36a0dec8a0e89c963ca851481 Mon Sep 17 00:00:00 2001 From: hiro Date: Thu, 21 Jan 2010 06:20:42 +0000 Subject: plugin/test/test.c: added tests for compose. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2437 ee746299-78ed-0310-b773-934348b2243d --- plugin/test/test.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'plugin') 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) -- cgit v1.2.3