From: Noah Levitt Date: Fri, 6 Jun 2003 02:00:45 +0000 (+0000) Subject: Ignore button presses that are not on the tab (#114534). X-Git-Url: http://pileus.org/git/?a=commitdiff_plain;h=e793749779429d2bb0e0b382db686ec788b93589;p=~andy%2Fgtk Ignore button presses that are not on the tab (#114534). 2003-06-05 Noah Levitt * gtk/gtknotebook.c (gtk_notebook_button_press): Ignore button presses that are not on the tab (#114534). --- diff --git a/ChangeLog b/ChangeLog index e3528b2dc..267e8ab01 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-06-05 Noah Levitt + + * 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 * demos/Makefile.am: Conditionalize deendencies for diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index e3528b2dc..267e8ab01 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2003-06-05 Noah Levitt + + * 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 * demos/Makefile.am: Conditionalize deendencies for diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index e3528b2dc..267e8ab01 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +2003-06-05 Noah Levitt + + * 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 * demos/Makefile.am: Conditionalize deendencies for diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index e3528b2dc..267e8ab01 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +2003-06-05 Noah Levitt + + * 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 * demos/Makefile.am: Conditionalize deendencies for diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index e3528b2dc..267e8ab01 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2003-06-05 Noah Levitt + + * 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 * demos/Makefile.am: Conditionalize deendencies for diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 92c9b6d97..b88bc4ecf 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -1704,7 +1704,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;