[recipes] Rename a function
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Rename a function
- Date: Wed, 29 Mar 2017 10:07:56 +0000 (UTC)
commit d991fec8bdaeb7257268bf91890d1cadb51bef0b
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Mar 28 23:36:09 2017 +0100
Rename a function
Rename gr_window_show_myself to gr_window_show_mine, which
fits better with the pattern we use for the category show
functions.
src/gr-recipes-page.c | 2 +-
src/gr-window.c | 8 ++++----
src/gr-window.h | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/gr-recipes-page.c b/src/gr-recipes-page.c
index f8ed9a3..df9c9e3 100644
--- a/src/gr-recipes-page.c
+++ b/src/gr-recipes-page.c
@@ -205,7 +205,7 @@ category_clicked (GrCategoryTile *tile,
else if (strcmp (name, "favorites") == 0)
gr_window_show_favorites (GR_WINDOW (window));
else if (strcmp (name, "mine") == 0)
- gr_window_show_myself (GR_WINDOW (window));
+ gr_window_show_mine (GR_WINDOW (window));
else if (strcmp (name, "all") == 0)
gr_window_show_all (GR_WINDOW (window));
else if (strcmp (name, "new") == 0)
diff --git a/src/gr-window.c b/src/gr-window.c
index 7b89780..8dd7a9d 100644
--- a/src/gr-window.c
+++ b/src/gr-window.c
@@ -1342,8 +1342,8 @@ gr_window_show_shopping (GrWindow *window)
}
static void
-do_show_myself (GrChef *chef,
- gpointer data)
+do_show_mine (GrChef *chef,
+ gpointer data)
{
GrWindow *window = data;
@@ -1361,9 +1361,9 @@ do_show_myself (GrChef *chef,
}
void
-gr_window_show_myself (GrWindow *window)
+gr_window_show_mine (GrWindow *window)
{
- gr_ensure_user_chef (GTK_WINDOW (window), do_show_myself, window);
+ gr_ensure_user_chef (GTK_WINDOW (window), do_show_mine, window);
}
void
diff --git a/src/gr-window.h b/src/gr-window.h
index 08dd94a..5eb8220 100644
--- a/src/gr-window.h
+++ b/src/gr-window.h
@@ -49,7 +49,7 @@ void gr_window_show_diet (GrWindow *window,
GrDiets diet);
void gr_window_show_chef (GrWindow *window,
GrChef *chef);
-void gr_window_show_myself (GrWindow *window);
+void gr_window_show_mine (GrWindow *window);
void gr_window_show_favorites (GrWindow *window);
void gr_window_show_all (GrWindow *window);
void gr_window_show_new (GrWindow *window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]