[gtk+] notebook: fix arrow states
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] notebook: fix arrow states
- Date: Thu, 11 Feb 2016 11:48:36 +0000 (UTC)
commit bb15c53966db36a691f65fac5739f0829ffab330
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Feb 11 06:47:28 2016 -0500
notebook: fix arrow states
Some code was confusing 0 with ARROW_NONE, causing us to not properly
update the state of the arrow gadgets.
gtk/gtknotebook.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 26de2bc..6f9fafc 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -1273,7 +1273,7 @@ gtk_notebook_init (GtkNotebook *notebook)
priv->tab_pos = GTK_POS_TOP;
priv->scrollable = FALSE;
priv->in_child = ARROW_NONE;
- priv->click_child = 0;
+ priv->click_child = ARROW_NONE;
priv->need_timer = 0;
priv->child_has_focus = FALSE;
priv->focus_out = FALSE;
@@ -2533,9 +2533,9 @@ gtk_notebook_show_arrows (GtkNotebook *notebook)
}
static void
-gtk_notebook_get_arrow_rect (GtkNotebook *notebook,
- GdkRectangle *rectangle,
- GtkNotebookArrow arrow)
+gtk_notebook_get_arrow_rect (GtkNotebook *notebook,
+ GdkRectangle *rectangle,
+ GtkNotebookArrow arrow)
{
GtkNotebookPrivate *priv = notebook->priv;
@@ -2840,7 +2840,7 @@ stop_scrolling (GtkNotebook *notebook)
priv->timer = 0;
priv->need_timer = FALSE;
}
- priv->click_child = 0;
+ priv->click_child = ARROW_NONE;
priv->pressed_button = 0;
gtk_notebook_redraw_arrows (notebook);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]