[gnome-builder] config-manager: use "Default" for default configuration name



commit 23bb70d36793ab26b4199c147e611ae36920cd76
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jul 5 18:55:15 2016 -0700

    config-manager: use "Default" for default configuration name
    
    We can be a bit more succinct here now that this goes into the omnibar.

 libide/buildsystem/ide-configuration-manager.c |    2 +-
 libide/runner/ide-runner.h                     |   53 ++++++++++++++++++++++++
 2 files changed, 54 insertions(+), 1 deletions(-)
---
diff --git a/libide/buildsystem/ide-configuration-manager.c b/libide/buildsystem/ide-configuration-manager.c
index 7333315..9124e36 100644
--- a/libide/buildsystem/ide-configuration-manager.c
+++ b/libide/buildsystem/ide-configuration-manager.c
@@ -425,7 +425,7 @@ ide_configuration_manager_add_default (IdeConfigurationManager *self)
   context = ide_object_get_context (IDE_OBJECT (self));
 
   config = ide_configuration_new (context, "default", "local", "host");
-  ide_configuration_set_display_name (config, _("Default Configuration"));
+  ide_configuration_set_display_name (config, _("Default"));
   ide_configuration_manager_add (self, config);
 
   if (self->configurations->len == 1)
diff --git a/libide/runner/ide-runner.h b/libide/runner/ide-runner.h
new file mode 100644
index 0000000..94f2c12
--- /dev/null
+++ b/libide/runner/ide-runner.h
@@ -0,0 +1,53 @@
+/* ide-runner.h
+ *
+ * Copyright (C) 2016 Christian Hergert <chergert redhat com>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef IDE_RUNNER_H
+#define IDE_RUNNER_H
+
+#include "ide-types.h"
+
+G_BEGIN_DECLS
+
+typedef enum
+{
+  IDE_RUNNER_INVALID,
+  IDE_RUNNER_READY,
+  IDE_RUNNER_RUNNING,
+  IDE_RUNNER_EXITED,
+  IDE_RUNNER_FAILED,
+} IdeRunnerState;
+
+#define IDE_TYPE_RUNNER (ide_runner_get_type())
+
+G_DECLARE_DERIVABLE_TYPE (IdeRunner, ide_runner, IDE, RUNNER, IdeObject)
+
+struct _IdeRunnerClass
+{
+  IdeObject parent_instance;
+
+  void (*force_quit) (IdeRunner *self);
+  void (*run)        (IdeRunner *self);
+};
+
+IdeRunner *ide_runner_new        (IdeContext *context);
+void       ide_runner_force_quit (IdeRunner  *self);
+void       ide_runner_run        (IdeRunner  *self);
+
+G_END_DECLS
+
+#endif /* IDE_RUNNER_H */


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