[bijiben] startup : detach opened notes



commit f32710e38feb499d960f154f918650bd55e6459b
Author: Pierre-Yves Luyten <py luyten fr>
Date:   Tue Mar 11 23:18:08 2014 +0100

    startup : detach opened notes
    
    First, this is more logical.
    Second, this fixes 723999

 src/bjb-bijiben.c |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/src/bjb-bijiben.c b/src/bjb-bijiben.c
index dccfeb9..49c1d87 100644
--- a/src/bjb-bijiben.c
+++ b/src/bjb-bijiben.c
@@ -75,12 +75,21 @@ on_window_activated_cb   (BjbWindowBase *window,
     if (item != NULL)
     {
 
-      if (win_is_available)
-         bjb_window_base_switch_to_item (window, item);
+      /* If that's a note, detach it */
+      if (BIJI_IS_NOTE_OBJ (item))
+      {
+       bijiben_new_window_for_note (self, BIJI_NOTE_OBJ (item));
+      }
 
+      /* Else, check */
       else
-         bijiben_new_window_internal (self, NULL, item, NULL);
+      {
+        if (win_is_available)
+           bjb_window_base_switch_to_item (window, item);
 
+        else
+           bijiben_new_window_internal (self, NULL, item, NULL);
+      }
 
       g_free (path);
     }


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