diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-06-11 07:56:34 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-06-11 07:56:34 +0000 |
commit | 6d0adc3a3c352ef624b865c88f30d332b9ad2073 (patch) | |
tree | fffafd08e89c9a342175fc6b11f58f75461cee67 /plugin | |
parent | cbbe2cb3b468a8bdf8225657fb7d522e133ee24c (diff) |
fixed syl_plugin_folderview_add_sub_widget() and updated test plug-in.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2570 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/test/test.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/plugin/test/test.c b/plugin/test/test.c index 393a2b91..bd42fb4b 100644 --- a/plugin/test/test.c +++ b/plugin/test/test.c @@ -27,7 +27,7 @@ static SylPluginInfo info = { "Test Plugin", - "1.0.0", + "3.0.99", "Hiroyuki Yamamoto", "Test plug-in for Sylpheed plug-in system" }; @@ -40,6 +40,7 @@ static void compose_created_cb(GObject *obj, gpointer compose); static void compose_destroy_cb(GObject *obj, gpointer compose); static void create_window(void); +static void create_folderview_sub_widget(void); void plugin_load(void) { @@ -64,6 +65,8 @@ void plugin_load(void) g_print("mainwin: %p\n", mainwin); syl_plugin_main_window_popup(mainwin); + create_folderview_sub_widget(); + syl_plugin_add_menuitem("/Tools", NULL, NULL, NULL); syl_plugin_add_menuitem("/Tools", "Plugin test", create_window, NULL); @@ -153,3 +156,17 @@ static void create_window(void) G_CALLBACK(button_clicked), NULL); gtk_widget_show_all(window); } + +static void create_folderview_sub_widget(void) +{ + GtkWidget *vbox; + GtkWidget *button; + + g_print("creating sub widget\n"); + + vbox = gtk_vbox_new(FALSE, 2); + button = gtk_button_new_with_label("Test"); + gtk_box_pack_start(GTK_BOX(vbox), button, FALSE, FALSE, 0); + gtk_widget_show_all(vbox); + syl_plugin_folderview_add_sub_widget(vbox); +} |