mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-09 22:50:54 +00:00
libsysprof-gtk: fix notify of time selection
This commit is contained in:
@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user