[sysprof/wip/gtk4-port: 47/132] visualizergroup: port to GTK 4




commit 4e8a34726fc7bf2571d011266739f547cb4611ab
Author: Christian Hergert <chergert redhat com>
Date:   Tue Sep 28 16:03:00 2021 -0700

    visualizergroup: port to GTK 4

 src/libsysprof-ui/sysprof-visualizer-group.c | 18 ------------------
 1 file changed, 18 deletions(-)
---
diff --git a/src/libsysprof-ui/sysprof-visualizer-group.c b/src/libsysprof-ui/sysprof-visualizer-group.c
index fb10da9a..45d15314 100644
--- a/src/libsysprof-ui/sysprof-visualizer-group.c
+++ b/src/libsysprof-ui/sysprof-visualizer-group.c
@@ -157,21 +157,6 @@ create_action_name (const gchar *str)
   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
 sysprof_visualizer_group_finalize (GObject *object)
 {
@@ -257,14 +242,11 @@ sysprof_visualizer_group_class_init (SysprofVisualizerGroupClass *klass)
 {
   GObjectClass *object_class = G_OBJECT_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->get_property = sysprof_visualizer_group_get_property;
   object_class->set_property = sysprof_visualizer_group_set_property;
 
-  container_class->add = sysprof_visualizer_group_add;
-
   properties [PROP_HAS_PAGE] =
     g_param_spec_boolean ("has-page",
                           "Has Page",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]