Ignore button presses that are not on the tab (#114534).

2003-06-05  Noah Levitt  <nlevitt@columbia.edu>

	* gtk/gtknotebook.c (gtk_notebook_button_press): Ignore button
	presses that are not on the tab (#114534).
This commit is contained in:
Noah Levitt
2003-06-06 01:57:08 +00:00
committed by Noah Levitt
parent 7db52619ba
commit 5213be07e0
6 changed files with 27 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2003-06-05 Noah Levitt <nlevitt@columbia.edu>
* gtk/gtknotebook.c (gtk_notebook_button_press): Ignore button
presses that are not on the tab (#114534).
Thu Jun 5 20:35:40 2003 Owen Taylor <otaylor@redhat.com>
* demos/Makefile.am: Conditionalize dependencies for

View File

@@ -1,3 +1,8 @@
2003-06-05 Noah Levitt <nlevitt@columbia.edu>
* gtk/gtknotebook.c (gtk_notebook_button_press): Ignore button
presses that are not on the tab (#114534).
Thu Jun 5 20:35:40 2003 Owen Taylor <otaylor@redhat.com>
* demos/Makefile.am: Conditionalize dependencies for

View File

@@ -1,3 +1,8 @@
2003-06-05 Noah Levitt <nlevitt@columbia.edu>
* gtk/gtknotebook.c (gtk_notebook_button_press): Ignore button
presses that are not on the tab (#114534).
Thu Jun 5 20:35:40 2003 Owen Taylor <otaylor@redhat.com>
* demos/Makefile.am: Conditionalize dependencies for

View File

@@ -1,3 +1,8 @@
2003-06-05 Noah Levitt <nlevitt@columbia.edu>
* gtk/gtknotebook.c (gtk_notebook_button_press): Ignore button
presses that are not on the tab (#114534).
Thu Jun 5 20:35:40 2003 Owen Taylor <otaylor@redhat.com>
* demos/Makefile.am: Conditionalize dependencies for

View File

@@ -1,3 +1,8 @@
2003-06-05 Noah Levitt <nlevitt@columbia.edu>
* gtk/gtknotebook.c (gtk_notebook_button_press): Ignore button
presses that are not on the tab (#114534).
Thu Jun 5 20:35:40 2003 Owen Taylor <otaylor@redhat.com>
* demos/Makefile.am: Conditionalize dependencies for

View File

@@ -1617,7 +1617,8 @@ gtk_notebook_button_press (GtkWidget *widget,
gint num;
gint x, y;
if (event->type != GDK_BUTTON_PRESS || !notebook->children ||
if (event->window != notebook->event_window ||
event->type != GDK_BUTTON_PRESS || !notebook->children ||
notebook->button)
return FALSE;