[gnome-settings-daemon] Adapt to GnomeBG API changes
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] Adapt to GnomeBG API changes
- Date: Sat, 2 Oct 2010 08:59:11 +0000 (UTC)
commit d38bb683005b71f3bf483aafee2f7c36d800a0c7
Author: William Jon McCann <jmccann redhat com>
Date: Wed Sep 29 19:55:18 2010 -0400
Adapt to GnomeBG API changes
https://bugzilla.gnome.org/show_bug.cgi?id=630975
plugins/background/gsd-background-manager.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/plugins/background/gsd-background-manager.c b/plugins/background/gsd-background-manager.c
index 5592df9..dde53c8 100644
--- a/plugins/background/gsd-background-manager.c
+++ b/plugins/background/gsd-background-manager.c
@@ -180,29 +180,29 @@ draw_background (GsdBackgroundManager *manager,
for (i = 0; i < n_screens; ++i) {
GdkScreen *screen;
GdkWindow *root_window;
- GdkPixmap *pixmap;
+ cairo_surface_t *surface;
screen = gdk_display_get_screen (display, i);
root_window = gdk_screen_get_root_window (screen);
- pixmap = gnome_bg_create_pixmap (manager->priv->bg,
- root_window,
- gdk_screen_get_width (screen),
- gdk_screen_get_height (screen),
- TRUE);
+ surface = gnome_bg_create_surface (manager->priv->bg,
+ root_window,
+ gdk_screen_get_width (screen),
+ gdk_screen_get_height (screen),
+ TRUE);
if (use_crossfade) {
GnomeBGCrossfade *fade;
- fade = gnome_bg_set_pixmap_as_root_with_crossfade (screen, pixmap);
+ fade = gnome_bg_set_surface_as_root_with_crossfade (screen, surface);
g_signal_connect (fade, "finished",
G_CALLBACK (g_object_unref), NULL);
} else {
- gnome_bg_set_pixmap_as_root (screen, pixmap);
+ gnome_bg_set_surface_as_root (screen, surface);
}
- g_object_unref (pixmap);
+ cairo_surface_destroy (surface);
}
gnome_settings_profile_end (NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]