[recipes] details: rename an api



commit 7bbb334f9abe94659286b907e0ada9751439ac51
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jan 23 19:09:03 2017 +0300

    details: rename an api

 src/gr-details-page.c |    2 +-
 src/gr-details-page.h |    2 +-
 src/gr-window.c       |    4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gr-details-page.c b/src/gr-details-page.c
index 1dea941..1a80f6d 100644
--- a/src/gr-details-page.c
+++ b/src/gr-details-page.c
@@ -1108,7 +1108,7 @@ connect_store_signals (GrDetailsPage *page)
 }
 
 gboolean
-gr_details_page_is_cooking (GrDetailsPage *page)
+gr_details_page_get_cooking (GrDetailsPage *page)
 {
         return gtk_revealer_get_reveal_child (GTK_REVEALER (page->cooking_revealer));
 }
diff --git a/src/gr-details-page.h b/src/gr-details-page.h
index 236939d..f95f03f 100644
--- a/src/gr-details-page.h
+++ b/src/gr-details-page.h
@@ -36,7 +36,7 @@ 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);
+gboolean         gr_details_page_get_cooking (GrDetailsPage *page);
 void             gr_details_page_set_cooking (GrDetailsPage *page,
                                               gboolean       cooking);
 
diff --git a/src/gr-window.c b/src/gr-window.c
index dbdaf85..bd83d12 100644
--- a/src/gr-window.c
+++ b/src/gr-window.c
@@ -301,7 +301,7 @@ start_or_stop_cooking (GrWindow *window)
 {
         gboolean cooking;
 
-        cooking = gr_details_page_is_cooking (GR_DETAILS_PAGE (window->details_page));
+        cooking = gr_details_page_get_cooking (GR_DETAILS_PAGE (window->details_page));
         cooking = !cooking;
         gr_details_page_set_cooking (GR_DETAILS_PAGE (window->details_page), cooking);
         update_cooking_button (window, cooking);
@@ -576,7 +576,7 @@ gr_window_show_recipe (GrWindow *window,
 
         gr_details_page_set_recipe (GR_DETAILS_PAGE (window->details_page), recipe);
 
-        update_cooking_button (window, gr_details_page_is_cooking (GR_DETAILS_PAGE (window->details_page)));
+        update_cooking_button (window, gr_details_page_get_cooking (GR_DETAILS_PAGE (window->details_page)));
         g_signal_handlers_block_by_func (window->search_bar, search_mode_changed, window);
         gtk_search_bar_set_search_mode (GTK_SEARCH_BAR (window->search_bar), FALSE);
         g_signal_handlers_unblock_by_func (window->search_bar, search_mode_changed, window);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]