mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof-gtk: give access to normalized model
This can be handy from the inspector so you can inspect the normalized values for the charts.
This commit is contained in:
@ -27,6 +27,8 @@ enum {
|
|||||||
PROP_SERIES,
|
PROP_SERIES,
|
||||||
PROP_X_AXIS,
|
PROP_X_AXIS,
|
||||||
PROP_Y_AXIS,
|
PROP_Y_AXIS,
|
||||||
|
PROP_NORMALIZED_X,
|
||||||
|
PROP_NORMALIZED_Y,
|
||||||
N_PROPS
|
N_PROPS
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -71,6 +73,16 @@ sysprof_xy_layer_get_property (GObject *object,
|
|||||||
g_value_set_object (value, sysprof_xy_layer_get_y_axis (self));
|
g_value_set_object (value, sysprof_xy_layer_get_y_axis (self));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case PROP_NORMALIZED_X:
|
||||||
|
/* For inspector debugging */
|
||||||
|
g_value_set_object (value, self->normal_x);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case PROP_NORMALIZED_Y:
|
||||||
|
/* For inspector debugging */
|
||||||
|
g_value_set_object (value, self->normal_y);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||||
}
|
}
|
||||||
@ -127,6 +139,16 @@ sysprof_xy_layer_class_init (SysprofXYLayerClass *klass)
|
|||||||
SYSPROF_TYPE_AXIS,
|
SYSPROF_TYPE_AXIS,
|
||||||
(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_Y] =
|
||||||
|
g_param_spec_object ("normalized-y", NULL, NULL,
|
||||||
|
SYSPROF_TYPE_NORMALIZED_SERIES,
|
||||||
|
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
|
||||||
|
|
||||||
g_object_class_install_properties (object_class, N_PROPS, properties);
|
g_object_class_install_properties (object_class, N_PROPS, properties);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user