[gitg/wip/actions: 2/2] Added ref delete/rename action stubs



commit eb6c32430da9971621f03bf0112db300a906d7e8
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Mon Jan 6 18:00:32 2014 +0100

    Added ref delete/rename action stubs

 gitg/Makefile.am                 |    2 +
 gitg/gitg-ref-action-delete.vala |   45 ++++++++++++++++++++++++++++++++++++++
 gitg/gitg-ref-action-rename.vala |   45 ++++++++++++++++++++++++++++++++++++++
 3 files changed, 92 insertions(+), 0 deletions(-)
---
diff --git a/gitg/Makefile.am b/gitg/Makefile.am
index c23634a..7311510 100644
--- a/gitg/Makefile.am
+++ b/gitg/Makefile.am
@@ -57,6 +57,8 @@ gitg_gitg_VALASOURCES =                                               \
        gitg/gitg-application.vala                              \
        gitg/gitg-plugins-engine.vala                           \
        gitg/gitg-ui-elements.vala                              \
+       gitg/gitg-ref-action-rename.vala                        \
+       gitg/gitg-ref-action-delete.vala                        \
        gitg/preferences/gitg-preferences-commit.vala           \
        gitg/preferences/gitg-preferences-dialog.vala           \
        gitg/preferences/gitg-preferences-interface.vala        \
diff --git a/gitg/gitg-ref-action-delete.vala b/gitg/gitg-ref-action-delete.vala
new file mode 100644
index 0000000..e70ae87
--- /dev/null
+++ b/gitg/gitg-ref-action-delete.vala
@@ -0,0 +1,45 @@
+/*
+ * This file is part of gitg
+ *
+ * Copyright (C) 2014 - Jesse van den Kieboom
+ *
+ * gitg is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * gitg is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with gitg. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+namespace Gitg
+{
+
+class RefActionDelete : GitgExt.RefAction, GitgExt.Action, Object
+{
+       public Ggit.Ref reference { get; construct set; }
+       public GitgExt.ActionInterface action_interface { get; construct set; }
+
+       public string label
+       {
+               get { return "Delete"; }
+       }
+
+       public bool enabled
+       {
+               get { return true; }
+       }
+
+       public void activate()
+       {
+       }
+}
+
+}
+
+// ex:set ts=4 noet
diff --git a/gitg/gitg-ref-action-rename.vala b/gitg/gitg-ref-action-rename.vala
new file mode 100644
index 0000000..4362b35
--- /dev/null
+++ b/gitg/gitg-ref-action-rename.vala
@@ -0,0 +1,45 @@
+/*
+ * This file is part of gitg
+ *
+ * Copyright (C) 2014 - Jesse van den Kieboom
+ *
+ * gitg is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * gitg is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with gitg. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+namespace Gitg
+{
+
+class RefActionRename : GitgExt.RefAction, GitgExt.Action, Object
+{
+       public Ggit.Ref reference { get; construct set; }
+       public GitgExt.ActionInterface action_interface { get; construct set; }
+
+       public string label
+       {
+               get { return "Rename"; }
+       }
+
+       public bool enabled
+       {
+               get { return true; }
+       }
+
+       public void activate()
+       {
+       }
+}
+
+}
+
+// ex:set ts=4 noet


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