[gtk+/rendering-cleanup-next: 180/199] widget: Get rid of gdk_drawable_get_size() usage



commit 09c4b8a8cdca5755a02c76d38b4a3d1d79fac5c8
Author: Benjamin Otte <otte redhat com>
Date:   Mon Sep 20 16:44:47 2010 +0200

    widget: Get rid of gdk_drawable_get_size() usage

 gtk/gtkwidget.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index a2dd22b..937eebb 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -3980,7 +3980,8 @@ gtk_widget_queue_draw_area (GtkWidget *widget,
 	  x -= wx - priv->allocation.x;
 	  y -= wy - priv->allocation.y;
 
-	  gdk_drawable_get_size (priv->window, &wwidth, &wheight);
+          wwidth = gdk_window_get_width (priv->window);
+          wheight = gdk_window_get_height (priv->window);
 
 	  if (x + width <= 0 || y + height <= 0 ||
 	      x >= wwidth || y >= wheight)



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