[anjuta] anjuta: bgo #723443 - New Window action is always disabled



commit 01201834c621c08b58ff3df7b5e04138c9bc1b68
Author: Sébastien Granjoux <seb sfo free fr>
Date:   Sun Feb 2 15:57:29 2014 +0100

    anjuta: bgo #723443 - New Window action is always disabled

 src/anjuta-application.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/anjuta-application.c b/src/anjuta-application.c
index 27b49d2..bc59538 100644
--- a/src/anjuta-application.c
+++ b/src/anjuta-application.c
@@ -70,6 +70,17 @@ struct _AnjutaApplicationPrivate {
 };
 
 static void
+on_app_new_window (GSimpleAction  *action,
+                    GVariant       *parameter,
+                    gpointer        user_data)
+{
+       AnjutaApplication *app;
+
+       app = ANJUTA_APPLICATION (user_data);
+       anjuta_application_create_window (app);
+}
+
+static void
 on_app_preferences (GSimpleAction  *action,
                     GVariant       *parameter,
                     gpointer        user_data)
@@ -552,6 +563,7 @@ anjuta_application_open (GApplication *application,
 }
 
 static GActionEntry app_entries[] = {
+       { "new_window", on_app_new_window, NULL, NULL, NULL },
        { "preferences", on_app_preferences, NULL, NULL, NULL },
        { "help", on_app_manual, NULL, NULL, NULL },
        { "about", on_app_about, NULL, NULL, NULL },


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