Commit 8a99bbfb authored by Christian Hergert's avatar Christian Hergert

buildui: wire up build/rebuild commands

These have been missing for some time by mistake.
parent 8bf0e658
......@@ -465,6 +465,13 @@
<property name="title" translatable="yes" context="shortcut window">Build</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">true</property>
<property name="accelerator">&lt;ctrl&gt;&lt;shift&gt;F7</property>
<property name="title" translatable="yes" context="shortcut window">Rebuild</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">true</property>
......
......@@ -229,6 +229,7 @@ gbp_buildui_workspace_addin_load (IdeWorkspaceAddin *addin,
GbpBuilduiWorkspaceAddin *self = (GbpBuilduiWorkspaceAddin *)addin;
IdeConfigManager *config_manager;
PangoAttrList *small_attrs = NULL;
DzlShortcutController *shortcuts;
IdeEditorSidebar *sidebar;
IdeBuildManager *build_manager;
IdeWorkbench *workbench;
......@@ -248,6 +249,18 @@ gbp_buildui_workspace_addin_load (IdeWorkspaceAddin *addin,
G_N_ELEMENTS (actions),
self);
shortcuts = dzl_shortcut_controller_find (GTK_WIDGET (workspace));
dzl_shortcut_controller_add_command_action (shortcuts,
"org.gnome.builder.buildui.build",
"<Control>F7",
DZL_SHORTCUT_PHASE_GLOBAL,
"build-manager.build");
dzl_shortcut_controller_add_command_action (shortcuts,
"org.gnome.builder.buildui.rebuild",
"<Control><Shift>F7",
DZL_SHORTCUT_PHASE_GLOBAL,
"build-manager.rebuild");
headerbar = ide_workspace_get_header_bar (workspace);
omnibar = IDE_OMNI_BAR (gtk_header_bar_get_custom_title (GTK_HEADER_BAR (headerbar)));
workbench = ide_widget_get_workbench (GTK_WIDGET (workspace));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment