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.
This commit is contained in:
Federico Mena Quintero 1998-08-20 16:55:16 +00:00 committed by Arturo Espinosa
parent e946fcf69d
commit cad57a6686
8 changed files with 48 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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);