[gtk+] notebook: No need to recompute remaining space



commit 2ef3b0144281433dc05b4ac05a4f87ba65482a61
Author: Benjamin Otte <otte redhat com>
Date:   Thu Jan 7 12:21:25 2016 +0100

    notebook: No need to recompute remaining space
    
    The value is correct.
    
    In particular, subtracting width on notebooks with tabs on left/right is
    a very bad idea.

 gtk/gtknotebook.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 89f9a3c..13592d1 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -5525,7 +5525,6 @@ gtk_notebook_calculate_shown_tabs (GtkNotebook          *notebook,
           *last_child = gtk_notebook_search_page (notebook, priv->focus_tab,
                                                   STEP_NEXT, TRUE);
           page = priv->first_tab->data;
-          *remaining_space = tab_space - page->requisition.width;
           *n = 1;
         }
       else


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