Branch: refs/heads/master Author: Sylvan Mostert smostert.dev@gmail.com Committer: Sylvan Mostert smostert.dev@gmail.com Date: Sun, 17 Jan 2016 04:09:22 UTC Commit: 5cd5c4ce13e4b9858dfd97d02f6181335dbb8ac4 https://github.com/geany/geany-plugins/commit/5cd5c4ce13e4b9858dfd97d02f6181...
Log Message: ----------- lineoperations: add translatable plugin info
Added 'static' keyword for `lo_cleanup`.
Added `main_locale_init(LOCALEDIR, GETTEXT_PACKAGE)` for the translation information.
Modified Paths: -------------- lineoperations/src/lineoperations.c
Modified: lineoperations/src/lineoperations.c 10 lines changed, 6 insertions(+), 4 deletions(-) =================================================================== @@ -104,7 +104,8 @@ action_sortdesc_item(GtkMenuItem *menuitem, gpointer gdata) }
-static gboolean lo_init(GeanyPlugin *plugin, gpointer gdata) +static gboolean +lo_init(GeanyPlugin *plugin, gpointer gdata) { GeanyData *geany_data = plugin->geany_data;
@@ -180,8 +181,8 @@ static gboolean lo_init(GeanyPlugin *plugin, gpointer gdata) }
-void -lo_cleanup(void) +static void +lo_cleanup(GeanyPlugin *plugin, gpointer pdata) { if(main_menu_item) gtk_widget_destroy(main_menu_item); } @@ -190,6 +191,8 @@ lo_cleanup(void) G_MODULE_EXPORT void geany_load_module(GeanyPlugin *plugin) { + main_locale_init(LOCALEDIR, GETTEXT_PACKAGE); + plugin->info->name = _("Line Operations"); plugin->info->description = _("Line Operations provides a handful of functions that can be applied to a document such as, removing duplicate lines, removing empty lines, removing lines with only whitespace, and sorting lines."); plugin->info->version = "0.1"; @@ -200,4 +203,3 @@ void geany_load_module(GeanyPlugin *plugin)
GEANY_PLUGIN_REGISTER(plugin, 225); } -
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
plugins-commits@lists.geany.org