[gnome-builder/gnome-builder-3-24] build-manager: Add install action



commit 7ea0dae996f72fae17cc456c8bd1fc56292553c4
Author: Umang Jain <mailumangjain gmail com>
Date:   Tue Mar 28 16:08:26 2017 +0530

    build-manager: Add install action
    
    https://bugzilla.gnome.org/show_bug.cgi?id=780616

 libide/buildsystem/ide-build-manager.c |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/libide/buildsystem/ide-build-manager.c b/libide/buildsystem/ide-build-manager.c
index dc4e658..b5692d0 100644
--- a/libide/buildsystem/ide-build-manager.c
+++ b/libide/buildsystem/ide-build-manager.c
@@ -701,14 +701,32 @@ ide_build_manager_action_clean (GSimpleAction *action,
 }
 
 static void
+ide_build_manager_action_install (GSimpleAction *action,
+                                  GVariant      *param,
+                                  gpointer       user_data)
+{
+  IdeBuildManager *self = user_data;
+
+  IDE_ENTRY;
+
+  g_assert (G_IS_SIMPLE_ACTION (action));
+  g_assert (IDE_IS_BUILD_MANAGER (self));
+
+  ide_build_manager_execute_async (self, IDE_BUILD_PHASE_INSTALL, NULL, NULL, NULL);
+
+  IDE_EXIT;
+}
+
+static void
 ide_build_manager_init (IdeBuildManager *self)
 {
-  static const gchar *invert_names[] = { "build", "clean", "rebuild" };
+  static const gchar *invert_names[] = { "build", "clean", "install", "rebuild" };
   static const gchar *names[] = { "cancel" };
   static GActionEntry actions[] = {
     { "build", ide_build_manager_action_build },
     { "cancel", ide_build_manager_action_cancel },
     { "clean", ide_build_manager_action_clean },
+    { "install", ide_build_manager_action_install },
     { "rebuild", ide_build_manager_action_rebuild },
   };
 


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