summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@nuclecu.unam.mx>1998-08-20 16:55:16 +0000
committerArturo Espinosa <unammx@src.gnome.org>1998-08-20 16:55:16 +0000
commitcad57a6686b44e97031269fc22ef3cf9f5f317fc (patch)
treef7eb868bfaf7ea906873c531edf20ccd9965cb15
parente946fcf69d1e7b4697c53f7ba2590ad43df27450 (diff)
downloadgtk+-cad57a6686b44e97031269fc22ef3cf9f5f317fc.tar.gz
Do not do anything if the event's window is not the bin window.
1998-08-20 Federico Mena Quintero <federico@nuclecu.unam.mx> * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Do not do anything if the event's window is not the bin window. (gtk_handle_box_motion): Likewise.
-rw-r--r--ChangeLog6
-rw-r--r--ChangeLog.pre-2-06
-rw-r--r--ChangeLog.pre-2-106
-rw-r--r--ChangeLog.pre-2-26
-rw-r--r--ChangeLog.pre-2-46
-rw-r--r--ChangeLog.pre-2-66
-rw-r--r--ChangeLog.pre-2-86
-rw-r--r--gtk/gtkhandlebox.c6
8 files changed, 48 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 1e109dbbc3..3e346e70b8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+1998-08-20 Federico Mena Quintero <federico@nuclecu.unam.mx>
+
+ * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Do not do
+ anything if the event's window is not the bin window.
+ (gtk_handle_box_motion): Likewise.
+
1998-08-19 Raph Levien <raph@gimp.org>
* gtk/testgtk.c (create_color_preview): pushed the colormap and
diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0
index 1e109dbbc3..3e346e70b8 100644
--- a/ChangeLog.pre-2-0
+++ b/ChangeLog.pre-2-0
@@ -1,3 +1,9 @@
+1998-08-20 Federico Mena Quintero <federico@nuclecu.unam.mx>
+
+ * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Do not do
+ anything if the event's window is not the bin window.
+ (gtk_handle_box_motion): Likewise.
+
1998-08-19 Raph Levien <raph@gimp.org>
* gtk/testgtk.c (create_color_preview): pushed the colormap and
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 1e109dbbc3..3e346e70b8 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -1,3 +1,9 @@
+1998-08-20 Federico Mena Quintero <federico@nuclecu.unam.mx>
+
+ * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Do not do
+ anything if the event's window is not the bin window.
+ (gtk_handle_box_motion): Likewise.
+
1998-08-19 Raph Levien <raph@gimp.org>
* gtk/testgtk.c (create_color_preview): pushed the colormap and
diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2
index 1e109dbbc3..3e346e70b8 100644
--- a/ChangeLog.pre-2-2
+++ b/ChangeLog.pre-2-2
@@ -1,3 +1,9 @@
+1998-08-20 Federico Mena Quintero <federico@nuclecu.unam.mx>
+
+ * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Do not do
+ anything if the event's window is not the bin window.
+ (gtk_handle_box_motion): Likewise.
+
1998-08-19 Raph Levien <raph@gimp.org>
* gtk/testgtk.c (create_color_preview): pushed the colormap and
diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4
index 1e109dbbc3..3e346e70b8 100644
--- a/ChangeLog.pre-2-4
+++ b/ChangeLog.pre-2-4
@@ -1,3 +1,9 @@
+1998-08-20 Federico Mena Quintero <federico@nuclecu.unam.mx>
+
+ * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Do not do
+ anything if the event's window is not the bin window.
+ (gtk_handle_box_motion): Likewise.
+
1998-08-19 Raph Levien <raph@gimp.org>
* gtk/testgtk.c (create_color_preview): pushed the colormap and
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index 1e109dbbc3..3e346e70b8 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -1,3 +1,9 @@
+1998-08-20 Federico Mena Quintero <federico@nuclecu.unam.mx>
+
+ * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Do not do
+ anything if the event's window is not the bin window.
+ (gtk_handle_box_motion): Likewise.
+
1998-08-19 Raph Levien <raph@gimp.org>
* gtk/testgtk.c (create_color_preview): pushed the colormap and
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index 1e109dbbc3..3e346e70b8 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -1,3 +1,9 @@
+1998-08-20 Federico Mena Quintero <federico@nuclecu.unam.mx>
+
+ * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Do not do
+ anything if the event's window is not the bin window.
+ (gtk_handle_box_motion): Likewise.
+
1998-08-19 Raph Levien <raph@gimp.org>
* gtk/testgtk.c (create_color_preview): pushed the colormap and
diff --git a/gtk/gtkhandlebox.c b/gtk/gtkhandlebox.c
index 6dd34f117d..18f0e32f3d 100644
--- a/gtk/gtkhandlebox.c
+++ b/gtk/gtkhandlebox.c
@@ -793,6 +793,9 @@ gtk_handle_box_button_changed (GtkWidget *widget,
hb = GTK_HANDLE_BOX (widget);
+ if (event->window != hb->bin_window)
+ return FALSE;
+
event_handled = FALSE;
if (event->button == 1 &&
event->type == GDK_BUTTON_PRESS)
@@ -878,6 +881,9 @@ gtk_handle_box_motion (GtkWidget *widget,
if (!hb->in_drag)
return FALSE;
+ if (event->window != hb->bin_window)
+ return FALSE;
+
ox = 0;
oy = 0;
gdk_window_get_origin (hb->float_window, &ox, &oy);