diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2014-08-29 17:33:27 -0700 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2014-10-03 06:18:04 +0200 |
commit | 6556e7e08de0cc9e66e83a22b4250f9d14ec4cdc (patch) | |
tree | 7e442dabbb84a054e9d86e8a74597b20f9951436 | |
parent | e683e915b80e70574a9e21de087522a6c1e45f24 (diff) | |
download | gtk+-6556e7e08de0cc9e66e83a22b4250f9d14ec4cdc.tar.gz |
cssshadowvalue: Rename shadow_key to original_cr_key
shadow_key is a poor name for this, and we're going to add more user
data keys, so rename it to something more indicative of what it's used
for.
-rw-r--r-- | gtk/gtkcssshadowvalue.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkcssshadowvalue.c b/gtk/gtkcssshadowvalue.c index 7f72698df2..239fb25b89 100644 --- a/gtk/gtkcssshadowvalue.c +++ b/gtk/gtkcssshadowvalue.c @@ -311,7 +311,7 @@ fail: return NULL; } -static const cairo_user_data_key_t shadow_key; +static const cairo_user_data_key_t original_cr_key; static cairo_t * gtk_css_shadow_value_start_drawing (const GtkCssValue *shadow, @@ -337,7 +337,7 @@ gtk_css_shadow_value_start_drawing (const GtkCssValue *shadow, clip_rect.height + 2 * clip_radius); cairo_surface_set_device_offset (surface, clip_radius - clip_rect.x, clip_radius - clip_rect.y); blur_cr = cairo_create (surface); - cairo_set_user_data (blur_cr, &shadow_key, cairo_reference (cr), (cairo_destroy_func_t) cairo_destroy); + cairo_set_user_data (blur_cr, &original_cr_key, cairo_reference (cr), (cairo_destroy_func_t) cairo_destroy); if (cairo_has_current_point (cr)) { @@ -363,7 +363,7 @@ gtk_css_shadow_value_finish_drawing (const GtkCssValue *shadow, return cr; surface = cairo_get_target (cr); - original_cr = cairo_get_user_data (cr, &shadow_key); + original_cr = cairo_get_user_data (cr, &original_cr_key); /* Blur the surface. */ _gtk_cairo_blur_surface (surface, radius); |