mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-11-02 20:13:01 +00:00
Add Searchable interface
This commit is contained in:
parent
5255a7fe5c
commit
d544fff86e
5 changed files with 36 additions and 12 deletions
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -42,8 +42,6 @@ public interface Activity : Object, UIElement
|
|||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public abstract bool supports_search { get; }
|
||||
}
|
||||
|
||||
}
|
||||
|
|
35
libgitg-ext/gitg-ext-searchable.vala
Normal file
35
libgitg-ext/gitg-ext-searchable.vala
Normal 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
|
Loading…
Reference in a new issue