mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +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_y = -1;
|
||||
|
||||
gtk_widget_queue_draw (GTK_WIDGET (self));
|
||||
}
|
||||
|
||||
static void
|
||||
@ -280,6 +282,9 @@ sysprof_time_ruler_init (SysprofTimeRuler *self)
|
||||
{
|
||||
GtkEventController *motion;
|
||||
|
||||
self->motion_x = -1;
|
||||
self->motion_y = -1;
|
||||
|
||||
self->session_signals = g_signal_group_new (SYSPROF_TYPE_SESSION);
|
||||
g_signal_group_connect_object (self->session_signals,
|
||||
"notify::selected-time",
|
||||
|
||||
Reference in New Issue
Block a user