SF.net SVN: geany:[5518] trunk

ntrel at users.sourceforge.net ntrel at xxxxx
Mon Jan 10 13:35:29 UTC 2011


Revision: 5518
          http://geany.svn.sourceforge.net/geany/?rev=5518&view=rev
Author:   ntrel
Date:     2011-01-10 13:35:29 +0000 (Mon, 10 Jan 2011)

Log Message:
-----------
Add Save As toolbar button option (patch by Matthew Brush, thanks;
#3153490).

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/toolbar.c
    trunk/src/ui_utils.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2011-01-06 16:59:48 UTC (rev 5517)
+++ trunk/ChangeLog	2011-01-10 13:35:29 UTC (rev 5518)
@@ -1,3 +1,10 @@
+2011-01-10  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>
+
+ * src/toolbar.c, src/ui_utils.c:
+   Add Save As toolbar button option (patch by Matthew Brush, thanks;
+   #3153490).
+
+
 2011-01-05  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>
 
  * New release: Geany 0.20 "Disra".

Modified: trunk/src/toolbar.c
===================================================================
--- trunk/src/toolbar.c	2011-01-06 16:59:48 UTC (rev 5517)
+++ trunk/src/toolbar.c	2011-01-10 13:35:29 UTC (rev 5518)
@@ -54,6 +54,7 @@
 const GtkActionEntry ui_entries[] = {
 	/* custom actions defined in toolbar_init(): "New", "Open", "SearchEntry", "GotoEntry", "Build" */
 	{ "Save", GTK_STOCK_SAVE, NULL, NULL, N_("Save the current file"), G_CALLBACK(on_toolbutton_save_clicked) },
+	{ "SaveAs", GTK_STOCK_SAVE_AS, NULL, NULL, N_("Save as"), G_CALLBACK(on_save_as1_activate) },
 	{ "SaveAll", GEANY_STOCK_SAVE_ALL, NULL, NULL, N_("Save all open files"), G_CALLBACK(on_save_all1_activate) },
 	{ "Reload", GTK_STOCK_REVERT_TO_SAVED, NULL, NULL, N_("Reload the current file from disk"), G_CALLBACK(on_toolbutton_reload_clicked) },
 	{ "Close", GTK_STOCK_CLOSE, NULL, NULL, N_("Close the current file"), G_CALLBACK(on_toolbutton_close_clicked) },

Modified: trunk/src/ui_utils.c
===================================================================
--- trunk/src/ui_utils.c	2011-01-06 16:59:48 UTC (rev 5517)
+++ trunk/src/ui_utils.c	2011-01-10 13:35:29 UTC (rev 5518)
@@ -750,6 +750,7 @@
 	add_doc_toolitem("Paste");
 	add_doc_toolitem("Delete");
 	add_doc_toolitem("Save");
+	add_doc_toolitem("SaveAs");
 	add_doc_toolitem("SaveAll");
 	add_doc_toolitem("Compile");
 	add_doc_toolitem("Run");


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list