[gtk+] plug: Get rid of gdk_drawable_get_size() usage
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] plug: Get rid of gdk_drawable_get_size() usage
- Date: Sun, 26 Sep 2010 13:46:02 +0000 (UTC)
commit fb43f590e9334c24e98206efee8fd707efa6ddfd
Author: Benjamin Otte <otte redhat com>
Date: Mon Sep 20 16:39:54 2010 +0200
plug: Get rid of gdk_drawable_get_size() usage
gtk/gtkplug.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkplug.c b/gtk/gtkplug.c
index bdc5290..f1209cb 100644
--- a/gtk/gtkplug.c
+++ b/gtk/gtkplug.c
@@ -335,7 +335,6 @@ _gtk_plug_add_to_socket (GtkPlug *plug,
{
GtkPlugPrivate *priv;
GtkWidget *widget;
- gint w, h;
g_return_if_fail (GTK_IS_PLUG (plug));
g_return_if_fail (GTK_IS_SOCKET (socket_));
@@ -359,8 +358,9 @@ _gtk_plug_add_to_socket (GtkPlug *plug,
GdkWindow *window;
window = gtk_widget_get_window (widget);
- gdk_drawable_get_size (GDK_DRAWABLE (window), &w, &h);
- gdk_window_reparent (window, priv->socket_window, -w, -h);
+ gdk_window_reparent (window, priv->socket_window,
+ -gdk_window_get_width (window),
+ -gdk_window_get_height (window));
}
gtk_widget_set_parent (widget, GTK_WIDGET (socket_));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]