[gimp] app: Remove unnecessary gimp_dockbook_refresh_tab_layout_lut() calls



commit b799a8bd03bf6da4794371d61600d77ba5b947fc
Author: Martin Nordholts <martinn src gnome org>
Date:   Tue Jun 15 08:13:19 2010 +0200

    app: Remove unnecessary gimp_dockbook_refresh_tab_layout_lut() calls
    
    We don't need to call gimp_dockbook_refresh_tab_layout_lut() in
    added() and removed() because we call
    gimp_dockbook_update_auto_tab_style() in add() and remove().

 app/widgets/gimpdockbook.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/app/widgets/gimpdockbook.c b/app/widgets/gimpdockbook.c
index 83194f3..dada344 100644
--- a/app/widgets/gimpdockbook.c
+++ b/app/widgets/gimpdockbook.c
@@ -624,8 +624,6 @@ static void
 gimp_dockbook_dockable_added (GimpDockbook *dockbook,
                               GimpDockable *dockable)
 {
-  gimp_dockbook_refresh_tab_layout_lut (dockbook);
-
   gtk_notebook_set_current_page (GTK_NOTEBOOK (dockbook),
                                  gtk_notebook_page_num (GTK_NOTEBOOK (dockbook),
                                                         GTK_WIDGET (dockable)));
@@ -635,7 +633,6 @@ static void
 gimp_dockbook_dockable_removed (GimpDockbook *dockbook,
                                 GimpDockable *dockable)
 {
-  gimp_dockbook_refresh_tab_layout_lut (dockbook);
 }
 
 /**



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