gitg/libgitg-ext/gitg-ext-object-selection.vala
Jesse van den Kieboom 3eda9ac4d3 Added new GitgExt.ObjectSelection interface
This interface can be implemented if an object supports selecting git
objects.
2012-07-17 09:50:36 +02:00

31 lines
987 B
Vala

/*
* This file is part of gitg
*
* Copyright (C) 2012 - 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 GitgExt
{
public delegate bool ForeachObjectSelectionFunc(Ggit.Object? object);
public interface ObjectSelection : Object
{
public abstract void foreach_selected(ForeachObjectSelectionFunc func);
public signal void selection_changed();
}
}
// ex: ts=4 noet