mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
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.
This commit is contained in:
@ -38,7 +38,7 @@ typedef struct
|
|||||||
GtkAllocation cache_alloc;
|
GtkAllocation cache_alloc;
|
||||||
} SysprofVisualizerPrivate;
|
} SysprofVisualizerPrivate;
|
||||||
|
|
||||||
G_DEFINE_TYPE_WITH_PRIVATE (SysprofVisualizer, sysprof_visualizer, DZL_TYPE_BIN)
|
G_DEFINE_TYPE_WITH_PRIVATE (SysprofVisualizer, sysprof_visualizer, GTK_TYPE_BIN)
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
PROP_0,
|
PROP_0,
|
||||||
|
|||||||
@ -24,7 +24,7 @@
|
|||||||
# error "Only <sysprof-ui.h> can be included directly."
|
# error "Only <sysprof-ui.h> can be included directly."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <dazzle.h>
|
#include <gtk/gtk.h>
|
||||||
#include <sysprof.h>
|
#include <sysprof.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
@ -44,11 +44,11 @@ typedef struct
|
|||||||
#define SYSPROF_TYPE_VISUALIZER (sysprof_visualizer_get_type())
|
#define SYSPROF_TYPE_VISUALIZER (sysprof_visualizer_get_type())
|
||||||
|
|
||||||
SYSPROF_AVAILABLE_IN_ALL
|
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
|
struct _SysprofVisualizerClass
|
||||||
{
|
{
|
||||||
DzlBinClass parent_class;
|
GtkBinClass parent_class;
|
||||||
|
|
||||||
void (*set_reader) (SysprofVisualizer *self,
|
void (*set_reader) (SysprofVisualizer *self,
|
||||||
SysprofCaptureReader *reader);
|
SysprofCaptureReader *reader);
|
||||||
|
|||||||
Reference in New Issue
Block a user