Permalink
Browse files

geanyinsertnum PLUGIN_KEY_GROUP() -> plugin_set_key_group()

  • Loading branch information...
1 parent d4d997b commit d16f94335daba5a1668eee9301b58c0190daaddc @zhekov zhekov committed Jun 2, 2014
Showing with 4 additions and 3 deletions.
  1. +4 −3 geanyinsertnum/src/insertnum.c
@@ -42,7 +42,7 @@ GeanyFunctions *geany_functions;
PLUGIN_VERSION_CHECK(189)
PLUGIN_SET_INFO(_("Insert Numbers"), _("Insert/Fill columns with numbers."),
- "0.2.1", "Dimitar Toshkov Zhekov <dimitar.zhekov@gmail.com>")
+ "0.2.2", "Dimitar Toshkov Zhekov <dimitar.zhekov@gmail.com>")
/* Keybinding(s) */
enum
@@ -51,8 +51,6 @@ enum
COUNT_KB
};
-PLUGIN_KEY_GROUP(insert_numbers, COUNT_KB)
-
/* when altering the RANGE_ or MAX_LINES, make sure that RANGE_ * MAX_LINES
fit in gint64, and that RANGE_LEN is enough for RANGE_ digits and sign */
#define RANGE_MIN (-2147483647 - 1)
@@ -468,7 +466,10 @@ static void on_tools_show(G_GNUC_UNUSED GtkMenuItem *menuitem, G_GNUC_UNUSED gpo
void plugin_init(G_GNUC_UNUSED GeanyData *data)
{
+ GeanyKeyGroup *plugin_key_group;
+
main_locale_init(LOCALEDIR, GETTEXT_PACKAGE);
+ plugin_key_group = plugin_set_key_group(geany_plugin, "insert_numbers", COUNT_KB, NULL);
start_value = 1;
step_value = 1;

0 comments on commit d16f943

Please sign in to comment.