[sysprof/wip/gtk4-port: 15/125] visualizer: remove DzlBin usage




commit 9e08c05ea1df46e76d3a17b7d222d6e6290732b7
Author: Christian Hergert <chergert redhat com>
Date:   Tue Sep 28 13:01:24 2021 -0700

    visualizer: remove DzlBin usage
    
    We can just use GtkBin for now, and in GTK 4 we'll switch to using
    GtkWidget as the parent type. But this helps us progress on de-dazzling.

 src/libsysprof-ui/sysprof-visualizer.c | 2 +-
 src/libsysprof-ui/sysprof-visualizer.h | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/libsysprof-ui/sysprof-visualizer.c b/src/libsysprof-ui/sysprof-visualizer.c
index eae12774..1f9bdd23 100644
--- a/src/libsysprof-ui/sysprof-visualizer.c
+++ b/src/libsysprof-ui/sysprof-visualizer.c
@@ -38,7 +38,7 @@ typedef struct
   GtkAllocation cache_alloc;
 } SysprofVisualizerPrivate;
 
-G_DEFINE_TYPE_WITH_PRIVATE (SysprofVisualizer, sysprof_visualizer, DZL_TYPE_BIN)
+G_DEFINE_TYPE_WITH_PRIVATE (SysprofVisualizer, sysprof_visualizer, GTK_TYPE_BIN)
 
 enum {
   PROP_0,
diff --git a/src/libsysprof-ui/sysprof-visualizer.h b/src/libsysprof-ui/sysprof-visualizer.h
index 38b94d42..133fd420 100644
--- a/src/libsysprof-ui/sysprof-visualizer.h
+++ b/src/libsysprof-ui/sysprof-visualizer.h
@@ -24,7 +24,7 @@
 # error "Only <sysprof-ui.h> can be included directly."
 #endif
 
-#include <dazzle.h>
+#include <gtk/gtk.h>
 #include <sysprof.h>
 
 G_BEGIN_DECLS
@@ -44,11 +44,11 @@ typedef struct
 #define SYSPROF_TYPE_VISUALIZER (sysprof_visualizer_get_type())
 
 SYSPROF_AVAILABLE_IN_ALL
-G_DECLARE_DERIVABLE_TYPE (SysprofVisualizer, sysprof_visualizer, SYSPROF, VISUALIZER, DzlBin)
+G_DECLARE_DERIVABLE_TYPE (SysprofVisualizer, sysprof_visualizer, SYSPROF, VISUALIZER, GtkBin)
 
 struct _SysprofVisualizerClass
 {
-  DzlBinClass parent_class;
+  GtkBinClass parent_class;
 
   void (*set_reader) (SysprofVisualizer    *self,
                       SysprofCaptureReader *reader);


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