mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof-gtk: clear position ruler when leaving widget
This commit is contained in:
@ -190,6 +190,8 @@ sysprof_time_ruler_motion_leave_cb (SysprofTimeRuler *self,
|
|||||||
|
|
||||||
self->motion_x = -1;
|
self->motion_x = -1;
|
||||||
self->motion_y = -1;
|
self->motion_y = -1;
|
||||||
|
|
||||||
|
gtk_widget_queue_draw (GTK_WIDGET (self));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -280,6 +282,9 @@ sysprof_time_ruler_init (SysprofTimeRuler *self)
|
|||||||
{
|
{
|
||||||
GtkEventController *motion;
|
GtkEventController *motion;
|
||||||
|
|
||||||
|
self->motion_x = -1;
|
||||||
|
self->motion_y = -1;
|
||||||
|
|
||||||
self->session_signals = g_signal_group_new (SYSPROF_TYPE_SESSION);
|
self->session_signals = g_signal_group_new (SYSPROF_TYPE_SESSION);
|
||||||
g_signal_group_connect_object (self->session_signals,
|
g_signal_group_connect_object (self->session_signals,
|
||||||
"notify::selected-time",
|
"notify::selected-time",
|
||||||
|
|||||||
Reference in New Issue
Block a user