[clutter-gtk] embed: Remove unused function
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter-gtk] embed: Remove unused function
- Date: Tue, 15 Sep 2015 12:34:13 +0000 (UTC)
commit 1f9e4afe800915fd5b6a40d3d412ec14b167cb3a
Author: Emmanuele Bassi <ebassi gnome org>
Date: Tue Sep 15 13:28:30 2015 +0100
embed: Remove unused function
The get_window_position_relative_to_parent() function has been moved
into Clutter's own backend.
clutter-gtk/gtk-clutter-embed.c | 25 -------------------------
1 files changed, 0 insertions(+), 25 deletions(-)
---
diff --git a/clutter-gtk/gtk-clutter-embed.c b/clutter-gtk/gtk-clutter-embed.c
index f54ac72..0ea81f0 100644
--- a/clutter-gtk/gtk-clutter-embed.c
+++ b/clutter-gtk/gtk-clutter-embed.c
@@ -165,31 +165,6 @@ gtk_clutter_embed_send_configure (GtkClutterEmbed *embed)
#if defined(GDK_WINDOWING_WAYLAND) && defined(CLUTTER_WINDOWING_WAYLAND)
static void
-get_window_position_relative_to_parent (GdkWindow *window,
- GdkWindow *parent,
- gint *x,
- gint *y)
-{
- gint lx, ly;
-
- if (window == parent ||
- gdk_window_get_window_type (window) == GDK_WINDOW_TOPLEVEL)
- {
- *x = 0;
- *y = 0;
- return;
- }
-
- get_window_position_relative_to_parent (gdk_window_get_parent (window),
- parent,
- &lx, &ly);
- gdk_window_get_position (window, x, y);
-
- *x += lx;
- *y += ly;
-}
-
-static void
gtk_clutter_embed_ensure_surface (GtkClutterEmbed *embed)
{
GtkClutterEmbedPrivate *priv = embed->priv;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]