Revision: 1602 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1602&view=re... Author: frlan Date: 2010-09-27 07:09:31 +0000 (Mon, 27 Sep 2010)
Log Message: ----------- GeanySendMail: Replace deprecated PLUGIN_KEY_GROUP macro
Modified Paths: -------------- trunk/geany-plugins/geanysendmail/ChangeLog trunk/geany-plugins/geanysendmail/src/geanysendmail.c
Modified: trunk/geany-plugins/geanysendmail/ChangeLog =================================================================== --- trunk/geany-plugins/geanysendmail/ChangeLog 2010-09-27 07:09:05 UTC (rev 1601) +++ trunk/geany-plugins/geanysendmail/ChangeLog 2010-09-27 07:09:31 UTC (rev 1602) @@ -1,3 +1,8 @@ +2010-09-23 Frank Lanitz frank@frank.uvena.de + + * Replace deprecated PLUGIN_KEY_GROUP macro. + + 2010-04-16 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
* Allow hitting return to close email address dialog and proceed.
Modified: trunk/geany-plugins/geanysendmail/src/geanysendmail.c =================================================================== --- trunk/geany-plugins/geanysendmail/src/geanysendmail.c 2010-09-27 07:09:05 UTC (rev 1601) +++ trunk/geany-plugins/geanysendmail/src/geanysendmail.c 2010-09-27 07:09:31 UTC (rev 1602) @@ -53,8 +53,6 @@ COUNT_KB };
-PLUGIN_KEY_GROUP(sendmail, COUNT_KB) - static gchar *config_file = NULL; static gchar *mailer = NULL; static gchar *address = NULL; @@ -386,12 +384,10 @@ void plugin_init(GeanyData G_GNUC_UNUSED *data) { GtkTooltips *tooltips = NULL; - GKeyFile *config = g_key_file_new(); - gchar *kb_label = _("Send file by mail"); - GtkWidget *menu_mail = NULL; + GeanyKeyGroup *key_group;
main_locale_init(LOCALEDIR, GETTEXT_PACKAGE);
@@ -423,7 +419,8 @@ g_signal_connect(G_OBJECT(menu_mail), "activate", G_CALLBACK(send_as_attachment), NULL);
/* setup keybindings */ - keybindings_set_item(plugin_key_group, SENDMAIL_KB, key_send_as_attachment, + key_group = plugin_set_key_group(geany_plugin, "sendmail", COUNT_KB, NULL); + keybindings_set_item(key_group, SENDMAIL_KB, key_send_as_attachment, 0, 0, "send_file_as_attachment", kb_label, menu_mail);
gtk_widget_show_all(menu_mail);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.