[latexila/wip/templates-revamp: 7/13] Remove Delete template action



commit 4290a7664983150d1ece2b2cad5e01f89170fbd0
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu May 28 17:30:48 2015 +0200

    Remove Delete template action
    
    It'll be replaced by a "Manage Templates" dialog, whith the following
    actions for personal templates:
    - delete
    - move up/down
    - edit properties (modify name and icon)

 src/Makefile.am            |    2 -
 src/main_window_file.vala  |    9 -
 src/templates.vala         |  451 --------------------------------------------
 src/templates_dialogs.vala |   81 --------
 src/ui/ui.xml              |    1 -
 5 files changed, 0 insertions(+), 544 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 4c32300..3f23d70 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -56,8 +56,6 @@ vala_files =                          \
        symbols.vala                    \
        symbols_view.vala               \
        tab_info_bar.vala               \
-       templates_dialogs.vala          \
-       templates.vala                  \
        utils.vala
 
 latexila_SOURCES =                             \
diff --git a/src/main_window_file.vala b/src/main_window_file.vala
index 106b711..a760892 100644
--- a/src/main_window_file.vala
+++ b/src/main_window_file.vala
@@ -47,9 +47,6 @@ public class MainWindowFile
         { "FileCreateTemplate", null, N_("Create _Template From Document..."), null,
             N_("Create a new template from the current document"), on_create_template },
 
-        { "FileDeleteTemplate", null, N_("_Delete Template..."), null,
-            N_("Delete personal template(s)"), on_delete_template },
-
         { "FileClose", "window-close", N_("_Close"), "<Control>W",
             N_("Close the current file"), on_file_close }
     };
@@ -223,12 +220,6 @@ public class MainWindowFile
         Latexila.templates_dialogs_create_template (_main_window, template_contents);
     }
 
-    public void on_delete_template ()
-    {
-        DeleteTemplateDialog dialog = new DeleteTemplateDialog (_main_window);
-        dialog.destroy ();
-    }
-
     public void on_file_close ()
     {
         return_if_fail (_main_window.active_tab != null);
diff --git a/src/ui/ui.xml b/src/ui/ui.xml
index 8f8c172..36a51a4 100644
--- a/src/ui/ui.xml
+++ b/src/ui/ui.xml
@@ -29,7 +29,6 @@ along with LaTeXila.  If not, see <http://www.gnu.org/licenses/>.
       <menuitem action="FileSaveAs" />
       <separator />
       <menuitem action="FileCreateTemplate" />
-      <menuitem action="FileDeleteTemplate" />
       <separator />
       <menuitem action="FileClose" />
       <menuitem action="FileQuit" />


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]