[recipes/recipe-link: 4/8] Add a way to get the recipe of the details page
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes/recipe-link: 4/8] Add a way to get the recipe of the details page
- Date: Thu, 29 Dec 2016 16:21:28 +0000 (UTC)
commit 8dc4c8f03b72b4c8ee6712f968d819a46149cf16
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Dec 29 11:18:19 2016 -0500
Add a way to get the recipe of the details page
We will need this in future commits.
src/gr-details-page.c | 6 ++++++
src/gr-details-page.h | 1 +
2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/gr-details-page.c b/src/gr-details-page.c
index 7b4bb06..ab7111b 100644
--- a/src/gr-details-page.c
+++ b/src/gr-details-page.c
@@ -908,6 +908,12 @@ gr_details_page_set_recipe (GrDetailsPage *page,
}
}
+GrRecipe *
+gr_details_page_get_recipe (GrDetailsPage *page)
+{
+ return page->recipe;
+}
+
static void
details_page_reload (GrDetailsPage *page,
GrRecipe *recipe)
diff --git a/src/gr-details-page.h b/src/gr-details-page.h
index 87c1b30..236939d 100644
--- a/src/gr-details-page.h
+++ b/src/gr-details-page.h
@@ -34,6 +34,7 @@ GtkWidget *gr_details_page_new (void);
void gr_details_page_set_recipe (GrDetailsPage *page,
GrRecipe *recipe);
+GrRecipe *gr_details_page_get_recipe (GrDetailsPage *page);
gboolean gr_details_page_is_cooking (GrDetailsPage *page);
void gr_details_page_set_cooking (GrDetailsPage *page,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]