diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-07-07 00:53:55 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-07-07 01:25:21 -0400 |
commit | fe5b3646753a2ad506d6bf8b008a2738bc3dee9e (patch) | |
tree | df9dc5a317510336d4ed23025dd6eff33e9fdcb7 /gtk/inspector/misc-info.c | |
parent | 0b38a0663d028e1c141ced1bfdc20222ed412f51 (diff) | |
download | gtk+-fe5b3646753a2ad506d6bf8b008a2738bc3dee9e.tar.gz |
inspector: Drop unused properties
The individual pages no longer need the object tree
to show object details, this works with the window
now.
Diffstat (limited to 'gtk/inspector/misc-info.c')
-rw-r--r-- | gtk/inspector/misc-info.c | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/gtk/inspector/misc-info.c b/gtk/inspector/misc-info.c index e7194be6a1..d00163eb8d 100644 --- a/gtk/inspector/misc-info.c +++ b/gtk/inspector/misc-info.c @@ -20,7 +20,6 @@ #include "misc-info.h" #include "window.h" -#include "object-tree.h" #include "type-info.h" #include "gtktypebuiltins.h" @@ -35,8 +34,6 @@ struct _GtkInspectorMiscInfoPrivate { - GtkInspectorObjectTree *object_tree; - GObject *object; GtkWidget *swin; @@ -91,12 +88,6 @@ struct _GtkInspectorMiscInfoPrivate { gint64 last_frame; }; -enum -{ - PROP_0, - PROP_OBJECT_TREE -}; - G_DEFINE_TYPE_WITH_PRIVATE (GtkInspectorMiscInfo, gtk_inspector_misc_info, GTK_TYPE_WIDGET) static gchar * @@ -532,46 +523,6 @@ unmap (GtkWidget *widget) } static void -get_property (GObject *object, - guint param_id, - GValue *value, - GParamSpec *pspec) -{ - GtkInspectorMiscInfo *sl = GTK_INSPECTOR_MISC_INFO (object); - - switch (param_id) - { - case PROP_OBJECT_TREE: - g_value_take_object (value, sl->priv->object_tree); - break; - - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec); - break; - } -} - -static void -set_property (GObject *object, - guint param_id, - const GValue *value, - GParamSpec *pspec) -{ - GtkInspectorMiscInfo *sl = GTK_INSPECTOR_MISC_INFO (object); - - switch (param_id) - { - case PROP_OBJECT_TREE: - sl->priv->object_tree = g_value_get_object (value); - break; - - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec); - break; - } -} - -static void dispose (GObject *o) { GtkInspectorMiscInfo *sl = GTK_INSPECTOR_MISC_INFO (o); @@ -587,17 +538,11 @@ gtk_inspector_misc_info_class_init (GtkInspectorMiscInfoClass *klass) GObjectClass *object_class = G_OBJECT_CLASS (klass); GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); - object_class->get_property = get_property; - object_class->set_property = set_property; object_class->dispose = dispose; widget_class->map = map; widget_class->unmap = unmap; - g_object_class_install_property (object_class, PROP_OBJECT_TREE, - g_param_spec_object ("object-tree", "Object Tree", "Object tree", - GTK_TYPE_WIDGET, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); - gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/libgtk/inspector/misc-info.ui"); gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorMiscInfo, swin); gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorMiscInfo, address); |