Revision: 276
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=276&view=rev
Author: frlan
Date: 2008-11-02 21:59:43 +0000 (Sun, 02 Nov 2008)
Log Message:
-----------
GeanyLaTeX: Make usage of Geany API v104 by using of Geany's plugin locale_init() function.
Modified Paths:
--------------
trunk/geanylatex/ChangeLog
trunk/geanylatex/INSTALL
trunk/geanylatex/README
trunk/geanylatex/src/geanylatex.c
Modified: trunk/geanylatex/ChangeLog
===================================================================
--- trunk/geanylatex/ChangeLog 2008-11-01 01:33:32 UTC (rev 275)
+++ trunk/geanylatex/ChangeLog 2008-11-02 21:59:43 UTC (rev 276)
@@ -1,3 +1,9 @@
+2008-11-02 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
+
+ * Make usage of Geany API v104 by using of Geany's plugin init
+ locale function.
+
+
2008-10-29 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
* GeanyLaTeX 0.2 release
Modified: trunk/geanylatex/INSTALL
===================================================================
--- trunk/geanylatex/INSTALL 2008-11-01 01:33:32 UTC (rev 275)
+++ trunk/geanylatex/INSTALL 2008-11-02 21:59:43 UTC (rev 276)
@@ -1,7 +1,7 @@
These installation instructions are written for a Linux system.
At the time of this writing, building the plugin requires a recent SVN
-checkout of the Geany sources (Geany Plugin API v100 or svn r3084+).
+checkout of the Geany sources (Geany Plugin API v104).
You need for compliling the plugin the Geany header files installed.
For configuring and installing just run
Modified: trunk/geanylatex/README
===================================================================
--- trunk/geanylatex/README 2008-11-01 01:33:32 UTC (rev 275)
+++ trunk/geanylatex/README 2008-11-02 21:59:43 UTC (rev 276)
@@ -1,5 +1,5 @@
GeanyLaTeX Plugin
-(Version 0.2, October 2008)
+(Version post 0.2)
About
@@ -24,7 +24,7 @@
prepared package e.g. from your distribution you probably need to
install an additional package, this might be called geany-dev or
geany-devel. Please note that in order to compile and use this plugin,
-you need Geany 0.15 or later (Geany Plugin API v100 or higher).
+you need Geany 0.15 or later (Geany Plugin API v104 or higher).
Furthermore you need, of course, a C compiler (that is supporting C99)
and the Make tool. The GNU versions of these tools are recommended.
Modified: trunk/geanylatex/src/geanylatex.c
===================================================================
--- trunk/geanylatex/src/geanylatex.c 2008-11-01 01:33:32 UTC (rev 275)
+++ trunk/geanylatex/src/geanylatex.c 2008-11-02 21:59:43 UTC (rev 276)
@@ -49,7 +49,7 @@
GeanyData *geany_data;
GeanyFunctions *geany_functions;
-PLUGIN_VERSION_CHECK(100)
+PLUGIN_VERSION_CHECK(104)
PLUGIN_SET_INFO(_("LaTeX"), _("Plugin to make Geany better support LaTeX"), "0.2",
"Frank Lanitz <frank(a)frank.uvena.de>")
@@ -777,31 +777,7 @@
wizard_activated(NULL, NULL);
}
-static void locale_init(void)
-{
-#ifdef ENABLE_NLS
- gchar *locale_dir = NULL;
-#ifdef HAVE_LOCALE_H
- setlocale(LC_ALL, "");
-#endif
-
-#ifdef G_OS_WIN32
- gchar *install_dir = g_win32_get_package_installation_directory("geany", NULL);
- /* e.g. C:\Program Files\geany\lib\locale */
- locale_dir = g_strconcat(install_dir, "\\share\\locale", NULL);
- g_free(install_dir);
-#else
- locale_dir = g_strdup(LOCALEDIR);
-#endif
-
- bindtextdomain(GETTEXT_PACKAGE, locale_dir);
- bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
- textdomain(GETTEXT_PACKAGE);
- g_free(locale_dir);
-#endif
-}
-
void
plugin_init(G_GNUC_UNUSED GeanyData * data)
{
@@ -811,12 +787,12 @@
gchar *kblabel_insert_ref = _("Insert \\ref");
gchar *kblabel_wizard = _("Run LaTeX-Wizard");
+ p_main->locale_init(LOCALEDIR, GETTEXT_PACKAGE);
+
init_encodings_latex();
tooltips = gtk_tooltips_new();
- locale_init();
-
menu_latex = gtk_menu_item_new_with_mnemonic(_("_LaTeX"));
gtk_container_add(GTK_CONTAINER(geany->main_widgets->tools_menu), menu_latex);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.