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

@ -30,6 +30,7 @@
#include "sysprof-profiler-assistant.h"
#include "sysprof-proxy-aid.h"
#include "sysprof-process-model-row.h"
#include "sysprof-ui-private.h"
struct _SysprofProfilerAssistant
{
@ -314,3 +315,11 @@ sysprof_profiler_assistant_init (SysprofProfilerAssistant *self)
sysprof_environ_editor_set_environ (self->environ_editor, environ);
}
void
_sysprof_profiler_assistant_focus_record (SysprofProfilerAssistant *self)
{
g_return_if_fail (SYSPROF_IS_PROFILER_ASSISTANT (self));
gtk_widget_grab_focus (GTK_WIDGET (self->record_button));
}