[recipes] Fix up whitespace issues
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Fix up whitespace issues
- Date: Thu, 15 Dec 2016 02:24:03 +0000 (UTC)
commit 061d94ce8be299944ea66d03f441274e2ecc39e3
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Dec 14 15:31:17 2016 -0500
Fix up whitespace issues
src/gr-app.h | 1 -
src/gr-category-tile.c | 18 ++++++++--------
src/gr-category-tile.h | 2 +-
src/gr-chef-tile.c | 20 +++++++++---------
src/gr-chef-tile.h | 2 +-
src/gr-chef.h | 2 +-
src/gr-cuisine-page.c | 16 +++++++-------
src/gr-cuisines-page.c | 6 ++--
src/gr-details-page.c | 42 +++++++++++++++++++-------------------
src/gr-diet.h | 10 ++++----
src/gr-edit-page.c | 2 +-
src/gr-images.c | 4 +-
src/gr-images.h | 5 +--
src/gr-ingredient-search-tile.c | 16 +++++++-------
src/gr-list-page.c | 6 ++--
src/gr-preferences.c | 2 +-
src/gr-query-editor.c | 2 +-
src/gr-recipe-store.h | 8 +++---
src/gr-recipe.h | 2 +-
src/gr-timer-widget.c | 18 ++++++++--------
src/gr-timer-widget.h | 1 -
src/gr-timer.c | 10 ++++----
src/gr-utils.h | 4 +-
src/gr-window.c | 20 +++++++++---------
24 files changed, 108 insertions(+), 111 deletions(-)
---
diff --git a/src/gr-app.h b/src/gr-app.h
index 55c3cd1..6db6956 100644
--- a/src/gr-app.h
+++ b/src/gr-app.h
@@ -31,4 +31,3 @@ GrApp *gr_app_new (void);
GrRecipeStore *gr_app_get_recipe_store (GrApp *app);
G_END_DECLS
-
diff --git a/src/gr-category-tile.c b/src/gr-category-tile.c
index e384555..bd92ec6 100644
--- a/src/gr-category-tile.c
+++ b/src/gr-category-tile.c
@@ -33,7 +33,7 @@ struct _GrCategoryTile
{
GtkButton parent_instance;
- GrDiets diet;
+ GrDiets diet;
char *category;
GtkWidget *label;
@@ -60,14 +60,14 @@ static const char *colors[] = {
static const char *
get_category_color (GrDiets diets)
{
- switch (diets) {
+ switch (diets) {
case GR_DIET_GLUTEN_FREE: return colors[0];
- case GR_DIET_NUT_FREE: return colors[1];
- case GR_DIET_VEGAN: return colors[2];
- case GR_DIET_VEGETARIAN: return colors[3];
- case GR_DIET_MILK_FREE: return colors[4];
- default: return colors[5];
- }
+ case GR_DIET_NUT_FREE: return colors[1];
+ case GR_DIET_VEGAN: return colors[2];
+ case GR_DIET_VEGETARIAN: return colors[3];
+ case GR_DIET_MILK_FREE: return colors[4];
+ default: return colors[5];
+ }
}
static const char *
@@ -80,7 +80,7 @@ static void
category_tile_set_category (GrCategoryTile *tile,
GrDiets diet)
{
- tile->diet = diet;
+ tile->diet = diet;
gtk_label_set_label (GTK_LABEL (tile->label), gr_diet_get_label (diet));
}
diff --git a/src/gr-category-tile.h b/src/gr-category-tile.h
index 3f84535..2658868 100644
--- a/src/gr-category-tile.h
+++ b/src/gr-category-tile.h
@@ -31,7 +31,7 @@ G_DECLARE_FINAL_TYPE (GrCategoryTile, gr_category_tile, GR, CATEGORY_TILE, GtkBu
GtkWidget *gr_category_tile_new (GrDiets diet);
GtkWidget *gr_category_tile_new_with_label (const char *category,
- const char *label);
+ const char *label);
GrDiets gr_category_tile_get_diet (GrCategoryTile *tile);
const char *gr_category_tile_get_category (GrCategoryTile *tile);
const char *gr_category_tile_get_label (GrCategoryTile *tile);
diff --git a/src/gr-chef-tile.c b/src/gr-chef-tile.c
index e2401dd..72ec718 100644
--- a/src/gr-chef-tile.c
+++ b/src/gr-chef-tile.c
@@ -91,17 +91,17 @@ chef_tile_set_chef (GrChefTile *tile,
if (image_path != NULL && image_path[0] != '\0')
css = g_strdup_printf ("image.chef {\n"
- " background: url('%s');\n"
- " background-size: 64px;\n"
- " min-width: 64px;\n"
- " min-height: 64px;\n"
- "}", image_path);
- else
+ " background: url('%s');\n"
+ " background-size: 64px;\n"
+ " min-width: 64px;\n"
+ " min-height: 64px;\n"
+ "}", image_path);
+ else
css = g_strdup_printf ("image.chef {\n"
- " background: rgb(%d,%d,%d);\n"
- " min-width: 64px;\n"
- " min-height: 64px;\n"
- "}",
+ " background: rgb(%d,%d,%d);\n"
+ " min-width: 64px;\n"
+ " min-height: 64px;\n"
+ "}",
g_random_int_range (0, 255),
g_random_int_range (0, 255),
g_random_int_range (0, 255));
diff --git a/src/gr-chef-tile.h b/src/gr-chef-tile.h
index 527fe71..f255a70 100644
--- a/src/gr-chef-tile.h
+++ b/src/gr-chef-tile.h
@@ -29,7 +29,7 @@ G_BEGIN_DECLS
G_DECLARE_FINAL_TYPE (GrChefTile, gr_chef_tile, GR, CHEF_TILE, GtkBox)
-GtkWidget *gr_chef_tile_new (GrChef *chef);
+GtkWidget *gr_chef_tile_new (GrChef *chef);
GrChef *gr_chef_tile_get_chef (GrChefTile *tile);
G_END_DECLS
diff --git a/src/gr-chef.h b/src/gr-chef.h
index 96d8366..d6b4fd6 100644
--- a/src/gr-chef.h
+++ b/src/gr-chef.h
@@ -30,7 +30,7 @@ G_DECLARE_DERIVABLE_TYPE (GrChef, gr_chef, GR, CHEF, GObject)
struct _GrChefClass
{
- GObjectClass parent;
+ GObjectClass parent;
};
GrChef *gr_chef_new (void);
diff --git a/src/gr-cuisine-page.c b/src/gr-cuisine-page.c
index a146e86..1a85091 100644
--- a/src/gr-cuisine-page.c
+++ b/src/gr-cuisine-page.c
@@ -86,11 +86,11 @@ row_selected (GrCuisinePage *page,
}
}
- if (category < 0)
- return;
+ if (category < 0)
+ return;
- adj = gtk_scrolled_window_get_vadjustment (GTK_SCROLLED_WINDOW (page->scrolled_window));
- gtk_widget_get_allocation (page->categories[category].label, &alloc);
+ adj = gtk_scrolled_window_get_vadjustment (GTK_SCROLLED_WINDOW (page->scrolled_window));
+ gtk_widget_get_allocation (page->categories[category].label, &alloc);
page_increment = gtk_adjustment_get_page_increment (adj);
value = gtk_adjustment_get_value (adj);
gtk_adjustment_set_page_increment (adj, alloc.y - value);
@@ -105,7 +105,7 @@ cuisine_page_finalize (GObject *object)
{
GrCuisinePage *self = GR_CUISINE_PAGE (object);
- g_clear_pointer (&self->cuisine, g_free);
+ g_clear_pointer (&self->cuisine, g_free);
g_clear_pointer (&self->categories, g_free);
G_OBJECT_CLASS (gr_cuisine_page_parent_class)->finalize (object);
@@ -185,7 +185,7 @@ gr_cuisine_page_init (GrCuisinePage *page)
gtk_widget_init_template (GTK_WIDGET (page));
populate_initially (page);
- connect_store_signals (page);
+ connect_store_signals (page);
gtk_list_box_set_filter_func (GTK_LIST_BOX (page->sidebar), filter_sidebar, page, NULL);
}
@@ -205,7 +205,7 @@ gr_cuisine_page_class_init (GrCuisinePageClass *klass)
gtk_widget_class_bind_template_child (widget_class, GrCuisinePage, category_box);
gtk_widget_class_bind_template_child (widget_class, GrCuisinePage, stack);
- gtk_widget_class_bind_template_callback (widget_class, row_selected);
+ gtk_widget_class_bind_template_callback (widget_class, row_selected);
}
GtkWidget *
@@ -290,7 +290,7 @@ gr_cuisine_page_set_cuisine (GrCuisinePage *self,
static void
cuisine_page_reload (GrCuisinePage *page)
{
- gr_cuisine_page_set_cuisine (page, page->cuisine);
+ gr_cuisine_page_set_cuisine (page, page->cuisine);
}
static void
diff --git a/src/gr-cuisines-page.c b/src/gr-cuisines-page.c
index 30b3b0c..4300fc9 100644
--- a/src/gr-cuisines-page.c
+++ b/src/gr-cuisines-page.c
@@ -134,8 +134,8 @@ populate_cuisines (GrCuisinesPage *page)
}
tile = gr_cuisine_tile_new (page->featured, TRUE);
- gtk_widget_show (tile);
- gtk_widget_set_halign (tile, GTK_ALIGN_FILL);
+ gtk_widget_show (tile);
+ gtk_widget_set_halign (tile, GTK_ALIGN_FILL);
gtk_grid_attach (GTK_GRID (page->top_box), tile, 0, 0, 2, 1);
tiles = 0;
@@ -145,7 +145,7 @@ populate_cuisines (GrCuisinesPage *page)
tile = gr_cuisine_tile_new (cuisines[i], FALSE);
gtk_widget_show (tile);
- gtk_widget_set_halign (tile, GTK_ALIGN_FILL);
+ gtk_widget_set_halign (tile, GTK_ALIGN_FILL);
gtk_grid_attach (GTK_GRID (page->top_box), tile, tiles % 2, 1 + tiles / 2, 1, 1);
tiles++;
diff --git a/src/gr-details-page.c b/src/gr-details-page.c
index 2003da0..66179e6 100644
--- a/src/gr-details-page.c
+++ b/src/gr-details-page.c
@@ -152,7 +152,7 @@ timer_active_changed (GrTimer *timer,
gtk_stack_set_visible_child_name (GTK_STACK (page->duration_stack), "stop");
}
else {
- gtk_stack_set_visible_child_name (GTK_STACK (page->timer_stack), "icon");
+ gtk_stack_set_visible_child_name (GTK_STACK (page->timer_stack), "icon");
gtk_stack_set_visible_child_name (GTK_STACK (page->duration_stack), "start");
}
}
@@ -332,10 +332,10 @@ static int
time_spin_input (GtkSpinButton *spin_button,
double *new_val)
{
- const char *text;
- gboolean found = FALSE;
+ const char *text;
+ gboolean found = FALSE;
- text = gtk_entry_get_text (GTK_ENTRY (spin_button));
+ text = gtk_entry_get_text (GTK_ENTRY (spin_button));
if (!strchr (text, ':')) {
g_auto(GStrv) str = NULL;
int num;
@@ -372,20 +372,20 @@ time_spin_input (GtkSpinButton *spin_button,
}
else {
g_auto(GStrv) str = NULL;
- int hours;
- int minutes;
- int seconds;
- char *endh;
- char *endm;
- char *ends;
-
- str = g_strsplit (text, ":", 3);
-
- if (g_strv_length (str) == 3) {
- hours = strtol (str[0], &endh,10);
- minutes = strtol (str[1], &endm, 10);
- seconds = strtol (str[2], &ends, 10);
- if (!*endh && !*endm && !*ends &&
+ int hours;
+ int minutes;
+ int seconds;
+ char *endh;
+ char *endm;
+ char *ends;
+
+ str = g_strsplit (text, ":", 3);
+
+ if (g_strv_length (str) == 3) {
+ hours = strtol (str[0], &endh,10);
+ minutes = strtol (str[1], &endm, 10);
+ seconds = strtol (str[2], &ends, 10);
+ if (!*endh && !*endm && !*ends &&
0 <= hours && hours < 24 &&
0 <= minutes && minutes < 60 &&
0 <= seconds && seconds < 60) {
@@ -394,9 +394,9 @@ time_spin_input (GtkSpinButton *spin_button,
}
}
else if (g_strv_length (str) == 2) {
- hours = strtol (str[0], &endh, 10);
- minutes = strtol (str[1], &endm, 10);
- if (!*endh && !*endm &&
+ hours = strtol (str[0], &endh, 10);
+ minutes = strtol (str[1], &endm, 10);
+ if (!*endh && !*endm &&
0 <= hours && hours < 24 &&
0 <= minutes && minutes < 60) {
*new_val = (hours * 60 + minutes) * 60;
diff --git a/src/gr-diet.h b/src/gr-diet.h
index 3d339f6..14651be 100644
--- a/src/gr-diet.h
+++ b/src/gr-diet.h
@@ -26,11 +26,11 @@
G_BEGIN_DECLS
typedef enum { /*< flags >*/
- GR_DIET_GLUTEN_FREE = 1,
- GR_DIET_NUT_FREE = 2,
- GR_DIET_VEGAN = 4,
- GR_DIET_VEGETARIAN = 8,
- GR_DIET_MILK_FREE = 16
+ GR_DIET_GLUTEN_FREE = 1,
+ GR_DIET_NUT_FREE = 2,
+ GR_DIET_VEGAN = 4,
+ GR_DIET_VEGETARIAN = 8,
+ GR_DIET_MILK_FREE = 16
} GrDiets;
diff --git a/src/gr-edit-page.c b/src/gr-edit-page.c
index a885531..7e61616 100644
--- a/src/gr-edit-page.c
+++ b/src/gr-edit-page.c
@@ -723,7 +723,7 @@ gr_edit_page_save (GrEditPage *page)
g_autoptr(GrRecipe) recipe = NULL;
const char *author;
- author = gr_recipe_store_get_user_key (store);
+ author = gr_recipe_store_get_user_key (store);
ensure_user_chef (store, page);
recipe = g_object_new (GR_TYPE_RECIPE,
"name", name,
diff --git a/src/gr-images.c b/src/gr-images.c
index 1fc8a75..e0377f0 100644
--- a/src/gr-images.c
+++ b/src/gr-images.c
@@ -330,7 +330,7 @@ gr_images_get_property (GObject *object,
g_value_set_boxed (value, self->images);
break;
- default:
+ default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
}
}
@@ -355,7 +355,7 @@ gr_images_set_property (GObject *object,
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
- }
+ }
}
static void
diff --git a/src/gr-images.h b/src/gr-images.h
index 560ba32..6cf2168 100644
--- a/src/gr-images.h
+++ b/src/gr-images.h
@@ -25,8 +25,8 @@
G_BEGIN_DECLS
typedef struct {
- char *path;
- int angle;
+ char *path;
+ int angle;
gboolean dark_text;
} GrRotatedImage;
@@ -44,4 +44,3 @@ void gr_images_rotate_image (GrImages *image,
gint angle);
G_END_DECLS
-
diff --git a/src/gr-ingredient-search-tile.c b/src/gr-ingredient-search-tile.c
index 88932bf..652d3b3 100644
--- a/src/gr-ingredient-search-tile.c
+++ b/src/gr-ingredient-search-tile.c
@@ -145,17 +145,17 @@ ingredient_search_tile_set_ingredient (GrIngredientSearchTile *tile, const char
if (image_path != NULL &&
g_file_test (image_path, G_FILE_TEST_EXISTS))
css = g_strdup_printf ("image.ingredient {\n"
- " background: url('%s');\n"
- " background-size: 100%%;\n"
- " min-width: 96px;\n"
- " min-height: 48px;\n"
- "}", image_path);
+ " background: url('%s');\n"
+ " background-size: 100%%;\n"
+ " min-width: 96px;\n"
+ " min-height: 48px;\n"
+ "}", image_path);
else
css = g_strdup_printf ("image.ingredient {\n"
" background: rgb(%d,%d,%d);\n"
- " min-width: 96px;\n"
- " min-height: 48px;\n"
- "}",
+ " min-width: 96px;\n"
+ " min-height: 48px;\n"
+ "}",
g_random_int_range (0, 255),
g_random_int_range (0, 255),
g_random_int_range (0, 255));
diff --git a/src/gr-list-page.c b/src/gr-list-page.c
index 4fd68e8..6f9b2da 100644
--- a/src/gr-list-page.c
+++ b/src/gr-list-page.c
@@ -123,7 +123,7 @@ get_category_title (GrDiets diet)
{
const char *label;
- switch (diet) {
+ switch (diet) {
case GR_DIET_GLUTEN_FREE:
label = _("Gluten-free recipes");
break;
@@ -184,7 +184,7 @@ gr_list_page_populate_from_diet (GrListPage *self,
GtkWidget *tile;
GrDiets diets;
- recipe = gr_recipe_store_get (store, keys[i]);
+ recipe = gr_recipe_store_get (store, keys[i]);
diets = gr_recipe_get_diets (recipe);
if ((diets & diet) == 0)
continue;
@@ -328,7 +328,7 @@ gr_list_page_populate_from_season (GrListPage *self,
g_autoptr(GrRecipe) recipe = NULL;
GtkWidget *tile;
- recipe = gr_recipe_store_get (store, keys[i]);
+ recipe = gr_recipe_store_get (store, keys[i]);
if (g_strcmp0 (self->season, gr_recipe_get_season (recipe)) != 0)
continue;
diff --git a/src/gr-preferences.c b/src/gr-preferences.c
index a624f26..a30d385 100644
--- a/src/gr-preferences.c
+++ b/src/gr-preferences.c
@@ -210,7 +210,7 @@ gr_preferences_class_init (GrPreferencesClass *klass)
object_class->finalize = gr_preferences_finalize;
- gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass),
+ gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass),
"/org/gnome/Recipes/gr-preferences.ui");
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (klass), GrPreferences, fullname);
diff --git a/src/gr-query-editor.c b/src/gr-query-editor.c
index 2addacf..f960b5b 100644
--- a/src/gr-query-editor.c
+++ b/src/gr-query-editor.c
@@ -1,4 +1,4 @@
-/* gr-query-editor.c
+/* gr-query-editor.c:
*
* Copyright (C) 2016 Matthias Clasen <mclasen redhat com>
*
diff --git a/src/gr-recipe-store.h b/src/gr-recipe-store.h
index c544523..cd1b90b 100644
--- a/src/gr-recipe-store.h
+++ b/src/gr-recipe-store.h
@@ -40,7 +40,7 @@ gboolean gr_recipe_store_update (GrRecipeStore *self,
const char *old_name,
GError **error);
gboolean gr_recipe_store_remove (GrRecipeStore *self,
- GrRecipe *recipe);
+ GrRecipe *recipe);
GrRecipe *gr_recipe_store_get (GrRecipeStore *self,
const char *name);
char **gr_recipe_store_get_recipe_keys (GrRecipeStore *self,
@@ -71,15 +71,15 @@ void gr_recipe_store_remove_favorite (GrRecipeStore *self,
gboolean gr_recipe_store_is_favorite (GrRecipeStore *self,
GrRecipe *recipe);
gboolean gr_recipe_store_has_diet (GrRecipeStore *self,
- GrDiets diet);
+ GrDiets diet);
gboolean gr_recipe_store_has_chef (GrRecipeStore *self,
GrChef *chef);
gboolean gr_recipe_store_has_cuisine (GrRecipeStore *self,
const char *cuisine);
void gr_recipe_store_add_cooked (GrRecipeStore *store,
- GrRecipe *recipe);
+ GrRecipe *recipe);
int gr_recipe_store_get_cooked (GrRecipeStore *store,
- GrRecipe *recipe);
+ GrRecipe *recipe);
#define GR_TYPE_RECIPE_SEARCH (gr_recipe_search_get_type())
diff --git a/src/gr-recipe.h b/src/gr-recipe.h
index a6df230..9b8a519 100644
--- a/src/gr-recipe.h
+++ b/src/gr-recipe.h
@@ -32,7 +32,7 @@ G_DECLARE_DERIVABLE_TYPE (GrRecipe, gr_recipe, GR, RECIPE, GObject)
struct _GrRecipeClass
{
- GObjectClass parent;
+ GObjectClass parent;
};
GrRecipe *gr_recipe_new (void);
diff --git a/src/gr-timer-widget.c b/src/gr-timer-widget.c
index 10b1706..570293a 100644
--- a/src/gr-timer-widget.c
+++ b/src/gr-timer-widget.c
@@ -207,12 +207,12 @@ gr_timer_widget_draw (GtkWidget *widget,
if (timer->timer)
active = gr_timer_get_active (timer->timer);
- context = gtk_widget_get_style_context (widget);
- width = gtk_widget_get_allocated_width (widget);
- height = gtk_widget_get_allocated_height (widget);
+ context = gtk_widget_get_style_context (widget);
+ width = gtk_widget_get_allocated_width (widget);
+ height = gtk_widget_get_allocated_height (widget);
- gtk_render_background (context, cr, 0, 0, width, height);
- gtk_render_frame (context, cr, 0, 0, width, height);
+ gtk_render_background (context, cr, 0, 0, width, height);
+ gtk_render_frame (context, cr, 0, 0, width, height);
now = g_get_monotonic_time ();
@@ -223,11 +223,11 @@ gr_timer_widget_draw (GtkWidget *widget,
radius = width / 2;
if (active) {
- angle1 = ((now - gr_timer_get_start_time (timer->timer)) * 2 * M_PI / gr_timer_get_duration
(timer->timer)) + (3 * M_PI / 2);
- angle2 = 3 * M_PI / 2;
+ angle1 = ((now - gr_timer_get_start_time (timer->timer)) * 2 * M_PI / gr_timer_get_duration
(timer->timer)) + (3 * M_PI / 2);
+ angle2 = 3 * M_PI / 2;
cairo_arc (cr, xc, yc, radius, angle1, angle2);
- cairo_line_to (cr, xc, yc);
+ cairo_line_to (cr, xc, yc);
}
else {
cairo_arc (cr, xc, yc, radius, 0, 2 * M_PI);
@@ -236,7 +236,7 @@ gr_timer_widget_draw (GtkWidget *widget,
cairo_close_path (cr);
cairo_fill (cr);
- return FALSE;
+ return FALSE;
}
static void
diff --git a/src/gr-timer-widget.h b/src/gr-timer-widget.h
index c0a3662..9cbf871 100644
--- a/src/gr-timer-widget.h
+++ b/src/gr-timer-widget.h
@@ -31,4 +31,3 @@ G_DECLARE_FINAL_TYPE (GrTimerWidget, gr_timer_widget, GR, TIMER_WIDGET, GtkWidge
GrTimerWidget * gr_timer_widget_new (void);
G_END_DECLS
-
diff --git a/src/gr-timer.c b/src/gr-timer.c
index 2b19dc6..0120d63 100644
--- a/src/gr-timer.c
+++ b/src/gr-timer.c
@@ -173,7 +173,7 @@ gr_timer_get_property (GObject *object,
GValue *value,
GParamSpec *pspec)
{
- GrTimer *self = GR_TIMER (object);
+ GrTimer *self = GR_TIMER (object);
switch (prop_id)
{
@@ -204,7 +204,7 @@ gr_timer_set_property (GObject *object,
const GValue *value,
GParamSpec *pspec)
{
- GrTimer *self = GR_TIMER (object);
+ GrTimer *self = GR_TIMER (object);
switch (prop_id)
{
@@ -238,9 +238,9 @@ gr_timer_class_init (GrTimerClass *klass)
G_TYPE_FROM_CLASS (object_class),
G_SIGNAL_RUN_LAST,
0,
- NULL, NULL,
- NULL,
- G_TYPE_NONE, 0);
+ NULL, NULL,
+ NULL,
+ G_TYPE_NONE, 0);
g_object_class_install_property (object_class,
PROP_ACTIVE,
diff --git a/src/gr-utils.h b/src/gr-utils.h
index 21f7ef8..696f2f8 100644
--- a/src/gr-utils.h
+++ b/src/gr-utils.h
@@ -25,12 +25,12 @@
G_BEGIN_DECLS
GdkPixbuf *load_pixbuf_fit_size (const char *path,
- int angle,
+ int angle,
int width,
int height,
gboolean pad);
GdkPixbuf *load_pixbuf_fill_size (const char *path,
- int angle,
+ int angle,
int width,
int height);
diff --git a/src/gr-window.c b/src/gr-window.c
index f31ac22..7f64ca7 100644
--- a/src/gr-window.c
+++ b/src/gr-window.c
@@ -182,11 +182,11 @@ switch_to_search (GrWindow *window)
gtk_header_bar_set_title (GTK_HEADER_BAR (window->header), _("Search"));
- gtk_stack_set_visible_child_name (GTK_STACK (window->header_start_stack), "back");
- gtk_stack_set_visible_child_name (GTK_STACK (window->header_title_stack), "title");
- gtk_stack_set_visible_child_name (GTK_STACK (window->header_end_stack), "search");
+ gtk_stack_set_visible_child_name (GTK_STACK (window->header_start_stack), "back");
+ gtk_stack_set_visible_child_name (GTK_STACK (window->header_title_stack), "title");
+ gtk_stack_set_visible_child_name (GTK_STACK (window->header_end_stack), "search");
- gtk_stack_set_visible_child_name (GTK_STACK (window->main_stack), "search");
+ gtk_stack_set_visible_child_name (GTK_STACK (window->main_stack), "search");
}
void
@@ -388,11 +388,11 @@ void
gr_window_go_back (GrWindow *window)
{
if (g_queue_is_empty (window->back_entry_stack)) {
- gtk_stack_set_visible_child_name (GTK_STACK (window->header_start_stack), "main");
- gtk_stack_set_visible_child_name (GTK_STACK (window->header_title_stack), "main");
- gtk_stack_set_visible_child_name (GTK_STACK (window->header_end_stack), "search");
+ gtk_stack_set_visible_child_name (GTK_STACK (window->header_start_stack), "main");
+ gtk_stack_set_visible_child_name (GTK_STACK (window->header_title_stack), "main");
+ gtk_stack_set_visible_child_name (GTK_STACK (window->header_end_stack), "search");
- gtk_stack_set_visible_child_name (GTK_STACK (window->main_stack), "recipes");
+ gtk_stack_set_visible_child_name (GTK_STACK (window->main_stack), "recipes");
}
else {
go_back (window);
@@ -576,7 +576,7 @@ gr_window_show_cuisine (GrWindow *window,
const char *cuisine,
const char *title)
{
- save_back_entry (window);
+ save_back_entry (window);
gr_cuisine_page_set_cuisine (GR_CUISINE_PAGE (window->cuisine_page), cuisine);
@@ -594,7 +594,7 @@ gr_window_show_season (GrWindow *window,
const char *season,
const char *title)
{
- save_back_entry (window);
+ save_back_entry (window);
gr_list_page_populate_from_season (GR_LIST_PAGE (window->list_page), season);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]