Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added plugin keyrecord #460

Merged
merged 3 commits into from Apr 30, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions MAINTAINERS
Expand Up @@ -167,6 +167,12 @@ M: Colomban Wendling <ban@herbesfolles.org>
W: http://plugins.geany.org/git-changebar.html
S: Maintained

keyrecord
P: Artur Riazanov <tunyash@gmail.com>
M: Artur Ryazanov <tunyash@gmail.com>
W:
S: Maintained

lineoperations
P: Sylvan Mostert <smostert.dev@gmail.com>
M: Sylvan Mostert <smostert.dev@gmail.com>
Expand Down
4 changes: 4 additions & 0 deletions Makefile.am
Expand Up @@ -104,6 +104,10 @@ if ENABLE_GITCHANGEBAR
SUBDIRS += git-changebar
endif

if ENABLE_KEYRECORD
SUBDIRS += keyrecord
endif

if ENABLE_LINEOPERATIONS
SUBDIRS += lineoperations
endif
Expand Down
9 changes: 9 additions & 0 deletions build/keyrecord.m4
@@ -0,0 +1,9 @@
AC_DEFUN([GP_CHECK_KEYRECORD],
[
GP_ARG_DISABLE([keyrecord], [auto])
GP_COMMIT_PLUGIN_STATUS([keyrecord])
AC_CONFIG_FILES([
keyrecord/Makefile
keyrecord/src/Makefile
])
])
1 change: 1 addition & 0 deletions configure.ac
Expand Up @@ -54,6 +54,7 @@ GP_CHECK_GEANYVC
GP_CHECK_GEANYPG
GP_CHECK_GENIUSPASTE
GP_CHECK_GITCHANGEBAR
GP_CHECK_KEYRECORD
GP_CHECK_LINEOPERATIONS
GP_CHECK_MARKDOWN
GP_CHECK_MULTITERM
Expand Down
10 changes: 5 additions & 5 deletions keyrecord/src/Makefile.am
@@ -1,10 +1,10 @@
include $(top_srcdir)/build/vars.build.mk
plugin = autoclose
plugin = keyrecord

geanyplugins_LTLIBRARIES = autoclose.la
geanyplugins_LTLIBRARIES = keyrecord.la

autoclose_la_SOURCES = autoclose.c
autoclose_la_CPPFLAGS = $(AM_CPPFLAGS) -DG_LOG_DOMAIN=\"AutoClose\"
autoclose_la_LIBADD = $(COMMONLIBS)
keyrecord_la_SOURCES = keyrecord.c
keyrecord_la_CPPFLAGS = $(AM_CPPFLAGS)
keyrecord_la_LIBADD = $(COMMONLIBS)

include $(top_srcdir)/build/cppcheck.mk
6 changes: 3 additions & 3 deletions keyrecord/src/keyrecord.c
Expand Up @@ -69,7 +69,7 @@ static gboolean
on_key_press(GtkWidget *widget, GdkEventKey *event, gpointer data)
{
cur_widget = widget;
GeanyDocument* doc = (GeanyDocument*)data;
//GeanyDocument* doc = (GeanyDocument*)data;
guint i;
GdkEventKey** tmp = NULL;

Expand Down Expand Up @@ -188,7 +188,7 @@ static gboolean keyrecord_init(GeanyPlugin *plugin, gpointer data)
/* Called by Geany before unloading the plugin.
* Here any UI changes should be removed, memory freed and any other finalization done.
* Be sure to leave Geany as it was before demo_init(). */
static void keyrecord_cleanup(GeanyPlugin *plugin, gpointer data)
static void keyrecord_cleanup(GeanyPlugin *plugin, gpointer _data)
{
GeanyData* geany_data = plugin->geany_data;
guint i;
Expand All @@ -214,7 +214,7 @@ void geany_load_module(GeanyPlugin *plugin)
main_locale_init(LOCALEDIR, GETTEXT_PACKAGE);
plugin->info->name = _("Keystrokes recorder");
plugin->info->description = _("Allows to record some sequence of keystrokes and replay it");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs adding files to po/POTFILES.in

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, thank you.

plugin->info->version = "0.1";
plugin->info->version = "0.11";
plugin->info->author = _("tunyash");

plugin->funcs->init = keyrecord_init;
Expand Down
3 changes: 3 additions & 0 deletions po/POTFILES.in
Expand Up @@ -218,6 +218,9 @@ geniuspaste/src/geniuspaste.c
[type: gettext/glade]git-changebar/data/prefs.ui
git-changebar/src/gcb-plugin.c

# Keyrecord
keyrecord/src/keyrecord.c

# LineOperations
lineoperations/src/lineoperations.c

Expand Down