mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-08-28 20:43:15 +00:00
Added new GitgExt.ObjectSelection interface
This interface can be implemented if an object supports selecting git objects.
This commit is contained in:
parent
cfae9d4795
commit
3eda9ac4d3
|
@ -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) \
|
||||
|
|
31
libgitg-ext/gitg-ext-object-selection.vala
Normal file
31
libgitg-ext/gitg-ext-object-selection.vala
Normal 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
|
Loading…
Reference in a new issue