[bijiben] Bijiben: do not show_all twice



commit 5b6c01656d972bbdb39217eca5029c43664b87bf
Author: Pierre-Yves Luyten <py luyten fr>
Date:   Fri Apr 26 23:42:57 2013 +0200

    Bijiben: do not show_all twice

 src/bjb-bijiben.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/bjb-bijiben.c b/src/bjb-bijiben.c
index 95fca66..78eae83 100644
--- a/src/bjb-bijiben.c
+++ b/src/bjb-bijiben.c
@@ -51,19 +51,15 @@ bijiben_new_window_internal (GApplication *app,
 
   if (file != NULL)
     note = biji_note_get_new_from_file (g_file_get_path(file));
+
   else if (note_obj != NULL)
     note = note_obj;
 
   if (note != NULL)
-    {
       bjb_window_base_switch_to_note (BJB_WINDOW_BASE (win), note);
-    }
 
   else
-  {
     bjb_window_base_switch_to (BJB_WINDOW_BASE (win), BJB_WINDOW_BASE_MAIN_VIEW);
-    gtk_widget_show_all (GTK_WIDGET (win)); // FIXME not here
-  }
 }
 
 void


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