diff --git a/ChangeLog b/ChangeLog index 1e109dbbc3..3e346e70b8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +1998-08-20 Federico Mena Quintero + + * 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 * 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 + + * 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 * 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 + + * 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 * 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 + + * 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 * 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 + + * 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 * 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 + + * 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 * 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 + + * 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 * 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);