[gtk+] Always return FALSE from the notebook leave_notify handler
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Always return FALSE from the notebook leave_notify handler
- Date: Tue, 14 Jan 2014 19:31:12 +0000 (UTC)
commit 609ddec1f86963313b5e30a0b2159aa4188e6706
Author: Paolo Borelli <pborelli gnome org>
Date: Tue Jan 14 20:29:46 2014 +0100
Always return FALSE from the notebook leave_notify handler
As discussed on IRC with Benjamin, this should not make much
difference in practice, but it is more correct
gtk/gtknotebook.c | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 175b61c..0a53236 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]