Added GitgExt.Preferences interface

This interface can be implemented to provide preference panels
in the gitg preference dialog
This commit is contained in:
Jesse van den Kieboom 2012-07-18 17:34:47 +02:00
parent 16c3f22696
commit 800684585a
2 changed files with 32 additions and 1 deletions

View File

@ -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) \

View File

@ -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