mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
visualizergroup: port to GTK 4
This commit is contained in:
@ -157,21 +157,6 @@ create_action_name (const gchar *str)
|
|||||||
return g_string_free (ret, FALSE);
|
return g_string_free (ret, FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
sysprof_visualizer_group_add (GtkContainer *container,
|
|
||||||
GtkWidget *child)
|
|
||||||
{
|
|
||||||
SysprofVisualizerGroup *self = (SysprofVisualizerGroup *)container;
|
|
||||||
|
|
||||||
g_assert (SYSPROF_IS_VISUALIZER_GROUP (self));
|
|
||||||
g_assert (GTK_IS_WIDGET (child));
|
|
||||||
|
|
||||||
if (SYSPROF_IS_VISUALIZER (child))
|
|
||||||
sysprof_visualizer_group_insert (self, SYSPROF_VISUALIZER (child), -1, FALSE);
|
|
||||||
else
|
|
||||||
GTK_CONTAINER_CLASS (sysprof_visualizer_group_parent_class)->add (container, child);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
sysprof_visualizer_group_finalize (GObject *object)
|
sysprof_visualizer_group_finalize (GObject *object)
|
||||||
{
|
{
|
||||||
@ -257,14 +242,11 @@ sysprof_visualizer_group_class_init (SysprofVisualizerGroupClass *klass)
|
|||||||
{
|
{
|
||||||
GObjectClass *object_class = G_OBJECT_CLASS (klass);
|
GObjectClass *object_class = G_OBJECT_CLASS (klass);
|
||||||
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
|
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
|
||||||
GtkContainerClass *container_class = GTK_CONTAINER_CLASS (klass);
|
|
||||||
|
|
||||||
object_class->finalize = sysprof_visualizer_group_finalize;
|
object_class->finalize = sysprof_visualizer_group_finalize;
|
||||||
object_class->get_property = sysprof_visualizer_group_get_property;
|
object_class->get_property = sysprof_visualizer_group_get_property;
|
||||||
object_class->set_property = sysprof_visualizer_group_set_property;
|
object_class->set_property = sysprof_visualizer_group_set_property;
|
||||||
|
|
||||||
container_class->add = sysprof_visualizer_group_add;
|
|
||||||
|
|
||||||
properties [PROP_HAS_PAGE] =
|
properties [PROP_HAS_PAGE] =
|
||||||
g_param_spec_boolean ("has-page",
|
g_param_spec_boolean ("has-page",
|
||||||
"Has Page",
|
"Has Page",
|
||||||
|
|||||||
Reference in New Issue
Block a user