diff options
author | Philip Withnall <withnall@endlessm.com> | 2017-09-11 09:26:52 +0100 |
---|---|---|
committer | Philip Withnall <withnall@endlessm.com> | 2017-09-12 15:22:13 +0100 |
commit | 69102ac8df7945de700b6fc8210b921fa9204866 (patch) | |
tree | 6d6d385a161a5ff795253bcc98a98d05c64e5500 /gtk/gtknotebook.c | |
parent | 7069dc0261ffe96c6c6ac3959481529228eec5f5 (diff) | |
download | gtk+-69102ac8df7945de700b6fc8210b921fa9204866.tar.gz |
gtknotebook: Simplify some if-conditions
Signed-off-by: Philip Withnall <withnall@endlessm.com>
https://bugzilla.gnome.org/show_bug.cgi?id=787303
Diffstat (limited to 'gtk/gtknotebook.c')
-rw-r--r-- | gtk/gtknotebook.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 82068ca266..db0d9e72a0 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -5121,8 +5121,7 @@ gtk_notebook_calculate_tabs_allocation (GtkNotebook *notebook, { case GTK_POS_TOP: case GTK_POS_BOTTOM: - if (priv->operation != DRAG_OPERATION_REORDER || - (priv->operation == DRAG_OPERATION_REORDER && page != priv->cur_page)) + if (priv->operation != DRAG_OPERATION_REORDER || page != priv->cur_page) { if (priv->operation == DRAG_OPERATION_REORDER) { @@ -5143,8 +5142,7 @@ gtk_notebook_calculate_tabs_allocation (GtkNotebook *notebook, break; case GTK_POS_LEFT: case GTK_POS_RIGHT: - if (priv->operation != DRAG_OPERATION_REORDER || - (priv->operation == DRAG_OPERATION_REORDER && page != priv->cur_page)) + if (priv->operation != DRAG_OPERATION_REORDER || page != priv->cur_page) { if (priv->operation == DRAG_OPERATION_REORDER) { |