[gimp] app: We don't need to show restored dialogs twice



commit c5c92e484ce84ea156e7c27ff6f2b14d4f9081f7
Author: Martin Nordholts <martinn src gnome org>
Date:   Mon Mar 1 08:23:05 2010 +0100

    app: We don't need to show restored dialogs twice

 app/widgets/gimpsessioninfo.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/app/widgets/gimpsessioninfo.c b/app/widgets/gimpsessioninfo.c
index 7e91cab..4c179d3 100644
--- a/app/widgets/gimpsessioninfo.c
+++ b/app/widgets/gimpsessioninfo.c
@@ -456,7 +456,7 @@ gimp_session_info_restore (GimpSessionInfo   *info,
         gimp_dialog_factory_dialog_new (factory, screen,
                                         info->p->factory_entry->identifier,
                                         info->p->factory_entry->view_size,
-                                        TRUE);
+                                        TRUE/*present*/);
 
       if (dialog && info->p->aux_info)
         gimp_session_info_aux_set_list (dialog, info->p->aux_info);
@@ -471,8 +471,6 @@ gimp_session_info_restore (GimpSessionInfo   *info,
                                     factory,
                                     screen,
                                     GIMP_DOCK_WINDOW (dialog));
-
-  gtk_widget_show (dialog);
 }
 
 /* This function mostly lifted from



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