[gnome-builder/search] search-display: add get_context() helper
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/search] search-display: add get_context() helper
- Date: Mon, 15 Dec 2014 08:48:59 +0000 (UTC)
commit 64e6578b330505be05e88153b6f4f9c518dbd23d
Author: Christian Hergert <christian hergert me>
Date: Mon Dec 15 00:47:58 2014 -0800
search-display: add get_context() helper
src/search/gb-search-display.c | 8 ++++++++
src/search/gb-search-display.h | 9 +++++----
2 files changed, 13 insertions(+), 4 deletions(-)
---
diff --git a/src/search/gb-search-display.c b/src/search/gb-search-display.c
index 92e9517..97d1b75 100644
--- a/src/search/gb-search-display.c
+++ b/src/search/gb-search-display.c
@@ -72,6 +72,14 @@ gb_search_display_results_added (GbSearchDisplay *display,
EXIT;
}
+GbSearchContext *
+gb_search_display_get_context (GbSearchDisplay *display)
+{
+ g_return_val_if_fail (GB_IS_SEARCH_DISPLAY (display), NULL);
+
+ return display->priv->context;
+}
+
static void
gb_search_display_connect (GbSearchDisplay *display,
GbSearchContext *context)
diff --git a/src/search/gb-search-display.h b/src/search/gb-search-display.h
index 7bd9675..08ac57d 100644
--- a/src/search/gb-search-display.h
+++ b/src/search/gb-search-display.h
@@ -51,10 +51,11 @@ struct _GbSearchDisplayClass
GtkBinClass parent;
};
-GType gb_search_display_get_type (void);
-GtkWidget *gb_search_display_new (void);
-void gb_search_display_set_context (GbSearchDisplay *display,
- GbSearchContext *context);
+GType gb_search_display_get_type (void);
+GtkWidget *gb_search_display_new (void);
+GbSearchContext *gb_search_display_get_context (GbSearchDisplay *display);
+void gb_search_display_set_context (GbSearchDisplay *display,
+ GbSearchContext *context);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]