mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-09-13 21:21:17 +00:00
Added ref delete/rename action stubs
This commit is contained in:
parent
f0f119b338
commit
7cfa45167b
|
@ -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 \
|
||||
|
|
45
gitg/gitg-ref-action-delete.vala
Normal file
45
gitg/gitg-ref-action-delete.vala
Normal file
|
@ -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
|
45
gitg/gitg-ref-action-rename.vala
Normal file
45
gitg/gitg-ref-action-rename.vala
Normal file
|
@ -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
|
Loading…
Reference in a new issue