mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof-gtk: expose information about normalized series to inspector
This commit is contained in:
@ -52,6 +52,8 @@ enum {
|
|||||||
PROP_AXIS,
|
PROP_AXIS,
|
||||||
PROP_COLOR,
|
PROP_COLOR,
|
||||||
PROP_EVENT_COLOR,
|
PROP_EVENT_COLOR,
|
||||||
|
PROP_NORMALIZED_X,
|
||||||
|
PROP_NORMALIZED_X2,
|
||||||
PROP_SERIES,
|
PROP_SERIES,
|
||||||
N_PROPS
|
N_PROPS
|
||||||
};
|
};
|
||||||
@ -330,6 +332,14 @@ sysprof_time_span_layer_get_property (GObject *object,
|
|||||||
g_value_set_boxed (value, sysprof_time_span_layer_get_event_color (self));
|
g_value_set_boxed (value, sysprof_time_span_layer_get_event_color (self));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case PROP_NORMALIZED_X:
|
||||||
|
g_value_set_object (value, self->normal_x);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case PROP_NORMALIZED_X2:
|
||||||
|
g_value_set_object (value, self->normal_x2);
|
||||||
|
break;
|
||||||
|
|
||||||
case PROP_SERIES:
|
case PROP_SERIES:
|
||||||
g_value_set_object (value, sysprof_time_span_layer_get_series (self));
|
g_value_set_object (value, sysprof_time_span_layer_get_series (self));
|
||||||
break;
|
break;
|
||||||
@ -400,6 +410,16 @@ sysprof_time_span_layer_class_init (SysprofTimeSpanLayerClass *klass)
|
|||||||
GDK_TYPE_RGBA,
|
GDK_TYPE_RGBA,
|
||||||
(G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS));
|
(G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS));
|
||||||
|
|
||||||
|
properties [PROP_NORMALIZED_X] =
|
||||||
|
g_param_spec_object ("normalized-x", NULL, NULL,
|
||||||
|
SYSPROF_TYPE_NORMALIZED_SERIES,
|
||||||
|
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
|
||||||
|
|
||||||
|
properties [PROP_NORMALIZED_X2] =
|
||||||
|
g_param_spec_object ("normalized-x2", NULL, NULL,
|
||||||
|
SYSPROF_TYPE_NORMALIZED_SERIES,
|
||||||
|
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
|
||||||
|
|
||||||
properties[PROP_SERIES] =
|
properties[PROP_SERIES] =
|
||||||
g_param_spec_object ("series", NULL, NULL,
|
g_param_spec_object ("series", NULL, NULL,
|
||||||
SYSPROF_TYPE_TIME_SERIES,
|
SYSPROF_TYPE_TIME_SERIES,
|
||||||
|
|||||||
Reference in New Issue
Block a user