Skip to content

Commit

Permalink
[gvt-help-plugin] Add initial help plugin (vala port of devhelp plugin)
Browse files Browse the repository at this point in the history
  • Loading branch information
gandalfn committed Jul 1, 2012
1 parent 0b61ed0 commit 27b49a9
Show file tree
Hide file tree
Showing 49 changed files with 10,955 additions and 3 deletions.
9 changes: 8 additions & 1 deletion configure.ac
Expand Up @@ -28,7 +28,10 @@ dnl ****************************************************************************
GTK_REQUIRED=2.24.0
LIBXML2_REQUIRED=2.7.8
VALA_REQUIRED=0.14.0
WEBKIT_REQUIRED=1.8.1
LIBWNCK_REQUIRED=2.30.0
GEANY_REQUIRED=1.22
GCONF2_REQUIRED=2.30.0

dnl ****************************************************************************
dnl Check for vala
Expand All @@ -49,7 +52,10 @@ dnl ****************************************************************************
dnl Check for packages
dnl ****************************************************************************
PKG_CHECK_MODULES(GEANY_VALA_TOYS, [gtk+-2.0 >= $GTK_REQUIRED
webkit-1.0 >= $WEBKIT_REQUIRED
libwnck-1.0 >= $LIBWNCK_REQUIRED
libxml-2.0 >= $LIBXML2_REQUIRED
gconf-2.0 >= $GCONF2_REQUIRED
geany >= $GEANY_REQUIRED])
AC_SUBST(GEANY_VALA_TOYS_CFLAGS)
AC_SUBST(GEANY_VALA_TOYS_LIBS)
Expand All @@ -67,9 +73,10 @@ Makefile
plugins/Makefile
plugins/dock/Makefile
plugins/dock/gdl/Makefile
plugins/help/Makefile
plugins/help/devhelp/Makefile
plugins/prj/Makefile
po/Makefile.in
])

AC_OUTPUT

2 changes: 1 addition & 1 deletion plugins/Makefile.am
@@ -1 +1 @@
SUBDIRS = dock prj
SUBDIRS = dock prj help
3 changes: 3 additions & 0 deletions plugins/dock/dock-plugin.vala
Expand Up @@ -330,6 +330,7 @@ public class GVT.DockPlugin : GLib.Object
int num = notebook.page_num (m_DocumentDock);
if (num != notebook.get_current_page ())
{
debug("activate editor");
notebook.set_current_page (num);
}
}
Expand Down Expand Up @@ -789,6 +790,8 @@ plugin_set_info (Geany.Plugin.Info inInfo)
public void
plugin_init (Geany.Data inData)
{
geany_plugin.module_make_resident ();

// Delay creation to let geany original creation terminate before
// relayout it
if (s_IdCreate == 0)
Expand Down
27 changes: 27 additions & 0 deletions plugins/help/Makefile.am
@@ -0,0 +1,27 @@
SUBDIRS = devhelp

include $(top_srcdir)/build/plugins.am

INCLUDES += \
-I${top_srcdir}/plugins/help/devhelp

plugins_LTLIBRARIES = libgvt-help-plugin.la

libgvt_help_plugin_la_VALAFLAGS = \
--vapidir=${top_srcdir}/plugins/help/devhelp \
--pkg=libdevhelp-2.0

libgvt_help_plugin_la_SOURCES = \
help-plugin.vala \
devhelp.vala

libgvt_help_plugin_la_LIBADD = \
$(GEANY_VALA_TOYS_LIBS) \
devhelp/libdevhelp-2.la

VALAFILES = \
$(filter %.vala,$(libgvt_help_plugin_la_SOURCES))

CLEANFILES += \
libgvt_help_plugin_la_vala.stamp \
$(VALAFILES:.vala=.c)

0 comments on commit 27b49a9

Please sign in to comment.