summaryrefslogtreecommitdiff
path: root/plugin/test
diff options
context:
space:
mode:
authorSimeon Simeonov2018-02-26 11:23:00 +0100
committerSimeon Simeonov2018-02-26 11:23:00 +0100
commit0b3cbf57875fd692e4ba0b336fefa4bee1ed00dc (patch)
treeaf916a30553c78ce9d4f2d8658656a175c5b6921 /plugin/test
Initial commit for sylpheed 3.7.0
Diffstat (limited to 'plugin/test')
-rw-r--r--plugin/test/Makefile.am20
-rw-r--r--plugin/test/Makefile.in710
-rw-r--r--plugin/test/README4
-rw-r--r--plugin/test/test.c306
-rw-r--r--plugin/test/test.h23
5 files changed, 1063 insertions, 0 deletions
diff --git a/plugin/test/Makefile.am b/plugin/test/Makefile.am
new file mode 100644
index 0000000..dabf798
--- /dev/null
+++ b/plugin/test/Makefile.am
@@ -0,0 +1,20 @@
1libdir = $(plugindir)
2
3lib_LTLIBRARIES = test.la
4
5test_la_SOURCES = test.c test.h
6test_la_LDFLAGS = -module -no-undefined -avoid-version
7
8INCLUDES = \
9 -I$(top_srcdir) \
10 -I$(top_srcdir)/libsylph \
11 -I$(top_srcdir)/src \
12 $(GTK_CFLAGS)
13
14test_la_LIBADD = \
15 $(GTK_LIBS) \
16 $(top_builddir)/src/libsylpheed-plugin-0.la \
17 $(top_builddir)/libsylph/libsylph-0.la
18
19install:
20install-plugin: install-am
diff --git a/plugin/test/Makefile.in b/plugin/test/Makefile.in
new file mode 100644
index 0000000..e29bffe
--- /dev/null
+++ b/plugin/test/Makefile.in
@@ -0,0 +1,710 @@
1# Makefile.in generated by automake 1.14.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994-2013 Free Software Foundation, Inc.
5
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16
17VPATH = @srcdir@
18am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
19am__make_running_with_option = \
20 case $${target_option-} in \
21 ?) ;; \
22 *) echo "am__make_running_with_option: internal error: invalid" \
23 "target option '$${target_option-}' specified" >&2; \
24 exit 1;; \
25 esac; \
26 has_opt=no; \
27 sane_makeflags=$$MAKEFLAGS; \
28 if $(am__is_gnu_make); then \
29 sane_makeflags=$$MFLAGS; \
30 else \
31 case $$MAKEFLAGS in \
32 *\\[\ \ ]*) \
33 bs=\\; \
34 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
35 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
36 esac; \
37 fi; \
38 skip_next=no; \
39 strip_trailopt () \
40 { \
41 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
42 }; \
43 for flg in $$sane_makeflags; do \
44 test $$skip_next = yes && { skip_next=no; continue; }; \
45 case $$flg in \
46 *=*|--*) continue;; \
47 -*I) strip_trailopt 'I'; skip_next=yes;; \
48 -*I?*) strip_trailopt 'I';; \
49 -*O) strip_trailopt 'O'; skip_next=yes;; \
50 -*O?*) strip_trailopt 'O';; \
51 -*l) strip_trailopt 'l'; skip_next=yes;; \
52 -*l?*) strip_trailopt 'l';; \
53 -[dEDm]) skip_next=yes;; \
54 -[JT]) skip_next=yes;; \
55 esac; \
56 case $$flg in \
57 *$$target_option*) has_opt=yes; break;; \
58 esac; \
59 done; \
60 test $$has_opt = yes
61am__make_dryrun = (target_option=n; $(am__make_running_with_option))
62am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
63pkgdatadir = $(datadir)/@PACKAGE@
64pkgincludedir = $(includedir)/@PACKAGE@
65pkglibdir = $(libdir)/@PACKAGE@
66pkglibexecdir = $(libexecdir)/@PACKAGE@
67am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
68install_sh_DATA = $(install_sh) -c -m 644
69install_sh_PROGRAM = $(install_sh) -c
70install_sh_SCRIPT = $(install_sh) -c
71INSTALL_HEADER = $(INSTALL_DATA)
72transform = $(program_transform_name)
73NORMAL_INSTALL = :
74PRE_INSTALL = :
75POST_INSTALL = :
76NORMAL_UNINSTALL = :
77PRE_UNINSTALL = :
78POST_UNINSTALL = :
79build_triplet = @build@
80host_triplet = @host@
81target_triplet = @target@
82subdir = plugin/test
83DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
84 $(top_srcdir)/mkinstalldirs $(top_srcdir)/depcomp README
85ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
86am__aclocal_m4_deps = $(top_srcdir)/ac/aclocal-include.m4 \
87 $(top_srcdir)/ac/gnupg-check-typedef.m4 \
88 $(top_srcdir)/configure.ac
89am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
90 $(ACLOCAL_M4)
91mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
92CONFIG_HEADER = $(top_builddir)/config.h
93CONFIG_CLEAN_FILES =
94CONFIG_CLEAN_VPATH_FILES =
95am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
96am__vpath_adj = case $$p in \
97 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
98 *) f=$$p;; \
99 esac;
100am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
101am__install_max = 40
102am__nobase_strip_setup = \
103 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
104am__nobase_strip = \
105 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
106am__nobase_list = $(am__nobase_strip_setup); \
107 for p in $$list; do echo "$$p $$p"; done | \
108 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
109 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
110 if (++n[$$2] == $(am__install_max)) \
111 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
112 END { for (dir in files) print dir, files[dir] }'
113am__base_list = \
114 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
115 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
116am__uninstall_files_from_dir = { \
117 test -z "$$files" \
118 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
119 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
120 $(am__cd) "$$dir" && rm -f $$files; }; \
121 }
122am__installdirs = "$(DESTDIR)$(libdir)"
123LTLIBRARIES = $(lib_LTLIBRARIES)
124am__DEPENDENCIES_1 =
125test_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \
126 $(top_builddir)/src/libsylpheed-plugin-0.la \
127 $(top_builddir)/libsylph/libsylph-0.la
128am_test_la_OBJECTS = test.lo
129test_la_OBJECTS = $(am_test_la_OBJECTS)
130AM_V_lt = $(am__v_lt_@AM_V@)
131am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
132am__v_lt_0 = --silent
133am__v_lt_1 =
134test_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
135 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
136 $(test_la_LDFLAGS) $(LDFLAGS) -o $@
137AM_V_P = $(am__v_P_@AM_V@)
138am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
139am__v_P_0 = false
140am__v_P_1 = :
141AM_V_GEN = $(am__v_GEN_@AM_V@)
142am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
143am__v_GEN_0 = @echo " GEN " $@;
144am__v_GEN_1 =
145AM_V_at = $(am__v_at_@AM_V@)
146am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
147am__v_at_0 = @
148am__v_at_1 =
149DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
150depcomp = $(SHELL) $(top_srcdir)/depcomp
151am__depfiles_maybe = depfiles
152am__mv = mv -f
153COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
154 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
155LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
156 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
157 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
158 $(AM_CFLAGS) $(CFLAGS)
159AM_V_CC = $(am__v_CC_@AM_V@)
160am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
161am__v_CC_0 = @echo " CC " $@;
162am__v_CC_1 =
163CCLD = $(CC)
164LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
165 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
166 $(AM_LDFLAGS) $(LDFLAGS) -o $@
167AM_V_CCLD = $(am__v_CCLD_@AM_V@)
168am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
169am__v_CCLD_0 = @echo " CCLD " $@;
170am__v_CCLD_1 =
171SOURCES = $(test_la_SOURCES)
172DIST_SOURCES = $(test_la_SOURCES)
173am__can_run_installinfo = \
174 case $$AM_UPDATE_INFO_DIR in \
175 n|no|NO) false;; \
176 *) (install-info --version) >/dev/null 2>&1;; \
177 esac
178am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
179# Read a list of newline-separated strings from the standard input,
180# and print each of them once, without duplicates. Input order is
181# *not* preserved.
182am__uniquify_input = $(AWK) '\
183 BEGIN { nonempty = 0; } \
184 { items[$$0] = 1; nonempty = 1; } \
185 END { if (nonempty) { for (i in items) print i; }; } \
186'
187# Make sure the list of sources is unique. This is necessary because,
188# e.g., the same source file might be shared among _SOURCES variables
189# for different programs/libraries.
190am__define_uniq_tagged_files = \
191 list='$(am__tagged_files)'; \
192 unique=`for i in $$list; do \
193 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
194 done | $(am__uniquify_input)`
195ETAGS = etags
196CTAGS = ctags
197DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
198ACLOCAL = @ACLOCAL@
199ALLOCA = @ALLOCA@
200AMTAR = @AMTAR@
201AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
202AR = @AR@
203AUTOCONF = @AUTOCONF@
204AUTOHEADER = @AUTOHEADER@
205AUTOMAKE = @AUTOMAKE@
206AWK = @AWK@
207BUILD_REVISION = @BUILD_REVISION@
208CATALOGS = @CATALOGS@
209CATOBJEXT = @CATOBJEXT@
210CC = @CC@
211CCDEPMODE = @CCDEPMODE@
212CFLAGS = @CFLAGS@
213CPP = @CPP@
214CPPFLAGS = @CPPFLAGS@
215CYGPATH_W = @CYGPATH_W@
216DATADIRNAME = @DATADIRNAME@
217DEFS = @DEFS@
218DEPDIR = @DEPDIR@
219DEVEL_VERSION = @DEVEL_VERSION@
220DLLTOOL = @DLLTOOL@
221DSYMUTIL = @DSYMUTIL@
222DUMPBIN = @DUMPBIN@
223ECHO_C = @ECHO_C@
224ECHO_N = @ECHO_N@
225ECHO_T = @ECHO_T@
226EGREP = @EGREP@
227EXEEXT = @EXEEXT@
228EXTRA_VERSION = @EXTRA_VERSION@
229FGREP = @FGREP@
230GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
231GLIB_CFLAGS = @GLIB_CFLAGS@
232GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@
233GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
234GLIB_LIBS = @GLIB_LIBS@
235GLIB_MKENUMS = @GLIB_MKENUMS@
236GMOFILES = @GMOFILES@
237GMSGFMT = @GMSGFMT@
238GOBJECT_QUERY = @GOBJECT_QUERY@
239GPGME_CFLAGS = @GPGME_CFLAGS@
240GPGME_CONFIG = @GPGME_CONFIG@
241GPGME_LIBS = @GPGME_LIBS@
242GREP = @GREP@
243GTK_CFLAGS = @GTK_CFLAGS@
244GTK_LIBS = @GTK_LIBS@
245INSTALL = @INSTALL@
246INSTALL_DATA = @INSTALL_DATA@
247INSTALL_PROGRAM = @INSTALL_PROGRAM@
248INSTALL_SCRIPT = @INSTALL_SCRIPT@
249INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
250INSTOBJEXT = @INSTOBJEXT@
251INTLLIBS = @INTLLIBS@
252LD = @LD@
253LDAP_LIBS = @LDAP_LIBS@
254LDFLAGS = @LDFLAGS@
255LEX = @LEX@
256LEXLIB = @LEXLIB@
257LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
258LIBICONV = @LIBICONV@
259LIBOBJS = @LIBOBJS@
260LIBS = @LIBS@
261LIBSYLPH_CFLAGS = @LIBSYLPH_CFLAGS@
262LIBSYLPH_LIBS = @LIBSYLPH_LIBS@
263LIBTOOL = @LIBTOOL@
264LIPO = @LIPO@
265LN_S = @LN_S@
266LTLIBICONV = @LTLIBICONV@
267LTLIBOBJS = @LTLIBOBJS@
268LT_AGE = @LT_AGE@
269LT_CURRENT = @LT_CURRENT@
270LT_RELEASE = @LT_RELEASE@
271LT_REVISION = @LT_REVISION@
272MAINT = @MAINT@
273MAJOR_VERSION = @MAJOR_VERSION@
274MAKEINFO = @MAKEINFO@
275MANIFEST_TOOL = @MANIFEST_TOOL@
276MICRO_VERSION = @MICRO_VERSION@
277MINOR_VERSION = @MINOR_VERSION@
278MKDIR_P = @MKDIR_P@
279MKINSTALLDIRS = @MKINSTALLDIRS@
280MSGFMT = @MSGFMT@
281MSGFMT_OPTS = @MSGFMT_OPTS@
282NM = @NM@
283NMEDIT = @NMEDIT@
284OBJDUMP = @OBJDUMP@
285OBJEXT = @OBJEXT@
286OPENSSL_CFLAGS = @OPENSSL_CFLAGS@
287OPENSSL_LIBS = @OPENSSL_LIBS@
288OTOOL = @OTOOL@
289OTOOL64 = @OTOOL64@
290PACKAGE = @PACKAGE@
291PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
292PACKAGE_NAME = @PACKAGE_NAME@
293PACKAGE_STRING = @PACKAGE_STRING@
294PACKAGE_TARNAME = @PACKAGE_TARNAME@
295PACKAGE_URL = @PACKAGE_URL@
296PACKAGE_VERSION = @PACKAGE_VERSION@
297PATH_SEPARATOR = @PATH_SEPARATOR@
298PKG_CONFIG = @PKG_CONFIG@
299PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
300PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
301POFILES = @POFILES@
302POSUB = @POSUB@
303PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
304PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
305RANLIB = @RANLIB@
306SED = @SED@
307SET_MAKE = @SET_MAKE@
308SHELL = @SHELL@
309STRIP = @STRIP@
310SYLPHEED_LIBS = @SYLPHEED_LIBS@
311USE_NLS = @USE_NLS@
312VERSION = @VERSION@
313WINDRES = @WINDRES@
314XGETTEXT = @XGETTEXT@
315YACC = @YACC@
316YFLAGS = @YFLAGS@
317abs_builddir = @abs_builddir@
318abs_srcdir = @abs_srcdir@
319abs_top_builddir = @abs_top_builddir@
320abs_top_srcdir = @abs_top_srcdir@
321ac_ct_AR = @ac_ct_AR@
322ac_ct_CC = @ac_ct_CC@
323ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
324am__include = @am__include@
325am__leading_dot = @am__leading_dot@
326am__quote = @am__quote@
327am__tar = @am__tar@
328am__untar = @am__untar@
329bindir = @bindir@
330build = @build@
331build_alias = @build_alias@
332build_cpu = @build_cpu@
333build_os = @build_os@
334build_vendor = @build_vendor@
335builddir = @builddir@
336datadir = @datadir@
337datarootdir = @datarootdir@
338docdir = @docdir@
339dvidir = @dvidir@
340exec_prefix = @exec_prefix@
341faqdir = @faqdir@
342host = @host@
343host_alias = @host_alias@
344host_cpu = @host_cpu@
345host_os = @host_os@
346host_vendor = @host_vendor@
347htmldir = @htmldir@
348includedir = @includedir@
349infodir = @infodir@
350install_sh = @install_sh@
351libdir = $(plugindir)
352libexecdir = @libexecdir@
353localedir = @localedir@
354localstatedir = @localstatedir@
355mandir = @mandir@
356manualdir = @manualdir@
357mkdir_p = @mkdir_p@
358oldincludedir = @oldincludedir@
359pdfdir = @pdfdir@
360plugindir = @plugindir@
361prefix = @prefix@
362program_transform_name = @program_transform_name@
363psdir = @psdir@
364sbindir = @sbindir@
365sharedstatedir = @sharedstatedir@
366srcdir = @srcdir@
367sysconfdir = @sysconfdir@
368target = @target@
369target_alias = @target_alias@
370target_cpu = @target_cpu@
371target_os = @target_os@
372target_vendor = @target_vendor@
373themedir = @themedir@
374top_build_prefix = @top_build_prefix@
375top_builddir = @top_builddir@
376top_srcdir = @top_srcdir@
377lib_LTLIBRARIES = test.la
378test_la_SOURCES = test.c test.h
379test_la_LDFLAGS = -module -no-undefined -avoid-version
380INCLUDES = \
381 -I$(top_srcdir) \
382 -I$(top_srcdir)/libsylph \
383 -I$(top_srcdir)/src \
384 $(GTK_CFLAGS)
385
386test_la_LIBADD = \
387 $(GTK_LIBS) \
388 $(top_builddir)/src/libsylpheed-plugin-0.la \
389 $(top_builddir)/libsylph/libsylph-0.la
390
391all: all-am
392
393.SUFFIXES:
394.SUFFIXES: .c .lo .o .obj
395$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
396 @for dep in $?; do \
397 case '$(am__configure_deps)' in \
398 *$$dep*) \
399 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
400 && { if test -f $@; then exit 0; else break; fi; }; \
401 exit 1;; \
402 esac; \
403 done; \
404 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign plugin/test/Makefile'; \
405 $(am__cd) $(top_srcdir) && \
406 $(AUTOMAKE) --foreign plugin/test/Makefile
407.PRECIOUS: Makefile
408Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
409 @case '$?' in \
410 *config.status*) \
411 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
412 *) \
413 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
414 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
415 esac;
416
417$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
418 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
419
420$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
421 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
422$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
423 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
424$(am__aclocal_m4_deps):
425
426install-libLTLIBRARIES: $(lib_LTLIBRARIES)
427 @$(NORMAL_INSTALL)
428 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
429 list2=; for p in $$list; do \
430 if test -f $$p; then \
431 list2="$$list2 $$p"; \
432 else :; fi; \
433 done; \
434 test -z "$$list2" || { \
435 echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
436 $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
437 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
438 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
439 }
440
441uninstall-libLTLIBRARIES:
442 @$(NORMAL_UNINSTALL)
443 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
444 for p in $$list; do \
445 $(am__strip_dir) \
446 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
447 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
448 done
449
450clean-libLTLIBRARIES:
451 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
452 @list='$(lib_LTLIBRARIES)'; \
453 locs=`for p in $$list; do echo $$p; done | \
454 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
455 sort -u`; \
456 test -z "$$locs" || { \
457 echo rm -f $${locs}; \
458 rm -f $${locs}; \
459 }
460
461test.la: $(test_la_OBJECTS) $(test_la_DEPENDENCIES) $(EXTRA_test_la_DEPENDENCIES)
462 $(AM_V_CCLD)$(test_la_LINK) -rpath $(libdir) $(test_la_OBJECTS) $(test_la_LIBADD) $(LIBS)
463
464mostlyclean-compile:
465 -rm -f *.$(OBJEXT)
466
467distclean-compile:
468 -rm -f *.tab.c
469
470@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test.Plo@am__quote@
471
472.c.o:
473@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
474@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
475@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
476@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
477@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
478
479.c.obj:
480@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
481@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
482@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
483@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
484@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
485
486.c.lo:
487@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
488@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
489@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
490@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
491@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
492
493mostlyclean-libtool:
494 -rm -f *.lo
495
496clean-libtool:
497 -rm -rf .libs _libs
498
499ID: $(am__tagged_files)
500 $(am__define_uniq_tagged_files); mkid -fID $$unique
501tags: tags-am
502TAGS: tags
503
504tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
505 set x; \
506 here=`pwd`; \
507 $(am__define_uniq_tagged_files); \
508 shift; \
509 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
510 test -n "$$unique" || unique=$$empty_fix; \
511 if test $$# -gt 0; then \
512 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
513 "$$@" $$unique; \
514 else \
515 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
516 $$unique; \
517 fi; \
518 fi
519ctags: ctags-am
520
521CTAGS: ctags
522ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
523 $(am__define_uniq_tagged_files); \
524 test -z "$(CTAGS_ARGS)$$unique" \
525 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
526 $$unique
527
528GTAGS:
529 here=`$(am__cd) $(top_builddir) && pwd` \
530 && $(am__cd) $(top_srcdir) \
531 && gtags -i $(GTAGS_ARGS) "$$here"
532cscopelist: cscopelist-am
533
534cscopelist-am: $(am__tagged_files)
535 list='$(am__tagged_files)'; \
536 case "$(srcdir)" in \
537 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
538 *) sdir=$(subdir)/$(srcdir) ;; \
539 esac; \
540 for i in $$list; do \
541 if test -f "$$i"; then \
542 echo "$(subdir)/$$i"; \
543 else \
544 echo "$$sdir/$$i"; \
545 fi; \
546 done >> $(top_builddir)/cscope.files
547
548distclean-tags:
549 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
550
551distdir: $(DISTFILES)
552 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
553 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
554 list='$(DISTFILES)'; \
555 dist_files=`for file in $$list; do echo $$file; done | \
556 sed -e "s|^$$srcdirstrip/||;t" \
557 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
558 case $$dist_files in \
559 */*) $(MKDIR_P) `echo "$$dist_files" | \
560 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
561 sort -u` ;; \
562 esac; \
563 for file in $$dist_files; do \
564 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
565 if test -d $$d/$$file; then \
566 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
567 if test -d "$(distdir)/$$file"; then \
568 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
569 fi; \
570 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
571 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
572 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
573 fi; \
574 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
575 else \
576 test -f "$(distdir)/$$file" \
577 || cp -p $$d/$$file "$(distdir)/$$file" \
578 || exit 1; \
579 fi; \
580 done
581check-am: all-am
582check: check-am
583all-am: Makefile $(LTLIBRARIES)
584installdirs:
585 for dir in "$(DESTDIR)$(libdir)"; do \
586 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
587 done
588install-exec: install-exec-am
589install-data: install-data-am
590uninstall: uninstall-am
591
592install-am: all-am
593 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
594
595installcheck: installcheck-am
596install-strip:
597 if test -z '$(STRIP)'; then \
598 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
599 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
600 install; \
601 else \
602 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
603 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
604 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
605 fi
606mostlyclean-generic:
607
608clean-generic:
609
610distclean-generic:
611 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
612 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
613
614maintainer-clean-generic:
615 @echo "This command is intended for maintainers to use"
616 @echo "it deletes files that may require special tools to rebuild."
617clean: clean-am
618
619clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
620 mostlyclean-am
621
622distclean: distclean-am
623 -rm -rf ./$(DEPDIR)
624 -rm -f Makefile
625distclean-am: clean-am distclean-compile distclean-generic \
626 distclean-tags
627
628dvi: dvi-am
629
630dvi-am:
631
632html: html-am
633
634html-am:
635
636info: info-am
637
638info-am:
639
640install-data-am:
641
642install-dvi: install-dvi-am
643
644install-dvi-am:
645
646install-exec-am: install-libLTLIBRARIES
647
648install-html: install-html-am
649
650install-html-am:
651
652install-info: install-info-am
653
654install-info-am:
655
656install-man:
657
658install-pdf: install-pdf-am
659
660install-pdf-am:
661
662install-ps: install-ps-am
663
664install-ps-am:
665
666installcheck-am:
667
668maintainer-clean: maintainer-clean-am
669 -rm -rf ./$(DEPDIR)
670 -rm -f Makefile
671maintainer-clean-am: distclean-am maintainer-clean-generic
672
673mostlyclean: mostlyclean-am
674
675mostlyclean-am: mostlyclean-compile mostlyclean-generic \
676 mostlyclean-libtool
677
678pdf: pdf-am
679
680pdf-am:
681
682ps: ps-am
683
684ps-am:
685
686uninstall-am: uninstall-libLTLIBRARIES
687
688.MAKE: install-am install-strip
689
690.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
691 clean-libLTLIBRARIES clean-libtool cscopelist-am ctags \
692 ctags-am distclean distclean-compile distclean-generic \
693 distclean-libtool distclean-tags distdir dvi dvi-am html \
694 html-am info info-am install install-am install-data \
695 install-data-am install-dvi install-dvi-am install-exec \
696 install-exec-am install-html install-html-am install-info \
697 install-info-am install-libLTLIBRARIES install-man install-pdf \
698 install-pdf-am install-ps install-ps-am install-strip \
699 installcheck installcheck-am installdirs maintainer-clean \
700 maintainer-clean-generic mostlyclean mostlyclean-compile \
701 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
702 tags tags-am uninstall uninstall-am uninstall-libLTLIBRARIES
703
704
705install:
706install-plugin: install-am
707
708# Tell versions [3.59,3.63) of GNU make to not export all variables.
709# Otherwise a system limit (for SysV at least) may be exceeded.
710.NOEXPORT:
diff --git a/plugin/test/README b/plugin/test/README
new file mode 100644
index 0000000..3ba9451
--- /dev/null
+++ b/plugin/test/README
@@ -0,0 +1,4 @@
1This is a test plugin for Sylpheed plug-in system.
2
3This plugin will not be installed by 'make install'.
4To install this test plugin, use 'make install-plugin'.
diff --git a/plugin/test/test.c b/plugin/test/test.c
new file mode 100644
index 0000000..3276f7a
--- /dev/null
+++ b/plugin/test/test.c
@@ -0,0 +1,306 @@
1/*
2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2013 Hiroyuki Yamamoto
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 */
19
20#include <glib.h>
21#include <gtk/gtk.h>
22
23#include "sylmain.h"
24#include "plugin.h"
25#include "test.h"
26#include "folder.h"
27#include "procmsg.h"
28
29static SylPluginInfo info = {
30 "Test Plugin",
31 "3.4.0",
32 "Hiroyuki Yamamoto",
33 "Test plug-in for Sylpheed plug-in system"
34};
35
36static void init_done_cb(GObject *obj, gpointer data);
37static void app_exit_cb(GObject *obj, gpointer data);
38
39static void folderview_menu_popup_cb(GObject *obj, GtkItemFactory *ifactory,
40 gpointer data);
41static void summaryview_menu_popup_cb(GObject *obj, GtkItemFactory *ifactory,
42 gpointer data);
43
44static void textview_menu_popup_cb(GObject *obj, GtkMenu *menu,
45 GtkTextView *textview,
46 const gchar *uri,
47 const gchar *selected_text,
48 MsgInfo *msginfo);
49
50static void menu_selected_cb(void);
51
52static void compose_created_cb(GObject *obj, gpointer compose);
53static void compose_destroy_cb(GObject *obj, gpointer compose);
54static gboolean compose_send_cb(GObject *obj, gpointer compose,
55 gint compose_mode, gint send_mode,
56 const gchar *msg_file, GSList *to_list);
57static void messageview_show_cb(GObject *obj, gpointer msgview,
58 MsgInfo *msginfo, gboolean all_headers);
59static void inc_start_cb(GObject *obj, PrefsAccount *ac);
60static void inc_finished_cb(GObject *obj, gint new_messages);
61
62static void create_window(void);
63static void create_folderview_sub_widget(void);
64
65static gulong test_app_exit_handler_id = 0;
66
67void plugin_load(void)
68{
69 GList *list, *cur;
70 const gchar *ver;
71 gpointer mainwin;
72
73 g_print("test plug-in loaded!\n");
74
75 list = folder_get_list();
76 g_print("folder list = %p\n", list);
77 for (cur = list; cur != NULL; cur = cur->next) {
78 Folder *folder = FOLDER(cur->data);
79 gchar *id = folder_get_identifier(folder);
80 g_print("folder id = %s\n", id);
81 }
82
83 ver = syl_plugin_get_prog_version();
84 g_print("program ver: %s\n", ver);
85
86 mainwin = syl_plugin_main_window_get();
87 g_print("mainwin: %p\n", mainwin);
88 syl_plugin_main_window_popup(mainwin);
89
90 create_folderview_sub_widget();
91
92 syl_plugin_add_menuitem("/Tools", NULL, NULL, NULL);
93 syl_plugin_add_menuitem("/Tools", "Plugin test", create_window, NULL);
94
95 g_signal_connect_after(syl_app_get(), "init-done", G_CALLBACK(init_done_cb),
96 NULL);
97 test_app_exit_handler_id =
98 g_signal_connect(syl_app_get(), "app-exit", G_CALLBACK(app_exit_cb),
99 NULL);
100 syl_plugin_signal_connect("folderview-menu-popup",
101 G_CALLBACK(folderview_menu_popup_cb), NULL);
102 syl_plugin_signal_connect("summaryview-menu-popup",
103 G_CALLBACK(summaryview_menu_popup_cb), NULL);
104 syl_plugin_signal_connect("textview-menu-popup",
105 G_CALLBACK(textview_menu_popup_cb), NULL);
106 syl_plugin_signal_connect("compose-created",
107 G_CALLBACK(compose_created_cb), NULL);
108 syl_plugin_signal_connect("compose-destroy",
109 G_CALLBACK(compose_destroy_cb), NULL);
110 syl_plugin_signal_connect("compose-send",
111 G_CALLBACK(compose_send_cb), NULL);
112 syl_plugin_signal_connect("messageview-show",
113 G_CALLBACK(messageview_show_cb), NULL);
114 syl_plugin_signal_connect("inc-mail-start",
115 G_CALLBACK(inc_start_cb), NULL);
116 syl_plugin_signal_connect("inc-mail-finished",
117 G_CALLBACK(inc_finished_cb), NULL);
118
119 syl_plugin_add_factory_item("<SummaryView>", "/---", NULL, NULL);
120 syl_plugin_add_factory_item("<SummaryView>", "/Test Plug-in menu",
121 menu_selected_cb, NULL);
122
123 g_print("test plug-in loading done\n");
124}
125
126void plugin_unload(void)
127{
128 g_print("test plug-in unloaded!\n");
129 g_signal_handler_disconnect(syl_app_get(), test_app_exit_handler_id);
130}
131
132SylPluginInfo *plugin_info(void)
133{
134 return &info;
135}
136
137gint plugin_interface_version(void)
138{
139 return SYL_PLUGIN_INTERFACE_VERSION;
140}
141
142static void init_done_cb(GObject *obj, gpointer data)
143{
144 syl_plugin_update_check_set_check_url("http://localhost/version_pro.txt?");
145 syl_plugin_update_check_set_download_url("http://localhost/download.php?sno=123&ver=VER&os=win");
146 syl_plugin_update_check_set_jump_url("http://localhost/index.html");
147 syl_plugin_update_check_set_check_plugin_url("http://localhost/plugin_version.txt");
148 syl_plugin_update_check_set_jump_plugin_url("http://localhost/plugin.html");
149
150 syl_plugin_notification_window_open("Sylpheed app init done", "Normal text\n<b>Bold</b>\n<s>Strikethrough</s>\n<b>This is a long text and will be truncated:</b> ABCDEFGHIJKLMNOPQRSTUVWXYZ", 5);
151
152 g_print("test: %p: app init done\n", obj);
153}
154
155static void app_exit_cb(GObject *obj, gpointer data)
156{
157 g_print("test: %p: app will exit\n", obj);
158}
159
160static void folderview_menu_popup_cb(GObject *obj, GtkItemFactory *ifactory,
161 gpointer data)
162{
163 g_print("test: %p: folderview menu popup\n", obj);
164}
165
166static void summaryview_menu_popup_cb(GObject *obj, GtkItemFactory *ifactory,
167 gpointer data)
168{
169 GtkWidget *widget;
170
171 g_print("test: %p: summaryview menu popup\n", obj);
172 widget = gtk_item_factory_get_item(ifactory, "/Test Plug-in menu");
173 if (widget)
174 gtk_widget_set_sensitive(widget, TRUE);
175}
176
177static void activate_menu_cb(GtkMenuItem *menuitem, gpointer data)
178{
179 g_print("menu activated\n");
180}
181
182static void textview_menu_popup_cb(GObject *obj, GtkMenu *menu,
183 GtkTextView *textview,
184 const gchar *uri,
185 const gchar *selected_text,
186 MsgInfo *msginfo)
187{
188 GtkWidget *separator, *menuitem;
189
190 g_print("test: %p: textview menu popup\n", obj);
191 g_print("test: %p: uri: %s, text: %s\n", obj, uri ? uri : "(none)",
192 selected_text ? selected_text : "(none)");
193 g_print("test: %p: msg: %s\n", obj,
194 msginfo && msginfo->subject ? msginfo->subject : "");
195
196 separator = gtk_separator_menu_item_new();
197 gtk_menu_shell_append(GTK_MENU_SHELL(menu), separator);
198 gtk_widget_show(separator);
199
200 menuitem = gtk_menu_item_new_with_mnemonic("Test menu");
201 g_signal_connect(menuitem, "activate", G_CALLBACK(activate_menu_cb), NULL);
202 gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
203 gtk_widget_show(menuitem);
204}
205
206static void menu_selected_cb(void)
207{
208 gint sel;
209 GSList *mlist;
210
211 g_print("test: summary menu selected\n");
212 sel = syl_plugin_summary_get_selection_type();
213 mlist = syl_plugin_summary_get_selected_msg_list();
214 g_print("test: selection type: %d\n", sel);
215 g_print("test: number of selected summary message: %d\n",
216 g_slist_length(mlist));
217 g_slist_free(mlist);
218}
219
220static void compose_created_cb(GObject *obj, gpointer compose)
221{
222 gchar *text;
223
224 g_print("test: %p: compose created (%p)\n", obj, compose);
225
226 text = syl_plugin_compose_entry_get_text(compose, 0);
227 g_print("test: compose To: %s\n", text);
228 g_free(text);
229#if 0
230 syl_plugin_compose_entry_set(compose, "test-plugin@test", 1);
231 syl_plugin_compose_entry_append(compose, "second@test", 1);
232#endif
233}
234
235static void compose_destroy_cb(GObject *obj, gpointer compose)
236{
237 g_print("test: %p: compose will be destroyed (%p)\n", obj, compose);
238}
239
240static gboolean compose_send_cb(GObject *obj, gpointer compose,
241 gint compose_mode, gint send_mode,
242 const gchar *msg_file, GSList *to_list)
243{
244 g_print("test: %p: composed message will be sent (%p)\n", obj, compose);
245 g_print("test: compose_mode: %d, send_mode: %d, file: %s\n",
246 compose_mode, send_mode, msg_file);
247
248 return FALSE; /* return TRUE to cancel sending */
249}
250
251static void messageview_show_cb(GObject *obj, gpointer msgview,
252 MsgInfo *msginfo, gboolean all_headers)
253{
254 g_print("test: %p: messageview_show (%p), all_headers: %d: %s\n",
255 obj, msgview, all_headers,
256 msginfo && msginfo->subject ? msginfo->subject : "");
257}
258
259static void inc_start_cb(GObject *obj, PrefsAccount *ac)
260{
261 if (ac)
262 g_print("test: receive start: account: %s\n", ac->account_name);
263 else
264 g_print("test: receive start: all accounts\n");
265}
266
267static void inc_finished_cb(GObject *obj, gint new_messages)
268{
269 g_print("test: received %d new messages\n", new_messages);
270}
271
272static void button_clicked(GtkWidget *widget, gpointer data)
273{
274 g_print("button_clicked\n");
275 /* syl_plugin_app_will_exit(TRUE); */
276}
277
278static void create_window(void)
279{
280 GtkWidget *window;
281 GtkWidget *button;
282
283 g_print("creating window\n");
284
285 window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
286 button = gtk_button_new_with_label("Click this button");
287 gtk_window_set_default_size(GTK_WINDOW(window), 400, 200);
288 gtk_container_add(GTK_CONTAINER(window), button);
289 g_signal_connect(G_OBJECT(button), "clicked",
290 G_CALLBACK(button_clicked), NULL);
291 gtk_widget_show_all(window);
292}
293
294static void create_folderview_sub_widget(void)
295{
296 GtkWidget *vbox;
297 GtkWidget *button;
298
299 g_print("creating sub widget\n");
300
301 vbox = gtk_vbox_new(FALSE, 2);
302 button = gtk_button_new_with_label("Test");
303 gtk_box_pack_start(GTK_BOX(vbox), button, FALSE, FALSE, 0);
304 gtk_widget_show_all(vbox);
305 syl_plugin_folderview_add_sub_widget(vbox);
306}
diff --git a/plugin/test/test.h b/plugin/test/test.h
new file mode 100644
index 0000000..253c915
--- /dev/null
+++ b/plugin/test/test.h
@@ -0,0 +1,23 @@
1/*
2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2011 Hiroyuki Yamamoto
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 */
19
20#ifndef __TEST_H__
21#define __TEST_H__
22
23#endif /* __TEST_H__ */