[gitg/vala] Added new GitgExt.ObjectSelection interface
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/vala] Added new GitgExt.ObjectSelection interface
- Date: Tue, 17 Jul 2012 07:57:16 +0000 (UTC)
commit 3eda9ac4d306219231aca3491717e5ef0614ce04
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date: Tue Jul 17 09:50:36 2012 +0200
Added new GitgExt.ObjectSelection interface
This interface can be implemented if an object supports selecting git
objects.
libgitg-ext/Makefile.am | 3 +-
libgitg-ext/gitg-ext-object-selection.vala | 31 ++++++++++++++++++++++++++++
2 files changed, 33 insertions(+), 1 deletions(-)
---
diff --git a/libgitg-ext/Makefile.am b/libgitg-ext/Makefile.am
index bf950d2..6604248 100644
--- a/libgitg-ext/Makefile.am
+++ b/libgitg-ext/Makefile.am
@@ -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) \
diff --git a/libgitg-ext/gitg-ext-object-selection.vala b/libgitg-ext/gitg-ext-object-selection.vala
new file mode 100644
index 0000000..6c5790b
--- /dev/null
+++ b/libgitg-ext/gitg-ext-object-selection.vala
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]