[gtk+/gtk-3-22] gtknotebook: Simplify some if-conditions
- From: Daniel Boles <dboles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-22] gtknotebook: Simplify some if-conditions
- Date: Tue, 12 Sep 2017 20:18:44 +0000 (UTC)
commit 4b88560feb9e87a7e07c220df23291876cba0ffa
Author: Philip Withnall <withnall endlessm com>
Date: Mon Sep 11 09:26:52 2017 +0100
gtknotebook: Simplify some if-conditions
Signed-off-by: Philip Withnall <withnall endlessm com>
https://bugzilla.gnome.org/show_bug.cgi?id=787303
gtk/gtknotebook.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 56b601d..747dbd7 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -5952,8 +5952,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)
{
@@ -5974,8 +5973,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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]