[gnome-flashback] common: remove gf_bg_set_surface_as_root_with_crossfade
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] common: remove gf_bg_set_surface_as_root_with_crossfade
- Date: Sat, 20 Mar 2021 17:09:32 +0000 (UTC)
commit d04eda9f09ea4fecf4fbcce3188d55409f76f1a3
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sat Mar 20 18:24:31 2021 +0200
common: remove gf_bg_set_surface_as_root_with_crossfade
gnome-flashback/libcommon/gf-bg.c | 35 -----------------------------------
gnome-flashback/libcommon/gf-bg.h | 4 ----
2 files changed, 39 deletions(-)
---
diff --git a/gnome-flashback/libcommon/gf-bg.c b/gnome-flashback/libcommon/gf-bg.c
index 360cd5c..68230bc 100644
--- a/gnome-flashback/libcommon/gf-bg.c
+++ b/gnome-flashback/libcommon/gf-bg.c
@@ -1259,41 +1259,6 @@ gf_bg_set_surface_as_root (GdkScreen *screen,
gdk_x11_display_ungrab (gdk_screen_get_display (screen));
}
-GnomeBGCrossfade *
-gf_bg_set_surface_as_root_with_crossfade (GdkScreen *screen,
- cairo_surface_t *surface)
-{
- GdkDisplay *display;
- GdkWindow *root_window;
- cairo_surface_t *old_surface;
- int width, height;
- GnomeBGCrossfade *fade;
-
- g_return_val_if_fail (screen != NULL, NULL);
- g_return_val_if_fail (surface != NULL, NULL);
-
- root_window = gdk_screen_get_root_window (screen);
-
- width = gdk_screen_get_width (screen);
- height = gdk_screen_get_height (screen);
-
- fade = gnome_bg_crossfade_new (width, height);
-
- display = gdk_screen_get_display (screen);
- gdk_x11_display_grab (display);
- old_surface = gf_bg_get_surface_from_root (screen);
- gf_bg_set_root_pixmap_id (screen, surface);
- gnome_bg_crossfade_set_start_surface (fade, old_surface);
- cairo_surface_destroy (old_surface);
- gnome_bg_crossfade_set_end_surface (fade, surface);
- gdk_display_flush (display);
- gdk_x11_display_ungrab (display);
-
- gnome_bg_crossfade_start (fade, root_window);
-
- return fade;
-}
-
/* Implementation of the pixbuf cache */
struct _SlideShow
{
diff --git a/gnome-flashback/libcommon/gf-bg.h b/gnome-flashback/libcommon/gf-bg.h
index ffc8794..b7e40b8 100644
--- a/gnome-flashback/libcommon/gf-bg.h
+++ b/gnome-flashback/libcommon/gf-bg.h
@@ -24,8 +24,6 @@
#include <gdk/gdk.h>
#include <gio/gio.h>
#include <gdesktop-enums.h>
-#include <libgnome-desktop/gnome-bg-crossfade.h>
-#include <gdesktop-enums.h>
G_BEGIN_DECLS
@@ -56,8 +54,6 @@ cairo_surface_t *gf_bg_create_surface (GfBG *bg,
void gf_bg_set_surface_as_root (GdkScreen *screen,
cairo_surface_t *surface);
-GnomeBGCrossfade *gf_bg_set_surface_as_root_with_crossfade (GdkScreen *screen,
- cairo_surface_t *surface);
cairo_surface_t *gf_bg_get_surface_from_root (GdkScreen *screen);
GdkRGBA *gf_bg_get_average_color_from_surface (cairo_surface_t *surface);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]