Revision: 1472
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1472&view=rev
Author: frlan
Date: 2010-06-27 12:00:47 +0000 (Sun, 27 Jun 2010)
Log Message:
-----------
GeanySendMail: Make usage of PLUGIN_SET_TRANSLATABLE_INFO and bump API dependency to 188
Modified Paths:
--------------
trunk/geany-plugins/geanysendmail/src/geanysendmail.c
Modified: trunk/geany-plugins/geanysendmail/src/geanysendmail.c
===================================================================
--- trunk/geany-plugins/geanysendmail/src/geanysendmail.c 2010-06-27 12:00:18 UTC (rev 1471)
+++ trunk/geany-plugins/geanysendmail/src/geanysendmail.c 2010-06-27 12:00:47 UTC (rev 1472)
@@ -35,10 +35,16 @@
GeanyData *geany_data;
GeanyFunctions *geany_functions;
-PLUGIN_VERSION_CHECK(147)
+PLUGIN_VERSION_CHECK(188)
-PLUGIN_SET_INFO(_("GeanySendMail"), _("A little plugin to send the current \
-file as attachment by user's favorite mailer"), VERSION, "Frank Lanitz <frank(a)frank.uvena.de>")
+PLUGIN_SET_TRANSLATABLE_INFO(
+ LOCALEDIR,
+ GETTEXT_PACKAGE,
+ _("GeanySendMail"),
+ _("A little plugin to send the current"
+ "file as attachment by user's favorite mailer"),
+ VERSION,
+ "Frank Lanitz <frank(a)frank.uvena.de>")
/* Keybinding(s) */
enum
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1471
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1471&view=rev
Author: frlan
Date: 2010-06-27 12:00:18 +0000 (Sun, 27 Jun 2010)
Log Message:
-----------
GeanySendMail: Mark a couple of functions static as we will only use them locally
Modified Paths:
--------------
trunk/geany-plugins/geanysendmail/src/geanysendmail.c
Modified: trunk/geany-plugins/geanysendmail/src/geanysendmail.c
===================================================================
--- trunk/geany-plugins/geanysendmail/src/geanysendmail.c 2010-06-27 11:31:50 UTC (rev 1470)
+++ trunk/geany-plugins/geanysendmail/src/geanysendmail.c 2010-06-27 12:00:18 UTC (rev 1471)
@@ -241,7 +241,7 @@
}
-void show_icon()
+static void show_icon()
{
mailbutton = GTK_WIDGET(gtk_tool_button_new_from_stock(GEANYSENDMAIL_STOCK_MAIL));
plugin_add_toolbar_item(geany_plugin, GTK_TOOL_ITEM(mailbutton));
@@ -253,7 +253,7 @@
gtk_widget_show_all (mailbutton);
}
-void cleanup_icon()
+static void cleanup_icon()
{
if (mailbutton != NULL)
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1469
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1469&view=rev
Author: frlan
Date: 2010-06-27 10:57:28 +0000 (Sun, 27 Jun 2010)
Log Message:
-----------
Addons/XMLtagging: Add a placeholder %s to insert also the selection to tag. This allows 'a href="%s"' to become '<a href="$selection">$selection</a>' where $selection is the selected text on document.
Modified Paths:
--------------
trunk/geany-plugins/addons/ChangeLog
trunk/geany-plugins/addons/src/ao_xmltagging.c
Modified: trunk/geany-plugins/addons/ChangeLog
===================================================================
--- trunk/geany-plugins/addons/ChangeLog 2010-06-27 10:31:30 UTC (rev 1468)
+++ trunk/geany-plugins/addons/ChangeLog 2010-06-27 10:57:28 UTC (rev 1469)
@@ -1,3 +1,11 @@
+2010-06-27 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
+
+ * src/ao_xmltagging.c:
+ Add a placeholder %s to insert also the selection to tag. This allows
+ a href="%s" to become <a href="$selection">$selection</a> where
+ $selection is the selected text on document.
+
+
2010-06-26 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
* src/ao_xmltagging.c:
Modified: trunk/geany-plugins/addons/src/ao_xmltagging.c
===================================================================
--- trunk/geany-plugins/addons/src/ao_xmltagging.c 2010-06-27 10:31:30 UTC (rev 1468)
+++ trunk/geany-plugins/addons/src/ao_xmltagging.c 2010-06-27 10:57:28 UTC (rev 1469)
@@ -47,6 +47,7 @@
GtkWidget *hbox = NULL;
GtkWidget *label = NULL;
GtkWidget *textbox = NULL;
+ GtkWidget *textline = NULL;
dialog = gtk_dialog_new_with_buttons(_("XML tagging"),
GTK_WINDOW(geany->main_widgets->window),
@@ -62,11 +63,15 @@
label = gtk_label_new(_("Tag name to be inserted:"));
textbox = gtk_entry_new();
+ textline = gtk_label_new(
+ _("%s will be replaced with your current selection. Please keep care on your selection"));
+
gtk_container_add(GTK_CONTAINER(hbox), label);
gtk_container_add(GTK_CONTAINER(hbox), textbox);
gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
gtk_container_add(GTK_CONTAINER(vbox), hbox);
+ gtk_container_add(GTK_CONTAINER(vbox), textline);
g_signal_connect(G_OBJECT(textbox), "activate",
G_CALLBACK(enter_key_pressed_in_entry), dialog);
@@ -84,7 +89,14 @@
if (NZV(tag))
{
gint end = 0;
+ GString *tmp = NULL;
const gchar *end_tag;
+
+ /* First we check for %s and replace it with selection*/
+ tmp = g_string_new(tag);
+ utils_string_replace_all(tmp, "%s", selection);
+ tag = g_string_free(tmp, FALSE);
+
/* We try to find a space inside the inserted tag as we
* only need to close the tag with part until first space.
* */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1467
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1467&view=rev
Author: frlan
Date: 2010-06-26 17:04:30 +0000 (Sat, 26 Jun 2010)
Log Message:
-----------
Correct a minor spelling misstake
Modified Paths:
--------------
trunk/geany-plugins/geanylatex/ChangeLog
trunk/geany-plugins/geanyprj/src/menu.c
trunk/geanylatex/ChangeLog
Modified: trunk/geany-plugins/geanylatex/ChangeLog
===================================================================
--- trunk/geany-plugins/geanylatex/ChangeLog 2010-06-26 16:45:09 UTC (rev 1466)
+++ trunk/geany-plugins/geanylatex/ChangeLog 2010-06-26 17:04:30 UTC (rev 1467)
@@ -1,6 +1,6 @@
2010-05-15 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
- * Add a feature which is inserting {} automaticly once a new line is
+ * Add a feature which is inserting {} automaticlly once a new line is
entered and an command seems to don't have some.
Modified: trunk/geany-plugins/geanyprj/src/menu.c
===================================================================
--- trunk/geany-plugins/geanyprj/src/menu.c 2010-06-26 16:45:09 UTC (rev 1466)
+++ trunk/geany-plugins/geanyprj/src/menu.c 2010-06-26 17:04:30 UTC (rev 1467)
@@ -168,7 +168,7 @@
e->regenerate = gtk_check_button_new_with_label(_("Generate file list on load"));
gtk_tooltips_set_tip(tooltips, e->regenerate,
_("Automatically add files that match project type on project load "
- "automaticly. You can't manually add/remove files if "
+ "automatically. You can't manually add/remove files if "
"you checked this option, since your modification will be lost on "
"on next project load"), NULL);
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(e->regenerate), TRUE);
Modified: trunk/geanylatex/ChangeLog
===================================================================
--- trunk/geanylatex/ChangeLog 2010-06-26 16:45:09 UTC (rev 1466)
+++ trunk/geanylatex/ChangeLog 2010-06-26 17:04:30 UTC (rev 1467)
@@ -1,6 +1,6 @@
2010-05-15 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
- * Add a feature which is inserting {} automaticly once a new line is
+ * Add a feature which is inserting {} automaticlly once a new line is
entered and an command seems to don't have some.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1466
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1466&view=rev
Author: frlan
Date: 2010-06-26 16:45:09 +0000 (Sat, 26 Jun 2010)
Log Message:
-----------
Fix an issue that prevent xmltagging keybinding to be turned on/off.
Modified Paths:
--------------
trunk/geany-plugins/addons/ChangeLog
trunk/geany-plugins/addons/src/addons.c
Modified: trunk/geany-plugins/addons/ChangeLog
===================================================================
--- trunk/geany-plugins/addons/ChangeLog 2010-06-26 16:44:34 UTC (rev 1465)
+++ trunk/geany-plugins/addons/ChangeLog 2010-06-26 16:45:09 UTC (rev 1466)
@@ -3,6 +3,8 @@
* src/ao_xmltagging.c:
Only use part of inserted tag until first white space character for
closing tag so e.g. inserting 'span class=foo"' is working properly.
+ * src/addons.c:
+ Fix an issue that prevent xmltagging keybinding to be turned on/off.
2010-05-30 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/geany-plugins/addons/src/addons.c
===================================================================
--- trunk/geany-plugins/addons/src/addons.c 2010-06-26 16:44:34 UTC (rev 1465)
+++ trunk/geany-plugins/addons/src/addons.c 2010-06-26 16:45:09 UTC (rev 1466)
@@ -144,7 +144,10 @@
static void kb_ao_xmltagging(guint key_id)
{
- ao_xmltagging();
+ if ao_info->enable_xmltagging == TRUE
+ {
+ ao_xmltagging();
+ }
}
gboolean ao_editor_notify_cb(GObject *object, GeanyEditor *editor,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1465
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1465&view=rev
Author: frlan
Date: 2010-06-26 16:44:34 +0000 (Sat, 26 Jun 2010)
Log Message:
-----------
Only use part of inserted tag until first white space character for closing tag so e.g. inserting 'span class=foo"' is working properly.
Modified Paths:
--------------
trunk/geany-plugins/addons/ChangeLog
trunk/geany-plugins/addons/src/ao_xmltagging.c
Modified: trunk/geany-plugins/addons/ChangeLog
===================================================================
--- trunk/geany-plugins/addons/ChangeLog 2010-06-26 16:44:05 UTC (rev 1464)
+++ trunk/geany-plugins/addons/ChangeLog 2010-06-26 16:44:34 UTC (rev 1465)
@@ -1,3 +1,10 @@
+2010-06-26 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
+
+ * src/ao_xmltagging.c:
+ Only use part of inserted tag until first white space character for
+ closing tag so e.g. inserting 'span class=foo"' is working properly.
+
+
2010-05-30 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* src/addons.c:
Modified: trunk/geany-plugins/addons/src/ao_xmltagging.c
===================================================================
--- trunk/geany-plugins/addons/src/ao_xmltagging.c 2010-06-26 16:44:05 UTC (rev 1464)
+++ trunk/geany-plugins/addons/src/ao_xmltagging.c 2010-06-26 16:44:34 UTC (rev 1465)
@@ -83,8 +83,24 @@
tag = g_strdup(gtk_entry_get_text(GTK_ENTRY(textbox)));
if (NZV(tag))
{
+ gint end = 0;
+ const gchar *end_tag;
+ /* We try to find a space inside the inserted tag as we
+ * only need to close the tag with part until first space.
+ * */
+ while (!g_ascii_isspace(tag[end]) && tag[end] != '\0')
+ end++;
+
+ if (end > 0)
+ {
+ end_tag = g_strndup(tag, end);
+ }
+ else
+ {
+ end_tag = tag;
+ }
replacement = g_strconcat("<", tag, ">",
- selection, "</", tag, ">", NULL);
+ selection, "</", end_tag, ">", NULL);
}
sci_replace_sel(doc->editor->sci, replacement);
@@ -92,7 +108,6 @@
g_free(selection);
g_free(replacement);
}
-
gtk_widget_destroy(dialog);
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.