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:
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user