summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2015-07-20 20:34:09 +0200
committerinfirit <[email protected]>2015-07-30 00:15:48 +0200
commitb4af7eca1d880dd497fe8d9581905f950176378b (patch)
tree556741a88c516e0239d890025ceacdd219ab8a89
parentba9d188a4678ba2a7651502f3efed482ce767278 (diff)
downloadmate-desktop-b4af7eca1d880dd497fe8d9581905f950176378b.tar.bz2
mate-desktop-b4af7eca1d880dd497fe8d9581905f950176378b.tar.xz
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.
-rw-r--r--libmate-desktop/mate-bg.c12
1 files 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,