[bijiben] appMenu: remove New Window



commit c7a448664c2886e96d751126da5d8127a03f52b7
Author: Pierre-Yves Luyten <py luyten fr>
Date:   Thu Jan 23 23:58:46 2014 +0100

    appMenu: remove New Window
    
    See 711617

 src/bjb-app-menu.c        |   21 ++-------------------
 src/resources/app-menu.ui |    5 -----
 2 files changed, 2 insertions(+), 24 deletions(-)
---
diff --git a/src/bjb-app-menu.c b/src/bjb-app-menu.c
index e3838a7..643ea75 100644
--- a/src/bjb-app-menu.c
+++ b/src/bjb-app-menu.c
@@ -55,24 +55,6 @@ void show_about_dialog(GtkApplication *app)
 
 }
 
-static void
-new_activated (GSimpleAction *action,
-               GVariant      *parameter,
-               gpointer       user_data)
-{
-  BjbWindowBase *win;
-  BjbController *control;
-
-  win = BJB_WINDOW_BASE (bjb_window_base_new());
-
-  /* Tell the controller to display all notes, */
-  control = bjb_window_base_get_controller (win);
-  bjb_controller_set_needle (control, "");
-
-  bjb_window_base_switch_to (win, BJB_WINDOW_BASE_MAIN_VIEW);
-  gtk_widget_show_all (GTK_WIDGET (win));
-}
-
 
 static void
 external_activated (GSimpleAction *action,
@@ -126,6 +108,7 @@ preferences_activated (GSimpleAction *action,
   show_bijiben_settings_window (g_list_nth_data (windows, 0));
 }
 
+
 static void
 about_activated (GSimpleAction *action,
                  GVariant      *parameter,
@@ -134,6 +117,7 @@ about_activated (GSimpleAction *action,
   show_about_dialog(GTK_APPLICATION(user_data));
 }
 
+
 static void
 help_activated (GSimpleAction *action,
                 GVariant      *parameter,
@@ -162,7 +146,6 @@ quit_activated (GSimpleAction *action,
 /* Menu */
 
 static GActionEntry app_entries[] = {
-           { "new", new_activated, NULL, NULL, NULL },
            { "external", external_activated, NULL, NULL, NULL },
            { "trash", trash_activated, NULL, NULL, NULL },
            { "preferences", preferences_activated, NULL, NULL, NULL },
diff --git a/src/resources/app-menu.ui b/src/resources/app-menu.ui
index e904db9..c26c945 100644
--- a/src/resources/app-menu.ui
+++ b/src/resources/app-menu.ui
@@ -2,11 +2,6 @@
   <menu id="app-menu">
     <section>
       <item>
-        <attribute name="label" translatable="yes">_New Window</attribute>
-        <attribute name="action">app.new</attribute>
-        <attribute name="accel">&lt;Primary&gt;n</attribute>
-      </item>
-      <item>
         <attribute name="label" translatable="yes">_Import Notes</attribute>
         <attribute name="action">app.external</attribute>
       </item>


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