Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Günther Wagner
gnome-builder
Commits
8a99bbfb
Commit
8a99bbfb
authored
Aug 30, 2019
by
Christian Hergert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
buildui: wire up build/rebuild commands
These have been missing for some time by mistake.
parent
8bf0e658
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
src/libide/gui/ide-shortcuts-window.ui
src/libide/gui/ide-shortcuts-window.ui
+7
-0
src/plugins/buildui/gbp-buildui-workspace-addin.c
src/plugins/buildui/gbp-buildui-workspace-addin.c
+13
-0
No files found.
src/libide/gui/ide-shortcuts-window.ui
View file @
8a99bbfb
...
...
@@ -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"
>
<
ctrl
><
shift
>
F7
</property>
<property
name=
"title"
translatable=
"yes"
context=
"shortcut window"
>
Rebuild
</property>
</object>
</child>
<child>
<object
class=
"GtkShortcutsShortcut"
>
<property
name=
"visible"
>
true
</property>
...
...
src/plugins/buildui/gbp-buildui-workspace-addin.c
View file @
8a99bbfb
...
...
@@ -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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment