[nautilus/gtk3-happyness] eel-ackground: Cope with renamings of gnome-bg APIs



commit bc1be3e67f0ea447c80c67b57229130e9bb1f435
Author: Benjamin Otte <otte redhat com>
Date:   Wed Sep 29 19:07:50 2010 +0200

    eel-ackground: Cope with renamings of gnome-bg APIs

 eel/eel-background.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/eel/eel-background.c b/eel/eel-background.c
index cc70eef..a365254 100644
--- a/eel/eel-background.c
+++ b/eel/eel-background.c
@@ -638,7 +638,7 @@ set_root_surface (EelBackground *background,
 							gdk_screen_get_width (screen), gdk_screen_get_height (screen), TRUE);
 	}
 
-	gnome_bg_set_pixmap_as_root (screen, surface);
+	gnome_bg_set_surface_as_root (screen, surface);
 
 	cairo_surface_destroy (surface);
 	cairo_surface_destroy (root_surface);
@@ -662,8 +662,8 @@ fade_to_surface (EelBackground *background,
 		return FALSE;
 	}
 
-	if (!gnome_bg_crossfade_set_end_pixmap (background->details->fade,
-				                surface)) {
+	if (!gnome_bg_crossfade_set_end_surface (background->details->fade,
+				                 surface)) {
 		return FALSE;
 	}
 
@@ -793,12 +793,12 @@ init_fade (EelBackground *background, GtkWidget *widget)
 		cairo_surface_t *start_surface;
 
 		if (background->details->background_surface == NULL) {
-			start_surface = gnome_bg_get_pixmap_from_root (gtk_widget_get_screen (widget));
+			start_surface = gnome_bg_get_surface_from_root (gtk_widget_get_screen (widget));
 		} else {
 			start_surface = cairo_surface_reference (background->details->background_surface);
 		}
-		gnome_bg_crossfade_set_start_pixmap (background->details->fade,
-						     start_surface);
+		gnome_bg_crossfade_set_start_surface (background->details->fade,
+						      start_surface);
                 cairo_surface_destroy (start_surface);
 	}
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]