mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-15 13:10:08 +00:00
gtknotebook: Simplify some if-conditions
Signed-off-by: Philip Withnall <withnall@endlessm.com> https://bugzilla.gnome.org/show_bug.cgi?id=787303
This commit is contained in:
parent
abef21776d
commit
4b88560feb
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user