[gnome-color-manager] Fix GTK3 compile by not using gdk_drawable_get_size()



commit 883636177321abee7e22d50dd1e57a609c15bc0d
Author: Richard Hughes <richard hughsie com>
Date:   Mon Oct 4 13:51:55 2010 +0100

    Fix GTK3 compile by not using gdk_drawable_get_size()

 src/gcm-client.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gcm-client.c b/src/gcm-client.c
index a0272bf..6fe0c11 100644
--- a/src/gcm-client.c
+++ b/src/gcm-client.c
@@ -600,7 +600,8 @@ gcm_client_get_device_by_window (GcmClient *client, GdkWindow *window)
 
 	/* get the window parameters, in root co-ordinates */
 	gdk_window_get_origin (window, &window_x, &window_y);
-	gdk_drawable_get_size (GDK_DRAWABLE(window), &window_width, &window_height);
+	window_width = gdk_window_get_width (window);
+	window_height = gdk_window_get_height (window);
 
 	/* get list of updates */
 	outputs = gcm_x11_screen_get_outputs (client->priv->screen, NULL);



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