Commit e9380d84 authored by Christian Hergert's avatar Christian Hergert
Browse files

build-tools: hook up View Output button to build output

parent ff39f5de
......@@ -270,6 +270,7 @@
</child>
<child>
<object class="GtkButton" id="popover_view_output_button">
<property name="action-name">build-tools.view-output</property>
<property name="label" translatable="yes">View Output</property>
</object>
<packing>
......
......@@ -241,6 +241,19 @@ gbp_build_workbench_addin_cancel (GSimpleAction *action,
g_cancellable_cancel (self->cancellable);
}
static void
gbp_build_workbench_addin_view_output (GSimpleAction *action,
GVariant *param,
gpointer user_data)
{
GbpBuildWorkbenchAddin *self = user_data;
g_assert (G_IS_SIMPLE_ACTION (action));
g_assert (GBP_IS_BUILD_WORKBENCH_ADDIN (self));
ide_workbench_focus (self->workbench, GTK_WIDGET (self->build_log_panel));
}
static void
gbp_build_workbench_addin_configure (GSimpleAction *action,
GVariant *param,
......@@ -273,6 +286,7 @@ static const GActionEntry actions[] = {
{ "clean", gbp_build_workbench_addin_clean },
{ "cancel-build", gbp_build_workbench_addin_cancel },
{ "configure", gbp_build_workbench_addin_configure, "s" },
{ "view-output", gbp_build_workbench_addin_view_output },
};
static void
......
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