[eog/wip/baedert/gtkimageview: 65/75] scroll-view: Remove unused parameter
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog/wip/baedert/gtkimageview: 65/75] scroll-view: Remove unused parameter
- Date: Sat, 19 Mar 2016 17:10:09 +0000 (UTC)
commit ca292ac0cbaa2d8105f0f51d54bf3fb359b1d71b
Author: Timm Bäder <mail baedert org>
Date: Sat Mar 19 10:56:49 2016 +0100
scroll-view: Remove unused parameter
size is always CHECK_MEDIUM anyway.
src/eog-scroll-view.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/eog-scroll-view.c b/src/eog-scroll-view.c
index 2f7e56e..940bb73 100644
--- a/src/eog-scroll-view.c
+++ b/src/eog-scroll-view.c
@@ -307,7 +307,7 @@ is_image_movable (EogScrollView *view)
---------------------------------*/
static void
-get_transparency_params (EogScrollView *view, int *size, GdkRGBA *color1, GdkRGBA *color2)
+get_transparency_params (EogScrollView *view, GdkRGBA *color1, GdkRGBA *color2)
{
EogScrollViewPrivate *priv;
@@ -334,24 +334,22 @@ get_transparency_params (EogScrollView *view, int *size, GdkRGBA *color1, GdkRGB
default:
g_assert_not_reached ();
};
-
- *size = CHECK_MEDIUM;
}
static cairo_surface_t *
create_background_surface (EogScrollView *view)
{
- int check_size;
+ int check_size = CHECK_MEDIUM;
GdkRGBA check_1;
GdkRGBA check_2;
cairo_surface_t *surface;
- get_transparency_params (view, &check_size, &check_1, &check_2);
+ get_transparency_params (view, &check_1, &check_2);
surface = gdk_window_create_similar_surface (gtk_widget_get_window (view->priv->display),
CAIRO_CONTENT_COLOR_ALPHA,
check_size * 2, check_size * 2);
- cairo_t* cr = cairo_create (surface);
+ cairo_t *cr = cairo_create (surface);
/* Use source operator to make fully transparent work */
cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]