summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Borelli <pborelli@gnome.org>2014-01-14 20:29:46 +0100
committerPaolo Borelli <pborelli@gnome.org>2014-01-14 20:29:46 +0100
commit609ddec1f86963313b5e30a0b2159aa4188e6706 (patch)
treeeb10733ca060e85999196a46d67eece275e8c553
parent84b44dd2acd82d907e2e4e3b409a8e784e7ec05a (diff)
downloadgtk+-609ddec1f86963313b5e30a0b2159aa4188e6706.tar.gz
Always return FALSE from the notebook leave_notify handler3.11.4
As discussed on IRC with Benjamin, this should not make much difference in practice, but it is more correct
-rw-r--r--gtk/gtknotebook.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 175b61c803..0a532369ba 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -3305,21 +3305,21 @@ gtk_notebook_leave_notify (GtkWidget *widget,
GtkNotebookPrivate *priv = notebook->priv;
gint x, y;
- if (!get_widget_coordinates (widget, (GdkEvent *)event, &x, &y))
- return FALSE;
-
- if (priv->prelight_tab != NULL)
+ if (get_widget_coordinates (widget, (GdkEvent *)event, &x, &y))
{
- tab_prelight (notebook, (GdkEvent *)event);
- }
+ if (priv->prelight_tab != NULL)
+ {
+ tab_prelight (notebook, (GdkEvent *)event);
+ }
- if (priv->in_child)
- {
- priv->in_child = 0;
- gtk_notebook_redraw_arrows (notebook);
+ if (priv->in_child)
+ {
+ priv->in_child = 0;
+ gtk_notebook_redraw_arrows (notebook);
+ }
}
- return TRUE;
+ return FALSE;
}
static GtkNotebookPointerPosition