mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
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:
@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user