[gnome-desktop] gnome-bg: remove unused GdkScreen* arguments
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-desktop] gnome-bg: remove unused GdkScreen* arguments
- Date: Wed, 14 Mar 2012 01:46:27 +0000 (UTC)
commit 4acf529c42296b6f8ddfddae9c0cda7ce2626a68
Author: Ryan Lortie <desrt desrt ca>
Date: Tue Mar 13 20:50:46 2012 -0400
gnome-bg: remove unused GdkScreen* arguments
The GdkScreen* was being passed into some functions that weren't using
it at all. Remove those extra arguments.
libgnome-desktop/gnome-bg.c | 14 ++++++--------
1 files changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/libgnome-desktop/gnome-bg.c b/libgnome-desktop/gnome-bg.c
index 10160a3..c6e4e06 100644
--- a/libgnome-desktop/gnome-bg.c
+++ b/libgnome-desktop/gnome-bg.c
@@ -764,8 +764,7 @@ draw_color_area (GnomeBG *bg,
static void
draw_color (GnomeBG *bg,
- GdkPixbuf *dest,
- GdkScreen *screen)
+ GdkPixbuf *dest)
{
GdkRectangle rect;
rect.x = 0;
@@ -928,8 +927,7 @@ draw_image_for_thumb (GnomeBG *bg,
static void
draw_once (GnomeBG *bg,
- GdkPixbuf *dest,
- GdkScreen *screen)
+ GdkPixbuf *dest)
{
GdkRectangle rect;
GdkPixbuf *pixbuf;
@@ -993,9 +991,9 @@ gnome_bg_draw (GnomeBG *bg,
draw_each_monitor (bg, dest, screen);
}
} else {
- draw_color (bg, dest, screen);
+ draw_color (bg, dest);
if (bg->placement != G_DESKTOP_BACKGROUND_STYLE_NONE) {
- draw_once (bg, dest, screen);
+ draw_once (bg, dest);
}
}
}
@@ -1323,7 +1321,7 @@ gnome_bg_create_thumbnail (GnomeBG *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->placement != G_DESKTOP_BACKGROUND_STYLE_NONE) {
thumb = create_img_thumbnail (bg, factory, screen, dest_width, dest_height, -1);
@@ -3123,7 +3121,7 @@ gnome_bg_create_frame_thumbnail (GnomeBG *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->placement != G_DESKTOP_BACKGROUND_STYLE_NONE) {
thumb = create_img_thumbnail (bg, factory, screen, dest_width, dest_height, frame_num + skipped);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]