[gtk+/rendering-cleanup-next: 181/199] window: Get rid of gdk_drawable_get_size() usage
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup-next: 181/199] window: Get rid of gdk_drawable_get_size() usage
- Date: Thu, 23 Sep 2010 21:34:19 +0000 (UTC)
commit 40752ccbc659ed344330ed3bb0420aae5da5d28a
Author: Benjamin Otte <otte redhat com>
Date: Mon Sep 20 16:44:57 2010 +0200
window: Get rid of gdk_drawable_get_size() usage
gtk/gtkwindow.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 1e40a15..30602c2 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -3990,8 +3990,8 @@ gtk_window_get_size (GtkWindow *window,
if (gtk_widget_get_mapped (GTK_WIDGET (window)))
{
- gdk_drawable_get_size (gtk_widget_get_window (GTK_WIDGET (window)),
- &w, &h);
+ w = gdk_window_get_width (gtk_widget_get_window (GTK_WIDGET (window)));
+ h = gdk_window_get_height (gtk_widget_get_window (GTK_WIDGET (window)));
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]