libsysprof-gtk: fix notify of time selection

This commit is contained in:
Christian Hergert
2023-06-16 15:51:33 -07:00
parent 5c178d0672
commit 81453a3ec7

View File

@ -47,9 +47,9 @@ static GParamSpec *properties[N_PROPS];
static guint signals[N_SIGNALS]; static guint signals[N_SIGNALS];
static void static void
sysprof_mark_chart_item_session_notify_selection_cb (SysprofMarkChartItem *self, sysprof_mark_chart_item_session_notify_selected_time_cb (SysprofMarkChartItem *self,
GParamSpec *pspec, GParamSpec *pspec,
SysprofSession *session) SysprofSession *session)
{ {
g_assert (SYSPROF_IS_MARK_CHART_ITEM (self)); g_assert (SYSPROF_IS_MARK_CHART_ITEM (self));
g_assert (SYSPROF_IS_SESSION (session)); g_assert (SYSPROF_IS_SESSION (session));
@ -108,8 +108,8 @@ sysprof_mark_chart_item_set_property (GObject *object,
case PROP_SESSION: case PROP_SESSION:
self->session = g_value_dup_object (value); self->session = g_value_dup_object (value);
g_signal_connect_object (self->session, g_signal_connect_object (self->session,
"notify::selection", "notify::selected-time",
G_CALLBACK (sysprof_mark_chart_item_session_notify_selection_cb), G_CALLBACK (sysprof_mark_chart_item_session_notify_selected_time_cb),
self, self,
G_CONNECT_SWAPPED); G_CONNECT_SWAPPED);
break; break;