[gtk+] window: Remove pointless ternary operator



commit 69ca360b59f49087a2fd9b604d82c6651579ee48
Author: Timm Bäder <mail baedert org>
Date:   Mon Mar 20 14:59:14 2017 +0100

    window: Remove pointless ternary operator
    
    we're already checking for orientation == GTK_ORIENTATION_HORIZONTAL
    right before this line, so just pass GTK_ORIENTATION_VERTICAL.

 gtk/gtkwindow.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index f22b9ec..50fe2ac 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -685,8 +685,7 @@ gtk_window_measure (GtkWidget      *widget,
           int size = for_size;
           if (orientation == GTK_ORIENTATION_HORIZONTAL && for_size >= 0)
             gtk_widget_measure (priv->title_box,
-                                orientation == GTK_ORIENTATION_HORIZONTAL ? GTK_ORIENTATION_VERTICAL :
-                                                                            GTK_ORIENTATION_HORIZONTAL,
+                                GTK_ORIENTATION_VERTICAL,
                                 -1,
                                 NULL, &size,
                                 NULL, NULL);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]