Add Searchable interface

This commit is contained in:
Jesse van den Kieboom 2014-07-13 19:09:42 +02:00
parent 5255a7fe5c
commit d544fff86e
5 changed files with 36 additions and 12 deletions

View file

@ -39,11 +39,6 @@ namespace GitgCommit
owned get { return "/org/gnome/gitg/Activities/Commit"; }
}
public bool supports_search
{
get { return false; }
}
[Notify]
public Gitg.Repository repository
{

View file

@ -52,11 +52,6 @@ namespace GitgHistory
owned get { return "/org/gnome/gitg/Activities/History"; }
}
public bool supports_search
{
get { return false; }
}
private Gitg.Repository d_repository;
[Notify]

View file

@ -57,6 +57,7 @@ libgitg_ext_libgitg_ext_1_0_la_VALASOURCES = \
libgitg-ext/gitg-ext-history-panel.vala \
libgitg-ext/gitg-ext-command-line.vala \
libgitg-ext/gitg-ext-preferences.vala \
libgitg-ext/gitg-ext-searchable.vala \
libgitg-ext/gitg-ext-ui.vala \
libgitg-ext/gitg-ext-user-query.vala \
libgitg/libgitg-1.0.vapi

View file

@ -42,8 +42,6 @@ public interface Activity : Object, UIElement
{
return false;
}
public abstract bool supports_search { get; }
}
}

View file

@ -0,0 +1,35 @@
/*
* This file is part of gitg
*
* Copyright (C) 2014 - 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
{
/**
* gitg Searchable interface.
*
* The Searchable interface can be implemented when an activity supports a
* searching.
*/
public interface Searchable : Object, Activity
{
}
}
// ex: ts=4 noet