[bijiben] Bijiben: do not show_all twice
- From: Pierre-Yves Luyten <pyluyten src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben] Bijiben: do not show_all twice
- Date: Fri, 26 Apr 2013 22:07:20 +0000 (UTC)
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]