Added new GitgExt.ObjectSelection interface

This interface can be implemented if an object supports selecting git
objects.
This commit is contained in:
Jesse van den Kieboom 2012-07-17 09:50:36 +02:00
parent cfae9d4795
commit 3eda9ac4d3
2 changed files with 33 additions and 1 deletions

View file

@ -40,7 +40,8 @@ VALA_FILES = \
gitg-ext-navigation-tree-view.vala \
gitg-ext-message-id.vala \
gitg-ext-message.vala \
gitg-ext-message-bus.vala
gitg-ext-message-bus.vala \
gitg-ext-object-selection.vala
libgitg_ext_1_0_la_SOURCES = \
$(VALA_FILES) \

View file

@ -0,0 +1,31 @@
/*
* 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