inspector: UI refresh
The sidebar in the object page was using up more space than it deserves. Replace it with a combo box in the subheader. Now that we have more space, put the CSS node tree and the style properties in the same page again.
This commit is contained in:
@ -79,7 +79,6 @@ struct _GtkInspectorMiscInfoPrivate {
|
||||
GtkWidget *is_toplevel;
|
||||
GtkWidget *child_visible_row;
|
||||
GtkWidget *child_visible;
|
||||
GtkWidget *object_title;
|
||||
|
||||
guint update_source_id;
|
||||
gint64 last_frame;
|
||||
@ -393,8 +392,6 @@ void
|
||||
gtk_inspector_misc_info_set_object (GtkInspectorMiscInfo *sl,
|
||||
GObject *object)
|
||||
{
|
||||
const gchar *title;
|
||||
|
||||
if (sl->priv->object)
|
||||
{
|
||||
g_signal_handlers_disconnect_by_func (sl->priv->object, state_flags_changed, sl);
|
||||
@ -411,9 +408,6 @@ gtk_inspector_misc_info_set_object (GtkInspectorMiscInfo *sl,
|
||||
g_object_weak_ref (G_OBJECT (sl), disconnect_each_other, object);
|
||||
g_object_weak_ref (object, disconnect_each_other, sl);
|
||||
|
||||
title = (const gchar *)g_object_get_data (object, "gtk-inspector-object-title");
|
||||
gtk_label_set_label (GTK_LABEL (sl->priv->object_title), title);
|
||||
|
||||
if (GTK_IS_WIDGET (object))
|
||||
{
|
||||
gtk_widget_show (sl->priv->refcount_row);
|
||||
@ -621,7 +615,6 @@ gtk_inspector_misc_info_class_init (GtkInspectorMiscInfoClass *klass)
|
||||
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorMiscInfo, is_toplevel);
|
||||
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorMiscInfo, child_visible_row);
|
||||
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorMiscInfo, child_visible);
|
||||
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorMiscInfo, object_title);
|
||||
|
||||
gtk_widget_class_bind_template_callback (widget_class, show_default_widget);
|
||||
gtk_widget_class_bind_template_callback (widget_class, show_focus_widget);
|
||||
|
||||
Reference in New Issue
Block a user