Kaydet (Commit) 4d4bf2f3 authored tarafından Nick Treleaven's avatar Nick Treleaven

Add Save As toolbar button option (patch by Matthew Brush, thanks;

#3153490).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5518 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 8bcd27a1
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> 2011-01-05 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* New release: Geany 0.20 "Disra". * New release: Geany 0.20 "Disra".
......
...@@ -54,6 +54,7 @@ static GSList *plugin_items = NULL; ...@@ -54,6 +54,7 @@ static GSList *plugin_items = NULL;
const GtkActionEntry ui_entries[] = { const GtkActionEntry ui_entries[] = {
/* custom actions defined in toolbar_init(): "New", "Open", "SearchEntry", "GotoEntry", "Build" */ /* 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) }, { "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) }, { "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) }, { "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) }, { "Close", GTK_STOCK_CLOSE, NULL, NULL, N_("Close the current file"), G_CALLBACK(on_toolbutton_close_clicked) },
......
...@@ -750,6 +750,7 @@ static void init_document_widgets(void) ...@@ -750,6 +750,7 @@ static void init_document_widgets(void)
add_doc_toolitem("Paste"); add_doc_toolitem("Paste");
add_doc_toolitem("Delete"); add_doc_toolitem("Delete");
add_doc_toolitem("Save"); add_doc_toolitem("Save");
add_doc_toolitem("SaveAs");
add_doc_toolitem("SaveAll"); add_doc_toolitem("SaveAll");
add_doc_toolitem("Compile"); add_doc_toolitem("Compile");
add_doc_toolitem("Run"); add_doc_toolitem("Run");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment