[gitg/vala] Added GitgExt.Preferences interface
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/vala] Added GitgExt.Preferences interface
- Date: Wed, 18 Jul 2012 15:39:14 +0000 (UTC)
commit 800684585a35111818155b9fc0820e24919566f2
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date: Wed Jul 18 17:34:47 2012 +0200
Added GitgExt.Preferences interface
This interface can be implemented to provide preference panels
in the gitg preference dialog
libgitg-ext/Makefile.am | 3 ++-
libgitg-ext/gitg-ext-preferences.vala | 30 ++++++++++++++++++++++++++++++
2 files changed, 32 insertions(+), 1 deletions(-)
---
diff --git a/libgitg-ext/Makefile.am b/libgitg-ext/Makefile.am
index c8c6c13..b9d7d59 100644
--- a/libgitg-ext/Makefile.am
+++ b/libgitg-ext/Makefile.am
@@ -45,7 +45,8 @@ VALA_FILES = \
gitg-ext-message.vala \
gitg-ext-message-bus.vala \
gitg-ext-object-selection.vala \
- gitg-ext-command-line.vala
+ gitg-ext-command-line.vala \
+ gitg-ext-preferences.vala
libgitg_ext_1_0_la_SOURCES = \
$(VALA_FILES) \
diff --git a/libgitg-ext/gitg-ext-preferences.vala b/libgitg-ext/gitg-ext-preferences.vala
new file mode 100644
index 0000000..f58360c
--- /dev/null
+++ b/libgitg-ext/gitg-ext-preferences.vala
@@ -0,0 +1,30 @@
+/*
+ * 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 interface Preferences : Object
+ {
+ public abstract string id { owned get; }
+ public abstract string display_name { owned get; }
+ public abstract Gtk.Widget widget { owned get; }
+ }
+}
+
+// vi:ts=4
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]