[gnome-builder] buildui: rename action group to 'buildui'



commit adb64b843d7ef4f873ce5270f791b2afe7cf2478
Author: Matthew Leeds <mleeds redhat com>
Date:   Mon Feb 20 11:35:44 2017 -0600

    buildui: rename action group to 'buildui'
    
    Since the build-tools plugin was renamed to buildui and moved into
    libide, it makes sense to rename its action group. This commit also
    deletes an outdated comment.

 libide/buildui/ide-build-workbench-addin.c |    4 ++--
 libide/workbench/ide-omni-bar.c            |    7 +------
 libide/workbench/ide-omni-bar.ui           |    2 +-
 3 files changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/libide/buildui/ide-build-workbench-addin.c b/libide/buildui/ide-build-workbench-addin.c
index 1831477..fd8df11 100644
--- a/libide/buildui/ide-build-workbench-addin.c
+++ b/libide/buildui/ide-build-workbench-addin.c
@@ -157,7 +157,7 @@ ide_build_workbench_addin_load (IdeWorkbenchAddin *addin,
   self->build_log_panel = g_object_new (IDE_TYPE_BUILD_LOG_PANEL, NULL);
   gtk_container_add (GTK_CONTAINER (pane), GTK_WIDGET (self->build_log_panel));
 
-  gtk_widget_insert_action_group (GTK_WIDGET (workbench), "build-tools",
+  gtk_widget_insert_action_group (GTK_WIDGET (workbench), "buildui",
                                   G_ACTION_GROUP (self->actions));
 
   g_object_bind_property (self, "pipeline", self->panel, "pipeline", 0);
@@ -180,7 +180,7 @@ ide_build_workbench_addin_unload (IdeWorkbenchAddin *addin,
   g_assert (IDE_IS_BUILD_WORKBENCH_ADDIN (self));
   g_assert (IDE_IS_WORKBENCH (workbench));
 
-  gtk_widget_insert_action_group (GTK_WIDGET (workbench), "build-tools", NULL);
+  gtk_widget_insert_action_group (GTK_WIDGET (workbench), "buildui", NULL);
 
   gtk_widget_destroy (GTK_WIDGET (self->panel));
   self->panel = NULL;
diff --git a/libide/workbench/ide-omni-bar.c b/libide/workbench/ide-omni-bar.c
index cd1eeaf..d286195 100644
--- a/libide/workbench/ide-omni-bar.c
+++ b/libide/workbench/ide-omni-bar.c
@@ -222,15 +222,10 @@ on_configure_row (IdeOmniBar    *self,
   /*
    * TODO: This can be removed once GtkListBoxRow can activate actions
    *       in the "activate" signal (using something like action-name).
-   *
-   *       This code is basically a layer violation since build-tools
-   *       is provided by a plugin and we are simply activating it.
-   *       However, it's an internal plugin and should always be there,
-   *       so not the end of the world.
    */
 
   ide_widget_action (GTK_WIDGET (self),
-                     "build-tools",
+                     "buildui",
                      "configure",
                      g_variant_new_string (id));
 
diff --git a/libide/workbench/ide-omni-bar.ui b/libide/workbench/ide-omni-bar.ui
index 3998fca..3770291 100644
--- a/libide/workbench/ide-omni-bar.ui
+++ b/libide/workbench/ide-omni-bar.ui
@@ -340,7 +340,7 @@
                     </child>
                     <child>
                       <object class="GtkButton" id="popover_view_output_button">
-                        <property name="action-name">build-tools.view-output</property>
+                        <property name="action-name">buildui.view-output</property>
                         <property name="label" translatable="yes">View Output</property>
                         <property name="visible">true</property>
                       </object>


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