[gtk+/gtk-3-22] notebook: redraw arrows after closing a tab



commit 644c2d9617e594e6f6331a0c54fd51433513dba2
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Fri Jan 20 20:19:56 2017 -0600

    notebook: redraw arrows after closing a tab
    
    Thanks to Daniel Boles for helping with a crash in an earlier version of
    this patch.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=777547

 gtk/gtknotebook.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index cc0cae0..2208a7f 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -5097,6 +5097,8 @@ gtk_notebook_real_remove (GtkNotebook *notebook,
   gtk_notebook_update_labels (notebook);
   if (need_resize)
     gtk_widget_queue_resize (GTK_WIDGET (notebook));
+  if (!destroying && priv->scrollable)
+    gtk_notebook_redraw_arrows (notebook);
 }
 
 static void


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