[gnome-builder] search-manager: add get_default for search manager
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] search-manager: add get_default for search manager
- Date: Wed, 17 Dec 2014 10:46:11 +0000 (UTC)
commit 855371bfdfd0296b63f2f196f6efe20f52a30fe8
Author: Christian Hergert <christian hergert me>
Date: Sun Dec 14 20:24:33 2014 -0800
search-manager: add get_default for search manager
src/search/gb-search-manager.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/search/gb-search-manager.c b/src/search/gb-search-manager.c
index ec2e093..a7c3862 100644
--- a/src/search/gb-search-manager.c
+++ b/src/search/gb-search-manager.c
@@ -44,6 +44,17 @@ gb_search_manager_new (void)
return g_object_new (GB_TYPE_SEARCH_MANAGER, NULL);
}
+GbSearchManager *
+gb_search_manager_get_default (void)
+{
+ static GbSearchManager *instance;
+
+ if (!instance)
+ instance = gb_search_manager_new ();
+
+ return instance;
+}
+
static gint
sort_provider (gconstpointer a,
gconstpointer b)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]