[gtk+] gtk/gtkhandlebox.c: Do not use gdk_window_get_deskrelative_origin()
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtk/gtkhandlebox.c: Do not use gdk_window_get_deskrelative_origin()
- Date: Thu, 9 Sep 2010 00:52:43 +0000 (UTC)
commit 72ac2175e2f0d3acd321ab8b8201e01806c3bfc4
Author: Javier Jardón <jjardon gnome org>
Date: Thu Sep 9 02:25:25 2010 +0200
gtk/gtkhandlebox.c: Do not use gdk_window_get_deskrelative_origin()
This completes commit bd277fad50704f6a39619cb418204bdfee112b98
gtk/gtkhandlebox.c | 10 ----------
1 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/gtk/gtkhandlebox.c b/gtk/gtkhandlebox.c
index 0221ae6..423a4f2 100644
--- a/gtk/gtkhandlebox.c
+++ b/gtk/gtkhandlebox.c
@@ -57,9 +57,6 @@ struct _GtkHandleBoxPrivate
/* Variables used during a drag
*/
- gint deskoff_x; /* Offset between root relative coords */
- gint deskoff_y; /* and deskrelative coords */
-
gint orig_x;
gint orig_y;
@@ -1144,13 +1141,11 @@ gtk_handle_box_button_press (GtkWidget *widget,
{
GtkWidget *invisible = gtk_handle_box_get_invisible ();
GdkWindow *window;
- gint desk_x, desk_y;
gint root_x, root_y;
gint width, height;
gtk_invisible_set_screen (GTK_INVISIBLE (invisible),
gtk_widget_get_screen (GTK_WIDGET (hb)));
- gdk_window_get_deskrelative_origin (priv->bin_window, &desk_x, &desk_y);
gdk_window_get_origin (priv->bin_window, &root_x, &root_y);
gdk_drawable_get_size (priv->bin_window, &width, &height);
@@ -1162,9 +1157,6 @@ gtk_handle_box_button_press (GtkWidget *widget,
priv->float_allocation.width = width;
priv->float_allocation.height = height;
- priv->deskoff_x = desk_x - root_x;
- priv->deskoff_y = desk_y - root_y;
-
window = gtk_widget_get_window (widget);
if (gdk_window_is_viewable (window))
{
@@ -1353,8 +1345,6 @@ gtk_handle_box_motion (GtkWidget *widget,
gint width, height;
gdk_drawable_get_size (priv->float_window, &width, &height);
- new_x += priv->deskoff_x;
- new_y += priv->deskoff_y;
switch (handle_position)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]