From b4af7eca1d880dd497fe8d9581905f950176378b Mon Sep 17 00:00:00 2001 From: infirit Date: Mon, 20 Jul 2015 20:34:09 +0200 Subject: mate-bg: remove unused GdkScreen* arguments The GdkScreen* was being passed into some functions that weren't using it at all. Remove those extra arguments. --- libmate-desktop/mate-bg.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/libmate-desktop/mate-bg.c b/libmate-desktop/mate-bg.c index 8f48297..beb0e90 100644 --- a/libmate-desktop/mate-bg.c +++ b/libmate-desktop/mate-bg.c @@ -858,8 +858,7 @@ draw_color_area (MateBG *bg, static void draw_color (MateBG *bg, - GdkPixbuf *dest, - GdkScreen *screen) + GdkPixbuf *dest) { GdkRectangle rect; @@ -1025,7 +1024,6 @@ draw_image_for_thumb (MateBG *bg, static void draw_once (MateBG *bg, GdkPixbuf *dest, - GdkScreen *screen, gboolean is_root) { GdkRectangle rect; @@ -1086,9 +1084,9 @@ mate_bg_draw (MateBG *bg, draw_each_monitor (bg, dest, screen); } } else { - draw_color (bg, dest, screen); + draw_color (bg, dest); if (bg->filename) { - draw_once (bg, dest, screen, is_root); + draw_once (bg, dest, is_root); } } } @@ -1413,7 +1411,7 @@ mate_bg_create_thumbnail (MateBG *bg, result = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8, dest_width, dest_height); - draw_color (bg, result, screen); + draw_color (bg, result); if (bg->filename) { thumb = create_img_thumbnail (bg, factory, screen, dest_width, dest_height, -1); @@ -3277,7 +3275,7 @@ mate_bg_create_frame_thumbnail (MateBG *bg, result = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8, dest_width, dest_height); - draw_color (bg, result, screen); + draw_color (bg, result); if (bg->filename) { thumb = create_img_thumbnail (bg, factory, screen, -- cgit v1.2.1