libsysprof-ui: focus record button by default

Because if we break the "hit enter to launch, escape to stop" workflow
some people will be angry.
This commit is contained in:
Christian Hergert
2019-05-20 18:57:30 -07:00
parent f330de967b
commit 7b017a31f1
4 changed files with 42 additions and 15 deletions

View File

@ -33,6 +33,7 @@
#include "sysprof-display.h"
#include "sysprof-empty-state-view.h"
#include "sysprof-recording-state-view.h"
#include "sysprof-ui-private.h"
typedef struct
{
@ -581,3 +582,13 @@ sysprof_display_stop_recording (SysprofDisplay *self)
if (priv->profiler != NULL)
sysprof_profiler_stop (priv->profiler);
}
void
_sysprof_display_focus_record (SysprofDisplay *self)
{
SysprofDisplayPrivate *priv = sysprof_display_get_instance_private (self);
g_return_if_fail (SYSPROF_IS_DISPLAY (self));
_sysprof_profiler_assistant_focus_record (priv->assistant);
}