[gtk+] gtknotebook: Simplify some if-conditions
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtknotebook: Simplify some if-conditions
- Date: Tue, 12 Sep 2017 14:22:40 +0000 (UTC)
commit 69102ac8df7945de700b6fc8210b921fa9204866
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 82068ca..db0d9e7 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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]