diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2019-11-26 01:50:13 +0200 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2019-11-26 01:50:13 +0200 |
commit | 41cb0a806b3c6ec2bb54e94757da25ea7eb4e0a7 (patch) | |
tree | ba7630296d8bb273accf1f5597d0240561deabb4 /libgnome-desktop | |
parent | c89732afc0a761efc6843ad753184caed6770456 (diff) | |
download | gnome-desktop-41cb0a806b3c6ec2bb54e94757da25ea7eb4e0a7.tar.gz |
bg: remove average_color_key
Unused since b8e99fc3378a commit.
Diffstat (limited to 'libgnome-desktop')
-rw-r--r-- | libgnome-desktop/gnome-bg.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/libgnome-desktop/gnome-bg.c b/libgnome-desktop/gnome-bg.c index 7c193496..af870f50 100644 --- a/libgnome-desktop/gnome-bg.c +++ b/libgnome-desktop/gnome-bg.c @@ -100,8 +100,6 @@ enum { N_SIGNALS }; -static const cairo_user_data_key_t average_color_key; - static guint signals[N_SIGNALS] = { 0 }; G_DEFINE_TYPE (GnomeBG, gnome_bg, G_TYPE_OBJECT) @@ -1068,7 +1066,6 @@ gnome_bg_create_surface (GnomeBG *bg, gint scale; int pm_width, pm_height; cairo_surface_t *surface; - GdkRGBA average; cairo_t *cr; g_return_val_if_fail (bg != NULL, NULL); @@ -1098,7 +1095,6 @@ gnome_bg_create_surface (GnomeBG *bg, cr = cairo_create (surface); if (!bg->filename && bg->color_type == G_DESKTOP_BACKGROUND_SHADING_SOLID) { gdk_cairo_set_source_rgba (cr, &(bg->primary)); - average = bg->primary; } else { GdkPixbuf *pixbuf; @@ -1107,7 +1103,6 @@ gnome_bg_create_surface (GnomeBG *bg, pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8, scale * width, scale * height); gnome_bg_draw_at_scale (bg, pixbuf, scale, gdk_window_get_screen (window), root); - pixbuf_average_value (pixbuf, &average); pixbuf_surface = gdk_cairo_surface_create_from_pixbuf (pixbuf, 0, window); cairo_set_source_surface (cr, pixbuf_surface, 0, 0); @@ -1120,10 +1115,6 @@ gnome_bg_create_surface (GnomeBG *bg, cairo_destroy (cr); - cairo_surface_set_user_data (surface, &average_color_key, - gdk_rgba_copy (&average), - (cairo_destroy_func_t) gdk_rgba_free); - return surface; } |