[gnome-builder] search-context: add get_max_results helper
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] search-context: add get_max_results helper
- Date: Sat, 20 Jun 2015 09:42:31 +0000 (UTC)
commit 7f948ff474b463990c8d129de7a1728fc769d0d8
Author: Christian Hergert <christian hergert me>
Date: Fri Jun 12 21:23:48 2015 -0700
search-context: add get_max_results helper
libide/ide-search-context.c | 8 ++++++++
libide/ide-search-context.h | 1 +
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-search-context.c b/libide/ide-search-context.c
index a2a95f5..20312b3 100644
--- a/libide/ide-search-context.c
+++ b/libide/ide-search-context.c
@@ -243,3 +243,11 @@ ide_search_context_init (IdeSearchContext *self)
{
self->cancellable = g_cancellable_new ();
}
+
+gsize
+ide_search_context_get_max_results (IdeSearchContext *self)
+{
+ g_return_val_if_fail (IDE_IS_SEARCH_CONTEXT (self), 0);
+
+ return self->max_results;
+}
diff --git a/libide/ide-search-context.h b/libide/ide-search-context.h
index 2578315..b7299d8 100644
--- a/libide/ide-search-context.h
+++ b/libide/ide-search-context.h
@@ -43,6 +43,7 @@ void ide_search_context_execute (IdeSearchContext *self,
void ide_search_context_set_provider_count (IdeSearchContext *self,
IdeSearchProvider *provider,
guint64 count);
+gsize ide_search_context_get_max_results (IdeSearchContext *self);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]