Revision: 1601 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1601&view=re... Author: frlan Date: 2010-09-27 07:09:05 +0000 (Mon, 27 Sep 2010)
Log Message: ----------- GeanyLipsum: Replace deprecated PLUGIN_KEY_GROUP macro
Modified Paths: -------------- trunk/geany-plugins/geanylipsum/ChangeLog trunk/geany-plugins/geanylipsum/src/geanylipsum.c
Modified: trunk/geany-plugins/geanylipsum/ChangeLog =================================================================== --- trunk/geany-plugins/geanylipsum/ChangeLog 2010-09-21 06:39:50 UTC (rev 1600) +++ trunk/geany-plugins/geanylipsum/ChangeLog 2010-09-27 07:09:05 UTC (rev 1601) @@ -1,3 +1,8 @@ +2010-09-23 Frank Lanitz frank@frank.uvena.de + + * Replace deprecated PLUGIN_KEY_GROUP macro. + + 2009-12-13 Frank Lanitz frank@frank.uvena.de
* Show geanyLipsum inside plugin manager dialog
Modified: trunk/geany-plugins/geanylipsum/src/geanylipsum.c =================================================================== --- trunk/geany-plugins/geanylipsum/src/geanylipsum.c 2010-09-21 06:39:50 UTC (rev 1600) +++ trunk/geany-plugins/geanylipsum/src/geanylipsum.c 2010-09-27 07:09:05 UTC (rev 1601) @@ -1,7 +1,7 @@ /* * geanylipsum.c * - * Copyright 2008-2009 Frank Lanitz <frank(at)frank(dot)uvena(dot)de> + * Copyright 2008-2010 Frank Lanitz <frank(at)frank(dot)uvena(dot)de> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -37,7 +37,7 @@ GETTEXT_PACKAGE, _("GeanyLipsum"), _("Creating dummy text with Geany"), - "0.4.2", + "0.4.3", "Frank Lanitz frank@frank.uvena.de");
static GtkWidget *main_menu_item = NULL; @@ -56,10 +56,10 @@ COUNT_KB };
-PLUGIN_KEY_GROUP(geanylipsum, COUNT_KB);
+ static void insert_string(GeanyDocument *doc, const gchar *string) { @@ -140,6 +140,7 @@ GKeyFile *config = g_key_file_new(); GtkTooltips *tooltips = NULL; gchar *config_file = NULL; + GeanyKeyGroup *key_group;
tooltips = gtk_tooltips_new();
@@ -171,10 +172,12 @@ main_menu_item = menu_lipsum;
/* init keybindings */ - keybindings_set_item(plugin_key_group, LIPSUM_KB_INSERT, kblipsum_insert, + key_group = plugin_set_key_group(geany_plugin, "geanylipsum", COUNT_KB, NULL); + keybindings_set_item(key_group, LIPSUM_KB_INSERT, kblipsum_insert, 0, 0, "insert_lipsum", _("Insert Lipsum text"), menu_lipsum); }
+ /* Called by Geany before unloading the plugin. */ void plugin_cleanup(void) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.