inspector: Build nonrecursively

This commit is contained in:
Matthias Clasen 2014-11-30 15:59:53 -05:00
parent 25d9412c7e
commit 383d5b137b
24 changed files with 103 additions and 220 deletions

View File

@ -1941,7 +1941,6 @@ gtk/makefile.msc
gtk/gtkversion.h
gtk/gtk-win32.rc
gtk/libgtk3.manifest
gtk/inspector/Makefile
gtk/native/Makefile
util/Makefile
libgail-util/Makefile

View File

@ -18,7 +18,7 @@ else
GTK_PRINT_PREVIEW_COMMAND="evince --unlink-tempfile --preview --print-settings %s %f"
endif
SUBDIRS = inspector native .
SUBDIRS = native .
if OS_DARWIN
ECHO="echo"
else
@ -122,12 +122,10 @@ endif
libgtkincludedir = $(includedir)/gtk-3.0/gtk
libadd = \
$(top_builddir)/gdk/libgdk-3.la \
$(top_builddir)/gtk/inspector/libgtkinspector.la \
$(GMODULE_LIBS) \
$(GTK_DEP_LIBS)
deps = \
$(top_builddir)/gdk/libgdk-3.la \
$(top_builddir)/gtk/inspector/libgtkinspector.la
$(top_builddir)/gdk/libgdk-3.la
# libtool stuff: set version and export symbols for resolving
# since automake doesn't support conditionalized libsomething_la_LDFLAGS
@ -158,6 +156,7 @@ endif
include $(srcdir)/a11y/Makefile.inc
include $(srcdir)/deprecated/Makefile.inc
include $(srcdir)/inspector/Makefile.inc
# GTK+ header files for public installation (non-generated, or generated
# by configure)
@ -394,6 +393,7 @@ gtk_private_type_h_sources = \
# GTK+ header files that don't get installed
gtk_private_h_sources = \
$(inspector_h_sources) \
$(gtk_private_type_h_sources) \
gtkactionmuxer.h \
gtkactionobserver.h \
@ -574,6 +574,7 @@ gtk_private_h_sources = \
gtk_base_c_sources = \
$(a11y_c_sources) \
$(deprecated_c_sources) \
$(inspector_c_sources) \
$(clipboard_dnd_c_sources) \
gtkactionmuxer.c \
gtkactionobserver.c \
@ -1096,6 +1097,7 @@ pkgdata_DATA = gtkbuilder.rng
EXTRA_DIST += gtkbuilder.rnc gtkbuilder.rng
templates = \
$(inspector_templates) \
ui/gtkapplication-quartz.ui \
ui/gtkaboutdialog.ui \
ui/gtkactionbar.ui \
@ -1209,6 +1211,11 @@ gtk.gresource.xml: Makefile.am
$(ECHO) " <file>icons/$$s/actions/$$n</file>" >> $@; \
done; \
done; \
for f in $(srcdir)/inspector/*.ui; do \
n=`basename $$f`; \
$(ECHO) " <file compressed=\"true\">inspector/$$n</file>" >> $@; \
done; \
$(ECHO) " <file>inspector/logo.png</file>" >> $@; \
$(ECHO) " </gresource>" >> $@; \
$(ECHO) "</gresources>" >> $@;
@ -1531,6 +1538,7 @@ EXTRA_DIST += \
$(template_headers) \
a11y/Makefile.inc \
deprecated/Makefile.inc \
inspector/Makefile.inc \
libgtk3.manifest.in \
gtk-win32.rc.in \
gtkwin32embed.h \

View File

@ -1,171 +0,0 @@
include $(top_srcdir)/Makefile.decl
noinst_LTLIBRARIES = libgtkinspector.la
resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/inspector.gresource.xml)
resources.h: inspector.gresource.xml
$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $(srcdir)/inspector.gresource.xml \
--target=$@ --sourcedir=$(srcdir) --c-name gtk_inspector --generate-header --manual-register
resources.c: inspector.gresource.xml $(resource_files) $(template_headers)
$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $(srcdir)/inspector.gresource.xml \
--target=$@ --sourcedir=$(srcdir) --c-name gtk_inspector --generate-source --manual-register
BUILT_SOURCES = \
resources.h \
resources.c
libgtkinspector_la_SOURCES = \
action-editor.h \
action-editor.c \
actions.h \
actions.c \
cellrenderergraph.h \
cellrenderergraph.c \
classes-list.h \
classes-list.c \
css-editor.h \
css-editor.c \
data-list.h \
data-list.c \
general.h \
general.c \
gestures.h \
gestures.c \
graphdata.h \
graphdata.c \
init.h \
init.c \
inspect-button.c \
menu.h \
menu.c \
misc-info.h \
misc-info.c \
object-hierarchy.h \
object-hierarchy.c \
object-tree.h \
object-tree.c \
prop-editor.h \
prop-editor.c \
prop-list.h \
prop-list.c \
resource-list.h \
resource-list.c \
resources.h \
resources.c \
selector.h \
selector.c \
signals-list.h \
signals-list.c \
size-groups.h \
size-groups.c \
statistics.h \
statistics.c \
style-prop-list.h \
style-prop-list.c \
treewalk.h \
treewalk.c \
visual.h \
visual.c \
window.h \
window.c
libgtkinspector_la_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_srcdir)/gtk \
-I$(top_builddir)/gtk \
-I$(top_srcdir)/gdk \
-I$(top_builddir)/gdk \
-DGTK_VERSION=\"$(GTK_VERSION)\"\
-DGTK_DATADIR=\"$(datadir)\" \
-DGTK_COMPILATION \
$(AM_CPPFLAGS)
libgtkinspector_la_CFLAGS = \
$(GDK_HIDDEN_VISIBILITY_CFLAGS) \
$(GTK_DEP_CFLAGS) \
$(GTK_DEBUG_FLAGS) \
$(AM_CFLAGS)
if USE_QUARTZ
libgtkinspector_la_CFLAGS += "-xobjective-c"
endif # USE_QUARTZ
libgtkinspector_la_LIBADD = \
$(GTK_DEP_LIBS) \
$(INTLLIBS)
libgtkinspector_la_LDFLAGS = \
$(LDFLAGS)
templates = \
actions.ui \
classes-list.ui \
css-editor.ui \
data-list.ui \
general.ui \
menu.ui \
misc-info.ui \
object-hierarchy.ui \
object-tree.ui \
prop-list.ui \
resource-list.ui \
selector.ui \
signals-list.ui \
statistics.ui \
style-prop-list.ui \
visual.ui \
window.ui
template_headers = $(templates:.ui=.ui.h)
%.ui.h : %.ui
$(AM_V_GEN) $(top_builddir)/util/extract-strings$(EXEEXT) $< > $@
EXTRA_DIST += \
inspector.gresource.xml \
$(resource_files) \
$(templates)
MAINTAINERCLEANFILES = \
resources.c \
resources.h
distclean-local:
if test $(srcdir) != .; then \
rm -f $(MAINTAINERCLEANFILES); \
rm -f $(template_headers); \
fi
dist-hook: $(top_builddir)/build/win32/vs9/gtk-inspector.vcproj $(top_builddir)/build/win32/vs10/gtk-inspector.vcxproj $(top_builddir)/build/win32/vs10/gtk-inspector.vcxproj.filters
$(top_builddir)/build/win32/vs9/gtk-inspector.vcproj: $(top_srcdir)/build/win32/vs9/gtk-inspector.vcprojin
for F in `echo $(libgtkinspector_la_SOURCES) | tr '/' '\\'`; do \
case $$F in \
*.c) echo ' <File RelativePath="..\..\..\gtk\inspector\'$$F'" />' \
;; \
esac; \
done >libgtk-inspector.sourcefiles
$(CPP) -P - <$(top_srcdir)/build/win32/vs9/gtk-inspector.vcprojin >$@
rm libgtk-inspector.sourcefiles
$(top_builddir)/build/win32/vs10/gtk-inspector.vcxproj: $(top_srcdir)/build/win32/vs10/gtk-inspector.vcxprojin
for F in `echo $(libgtkinspector_la_SOURCES) | tr '/' '\\'`; do \
case $$F in \
*.c) echo ' <ClCompile Include="..\..\..\gtk\inspector\'$$F'" />' \
;; \
esac; \
done >libgtk-inspector.vs10.sourcefiles
$(CPP) -P - <$(top_srcdir)/build/win32/vs10/gtk-inspector.vcxprojin >$@
rm libgtk-inspector.vs10.sourcefiles
$(top_builddir)/build/win32/vs10/gtk-inspector.vcxproj.filters: $(top_srcdir)/build/win32/vs10/gtk-inspector.vcxproj.filtersin
for F in `echo $(libgtkinspector_la_SOURCES) | tr '/' '\\'`; do \
case $$F in \
*.c) echo ' <ClCompile Include="..\..\..\gtk\inspector\'$$F'"><Filter>Source Files</Filter></ClCompile>' \
;; \
esac; \
done >libgtk-inspector.vs10.sourcefiles.filters
$(CPP) -P - <$(top_srcdir)/build/win32/vs10/gtk-inspector.vcxproj.filtersin >$@
rm libgtk-inspector.vs10.sourcefiles.filters
-include $(top_srcdir)/git.mk

View File

@ -0,0 +1,73 @@
inspector_c_sources = \
inspector/action-editor.c \
inspector/actions.c \
inspector/cellrenderergraph.c \
inspector/classes-list.c \
inspector/css-editor.c \
inspector/data-list.c \
inspector/general.c \
inspector/gestures.c \
inspector/graphdata.c \
inspector/init.c \
inspector/inspect-button.c \
inspector/menu.c \
inspector/misc-info.c \
inspector/object-hierarchy.c \
inspector/object-tree.c \
inspector/prop-editor.c \
inspector/prop-list.c \
inspector/resource-list.c \
inspector/selector.c \
inspector/signals-list.c \
inspector/size-groups.c \
inspector/statistics.c \
inspector/style-prop-list.c \
inspector/treewalk.c \
inspector/visual.c \
inspector/window.c
inspector_h_sources = \
inspector/action-editor.h \
inspector/actions.h \
inspector/cellrenderergraph.h \
inspector/classes-list.h \
inspector/css-editor.h \
inspector/data-list.h \
inspector/general.h \
inspector/gestures.h \
inspector/graphdata.h \
inspector/init.h \
inspector/menu.h \
inspector/misc-info.h \
inspector/object-hierarchy.h \
inspector/object-tree.h \
inspector/prop-editor.h \
inspector/prop-list.h \
inspector/resource-list.h \
inspector/selector.h \
inspector/signals-list.h \
inspector/size-groups.h \
inspector/statistics.h \
inspector/style-prop-list.h \
inspector/treewalk.h \
inspector/visual.h \
inspector/window.h
inspector_templates = \
inspector/actions.ui \
inspector/classes-list.ui \
inspector/css-editor.ui \
inspector/data-list.ui \
inspector/general.ui \
inspector/menu.ui \
inspector/misc-info.ui \
inspector/object-hierarchy.ui \
inspector/object-tree.ui \
inspector/prop-list.ui \
inspector/resource-list.ui \
inspector/selector.ui \
inspector/signals-list.ui \
inspector/statistics.ui \
inspector/style-prop-list.ui \
inspector/visual.ui \
inspector/window.ui

View File

@ -284,7 +284,7 @@ gtk_inspector_actions_class_init (GtkInspectorActionsClass *klass)
{
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/inspector/actions.ui");
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/libgtk/inspector/actions.ui");
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorActions, model);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorActions, object_title);
gtk_widget_class_bind_template_callback (widget_class, row_activated);

View File

@ -317,7 +317,7 @@ gtk_inspector_classes_list_class_init (GtkInspectorClassesListClass *klass)
object_class->finalize = gtk_inspector_classes_list_finalize;
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/inspector/classes-list.ui");
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/libgtk/inspector/classes-list.ui");
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorClassesList, model);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorClassesList, object_title);
gtk_widget_class_bind_template_callback (widget_class, add_clicked);

View File

@ -439,7 +439,7 @@ gtk_inspector_css_editor_class_init (GtkInspectorCssEditorClass *klass)
g_param_spec_boolean ("global", "Global", "Whether this editor changes the whole application or just the selected widget",
TRUE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/inspector/css-editor.ui");
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/libgtk/inspector/css-editor.ui");
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorCssEditor, text);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorCssEditor, view);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorCssEditor, disable_button);

View File

@ -154,7 +154,7 @@ gtk_inspector_data_list_class_init (GtkInspectorDataListClass *klass)
{
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/inspector/data-list.ui");
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/libgtk/inspector/data-list.ui");
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorDataList, view);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorDataList, object_title);
gtk_widget_class_bind_template_callback (widget_class, toggle_show);

View File

@ -348,7 +348,7 @@ gtk_inspector_general_class_init (GtkInspectorGeneralClass *klass)
object_class->constructed = gtk_inspector_general_constructed;
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/inspector/general.ui");
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/libgtk/inspector/general.ui");
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorGeneral, version_box);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorGeneral, env_box);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorGeneral, gl_box);

View File

@ -38,7 +38,6 @@
#include "object-tree.h"
#include "prop-list.h"
#include "resource-list.h"
#include "resources.h"
#include "selector.h"
#include "signals-list.h"
#include "size-groups.h"
@ -50,8 +49,6 @@
void
gtk_inspector_init (void)
{
gtk_inspector_register_resource ();
g_type_ensure (GTK_TYPE_CELL_RENDERER_GRAPH);
g_type_ensure (GTK_TYPE_GRAPH_DATA);
g_type_ensure (GTK_TYPE_INSPECTOR_ACTIONS);

View File

@ -1,23 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/org/gtk/inspector">
<file compressed="true">actions.ui</file>
<file compressed="true">classes-list.ui</file>
<file compressed="true">css-editor.ui</file>
<file compressed="true">data-list.ui</file>
<file compressed="true">general.ui</file>
<file compressed="true">menu.ui</file>
<file compressed="true">misc-info.ui</file>
<file compressed="true">object-hierarchy.ui</file>
<file compressed="true">object-tree.ui</file>
<file compressed="true">prop-list.ui</file>
<file compressed="true">selector.ui</file>
<file compressed="true">signals-list.ui</file>
<file compressed="true">statistics.ui</file>
<file compressed="true">style-prop-list.ui</file>
<file compressed="true">resource-list.ui</file>
<file compressed="true">visual.ui</file>
<file compressed="true">window.ui</file>
<file>logo.png</file>
</gresource>
</gresources>

View File

@ -147,7 +147,7 @@ gtk_inspector_menu_class_init (GtkInspectorMenuClass *klass)
{
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/inspector/menu.ui");
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/libgtk/inspector/menu.ui");
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorMenu, model);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorMenu, object_title);
}

View File

@ -548,7 +548,7 @@ gtk_inspector_misc_info_class_init (GtkInspectorMiscInfoClass *klass)
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/inspector/misc-info.ui");
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, refcount_row);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorMiscInfo, refcount);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorMiscInfo, state_row);

View File

@ -57,7 +57,7 @@ gtk_inspector_object_hierarchy_class_init (GtkInspectorObjectHierarchyClass *kla
{
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/inspector/object-hierarchy.ui");
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/libgtk/inspector/object-hierarchy.ui");
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorObjectHierarchy, model);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorObjectHierarchy, tree);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorObjectHierarchy, object_title);

View File

@ -480,7 +480,7 @@ gtk_inspector_object_tree_class_init (GtkInspectorObjectTreeClass *klass)
NULL,
G_TYPE_NONE, 1, G_TYPE_OBJECT);
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/inspector/object-tree.ui");
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/libgtk/inspector/object-tree.ui");
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorObjectTree, model);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorObjectTree, tree);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorObjectTree, object_column);

View File

@ -363,7 +363,7 @@ gtk_inspector_prop_list_class_init (GtkInspectorPropListClass *klass)
g_param_spec_boolean ("child-properties", "Child properties", "Child properties",
FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/inspector/prop-list.ui");
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/libgtk/inspector/prop-list.ui");
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorPropList, model);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorPropList, attribute_column);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorPropList, tree);

View File

@ -668,7 +668,7 @@ gtk_inspector_resource_list_class_init (GtkInspectorResourceListClass *klass)
g_param_spec_object ("buttons", NULL, NULL,
GTK_TYPE_WIDGET, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/inspector/resource-list.ui");
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/libgtk/inspector/resource-list.ui");
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorResourceList, model);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorResourceList, buffer);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorResourceList, content);

View File

@ -53,7 +53,7 @@ gtk_inspector_selector_class_init (GtkInspectorSelectorClass *klass)
{
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/inspector/selector.ui");
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/libgtk/inspector/selector.ui");
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorSelector, model);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorSelector, tree);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorSelector, object_title);

View File

@ -342,7 +342,7 @@ gtk_inspector_signals_list_class_init (GtkInspectorSignalsListClass *klass)
{
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/inspector/signals-list.ui");
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/libgtk/inspector/signals-list.ui");
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorSignalsList, view);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorSignalsList, model);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorSignalsList, text);

View File

@ -438,7 +438,7 @@ gtk_inspector_statistics_class_init (GtkInspectorStatisticsClass *klass)
g_param_spec_object ("button", NULL, NULL,
GTK_TYPE_WIDGET, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/inspector/statistics.ui");
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/libgtk/inspector/statistics.ui");
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorStatistics, view);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorStatistics, stack);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorStatistics, model);

View File

@ -276,7 +276,7 @@ gtk_inspector_style_prop_list_class_init (GtkInspectorStylePropListClass *klass)
object_class->finalize = finalize;
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/inspector/style-prop-list.ui");
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/libgtk/inspector/style-prop-list.ui");
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorStylePropList, model);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorStylePropList, tree);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorStylePropList, search_stack);

View File

@ -630,7 +630,7 @@ gtk_inspector_visual_class_init (GtkInspectorVisualClass *klass)
object_class->constructed = gtk_inspector_visual_constructed;
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/inspector/visual.ui");
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/libgtk/inspector/visual.ui");
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorVisual, rendering_mode_combo);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorVisual, updates_switch);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorVisual, direction_combo);

View File

@ -152,7 +152,7 @@ gtk_inspector_window_class_init (GtkInspectorWindowClass *klass)
object_class->constructed = gtk_inspector_window_constructed;
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/inspector/window.ui");
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/libgtk/inspector/window.ui");
gtk_widget_class_bind_template_child (widget_class, GtkInspectorWindow, top_stack);
gtk_widget_class_bind_template_child (widget_class, GtkInspectorWindow, object_stack);

View File

@ -3,7 +3,7 @@
<template class="GtkInspectorWindow" parent="GtkWindow">
<property name="default-height">500</property>
<property name="default-width">800</property>
<property name="icon">resource:///org/gtk/inspector/logo.png</property>
<property name="icon">resource:///org/gtk/libgtk/inspector/logo.png</property>
<child type="titlebar">
<object class="GtkHeaderBar">
<property name="visible">True</property>