Compare commits
325 Commits
wip/matthi
...
3.14.10
Author | SHA1 | Date | |
---|---|---|---|
|
055d799f6a | ||
|
b7f4c25ba4 | ||
|
ef1fa3d4d3 | ||
|
9813971304 | ||
|
2b16ef289d | ||
|
636dd80421 | ||
|
cb1d02ecd7 | ||
|
272ddd5687 | ||
|
dea45574c4 | ||
|
48f7faf0da | ||
|
ca759c3eb6 | ||
|
8f5bdfe3e2 | ||
|
4e9ff47868 | ||
|
482b0295e0 | ||
|
74b6474597 | ||
|
a8d8cfdc39 | ||
|
78605a6549 | ||
|
3b036cf4d4 | ||
|
a4115f4612 | ||
|
b10d3d0051 | ||
|
78475606c9 | ||
|
6e32881a59 | ||
|
4dfbbba7b0 | ||
|
d34f4f6f57 | ||
|
813cb485b6 | ||
|
8a5bf398f5 | ||
|
fc22007559 | ||
|
6a6350b855 | ||
|
b6a480bf97 | ||
|
ea7361c148 | ||
|
9fd9c4b0af | ||
|
81da1b0274 | ||
|
79373646ab | ||
|
825f0f106e | ||
|
5684844df7 | ||
|
e385cd82a9 | ||
|
5f54cb0251 | ||
|
d5c9d4e807 | ||
|
de47cd1633 | ||
|
12e55af53b | ||
|
d11455cecb | ||
|
f12e76c61f | ||
|
baba3ff0e5 | ||
|
1570517b13 | ||
|
83db446e1e | ||
|
397738c199 | ||
|
378823ba4b | ||
|
c0e4d80a6d | ||
|
45028dfc0e | ||
|
17d4a4e2d1 | ||
|
d62cb72fac | ||
|
5c17e0b027 | ||
|
8a7c236f86 | ||
|
d51c9fb9a3 | ||
|
95ea70e2da | ||
|
6e5e282b59 | ||
|
12321d3be7 | ||
|
4e22211dce | ||
|
777fabd9fd | ||
|
095e28226f | ||
|
7361873d52 | ||
|
3c2230bf53 | ||
|
cb86e3140d | ||
|
e5c187c506 | ||
|
fed589d418 | ||
|
f9be976836 | ||
|
bf096d99dd | ||
|
db44c357c3 | ||
|
8380062c6a | ||
|
1f04ff7f4a | ||
|
d5c7da5c83 | ||
|
4592bd3e6e | ||
|
6b086d965c | ||
|
4fbbb87be6 | ||
|
371d3fc5a6 | ||
|
1c395c900e | ||
|
ff1ec03d96 | ||
|
a44baab9de | ||
|
8ba4d8f21d | ||
|
ffeda6ffec | ||
|
32e9659d83 | ||
|
75ab755f08 | ||
|
8cf2c8d85a | ||
|
40e3cd0dac | ||
|
073e0483e9 | ||
|
e2d89d21d4 | ||
|
e2e37c772f | ||
|
e17fb52cfc | ||
|
c724f4b57e | ||
|
071447700e | ||
|
77c27772c5 | ||
|
8ad8cc703b | ||
|
1a9ed8c524 | ||
|
e810cb8782 | ||
|
8842ee8579 | ||
|
a4c837e09b | ||
|
e38943ad69 | ||
|
8af9287808 | ||
|
82c21b1e93 | ||
|
eb0a76439c | ||
|
4a5d06fb72 | ||
|
70b4d11259 | ||
|
c44d18e8c2 | ||
|
37751cd0fb | ||
|
267d8dc3fb | ||
|
7b9a8958be | ||
|
62616a716f | ||
|
650c25e06c | ||
|
90d42ef5cc | ||
|
92263fd5b1 | ||
|
07b39b2140 | ||
|
14fca7522d | ||
|
b2fe2da866 | ||
|
fbb63e3e2d | ||
|
ecca2456b8 | ||
|
a096820883 | ||
|
959d1eff53 | ||
|
6231082839 | ||
|
6ea86ef1c7 | ||
|
d237e04864 | ||
|
765902dbd6 | ||
|
59c02b7f1c | ||
|
420d7414bf | ||
|
90a253758d | ||
|
9466e8926d | ||
|
7c31af26e5 | ||
|
485ab7a3d9 | ||
|
75659b2b60 | ||
|
02108abfa4 | ||
|
ac97bfde80 | ||
|
2a98e4ace5 | ||
|
05c0a487ad | ||
|
66888cedec | ||
|
579e47bc66 | ||
|
6429a66258 | ||
|
ab31b0d1aa | ||
|
c945526b1f | ||
|
9f374a185d | ||
|
592794b309 | ||
|
0691f8f011 | ||
|
2f20fffbae | ||
|
c28891bd97 | ||
|
d9b7a24c90 | ||
|
682dc8eea7 | ||
|
46fa7bb4cd | ||
|
eeb6e7a7b6 | ||
|
d518f5959f | ||
|
4d66aeab4e | ||
|
9655cc46e5 | ||
|
0da9ef6233 | ||
|
f42f12e775 | ||
|
583a8dd1a7 | ||
|
d82e76c1de | ||
|
ef8322c46e | ||
|
eddb6eb086 | ||
|
393e4205ec | ||
|
9cdb9e648a | ||
|
c7557b95d6 | ||
|
c6fc30721c | ||
|
4523b394b9 | ||
|
d3abcd823f | ||
|
2f9e88b664 | ||
|
bd6608036a | ||
|
3c745d6f7a | ||
|
23eeb44beb | ||
|
07f8ecd4cf | ||
|
1cfbf16617 | ||
|
ff669c6b12 | ||
|
866c9a498d | ||
|
87c5c662c0 | ||
|
d6b4bd0967 | ||
|
023fbb91d6 | ||
|
623f3e00e4 | ||
|
1d17891eaa | ||
|
292a9b4a02 | ||
|
812109cc3f | ||
|
4621142e0c | ||
|
28c39fb0f8 | ||
|
c68490ee17 | ||
|
7833835930 | ||
|
1a1c1091da | ||
|
7e21425228 | ||
|
e65112aaef | ||
|
7d066258f3 | ||
|
527d262804 | ||
|
b8a154ad69 | ||
|
bd893461b0 | ||
|
63d0cf2a83 | ||
|
2f5adb1f76 | ||
|
40aadf8502 | ||
|
10319e1f3d | ||
|
b4ec98dbec | ||
|
ab5a8e6bb9 | ||
|
af3efad099 | ||
|
4d1fdfeb10 | ||
|
2749b473ce | ||
|
8d6b5ece9f | ||
|
98b961a1d6 | ||
|
7c213fa980 | ||
|
8a2bf9f853 | ||
|
047dd914a3 | ||
|
e3ce367e18 | ||
|
9cab6be752 | ||
|
3a683e46e7 | ||
|
3617c3bd15 | ||
|
0b8f666e02 | ||
|
a329677311 | ||
|
f935432ac5 | ||
|
d7bff60140 | ||
|
55174e3f62 | ||
|
1977ad5bb7 | ||
|
695ff3882b | ||
|
e9c4313337 | ||
|
0ddb4fd989 | ||
|
02bae1885b | ||
|
81f94245ba | ||
|
7acbd5fd24 | ||
|
c01578284d | ||
|
8055a37230 | ||
|
5e7630c1ee | ||
|
637ef1df38 | ||
|
ed0e7f61af | ||
|
830a72b307 | ||
|
7d3991f275 | ||
|
fe6b3e552e | ||
|
9e96e13d28 | ||
|
752170e8d6 | ||
|
8336d56af9 | ||
|
59769a0046 | ||
|
7c804dbf21 | ||
|
84d6b0f35c | ||
|
ccdcc8a1ec | ||
|
ca26f696c6 | ||
|
4a25c48a01 | ||
|
5d9d1f161b | ||
|
01dd0eb4c2 | ||
|
0b883daf15 | ||
|
ad6de7637b | ||
|
79e7934eb3 | ||
|
ea8a281543 | ||
|
cd443f34c7 | ||
|
210c3d0129 | ||
|
8f1c6e3717 | ||
|
989330a9fd | ||
|
5930c55d42 | ||
|
4f9f52c513 | ||
|
cd6caea94c | ||
|
5291d0870b | ||
|
78bb68685b | ||
|
baf2b5c57b | ||
|
94b471aaed | ||
|
5ce6756f96 | ||
|
63076ad085 | ||
|
21e5031103 | ||
|
7abd5a5636 | ||
|
c4fe388255 | ||
|
06842a2dc5 | ||
|
30a1c4ab35 | ||
|
973b52e8cf | ||
|
c25e8cefae | ||
|
627c285b4c | ||
|
36bc6c82f9 | ||
|
1670ba1d51 | ||
|
adfb60dff7 | ||
|
ffc4111fea | ||
|
8710a14d34 | ||
|
654c989f22 | ||
|
1515a5a8f9 | ||
|
9c1ecdf112 | ||
|
b261ca7ec2 | ||
|
4e569765be | ||
|
d840504741 | ||
|
b1345c0218 | ||
|
e119422927 | ||
|
9a24f8295b | ||
|
a9ebdd3aa8 | ||
|
6e42eb1224 | ||
|
57121ffe2c | ||
|
69fd4348a8 | ||
|
590ed447e8 | ||
|
3b2466b1ac | ||
|
5d4d144103 | ||
|
7ca79b2ca5 | ||
|
693b568b99 | ||
|
8247e44874 | ||
|
231cac4f78 | ||
|
597aa8b74d | ||
|
3eba66d11d | ||
|
cc953409d5 | ||
|
8aece58e2b | ||
|
85f1c1f8bc | ||
|
d94f9e5680 | ||
|
cb670543bc | ||
|
7f406f2db1 | ||
|
ea205f75d2 | ||
|
951b59ffbe | ||
|
590955dcce | ||
|
8b83ec9b59 | ||
|
700b3e7d8a | ||
|
a0b2cf402f | ||
|
d46a271112 | ||
|
846c91c66d | ||
|
05d7be8a54 | ||
|
0851a16d90 | ||
|
ee25d35cd0 | ||
|
666f7d35e4 | ||
|
0891ff83b6 | ||
|
90c639fe46 | ||
|
d65b8e6ff1 | ||
|
c5e39fd4c1 | ||
|
928a51533f | ||
|
cfb51ddb4a | ||
|
7599f1804c | ||
|
4fc47c800d | ||
|
19e8357471 | ||
|
4de087262e | ||
|
2c9c2f704c | ||
|
84f5091459 | ||
|
2ce384cc5a | ||
|
94592be5bc | ||
|
d763169bb5 | ||
|
3ae6d33667 | ||
|
73f386169c | ||
|
deed16b151 | ||
|
e2355b55e4 |
10
INSTALL.in
@@ -9,21 +9,17 @@ GTK+ requires the following packages:
|
|||||||
GdkPixbuf @GDK_PIXBUF_REQUIRED_VERSION@, ATK @ATK_REQUIRED_VERSION@
|
GdkPixbuf @GDK_PIXBUF_REQUIRED_VERSION@, ATK @ATK_REQUIRED_VERSION@
|
||||||
and cairo @CAIRO_REQUIRED_VERSION@.
|
and cairo @CAIRO_REQUIRED_VERSION@.
|
||||||
|
|
||||||
- libepoxy, for cross-platform OpenGL support.
|
|
||||||
It can be found here: https://github.com/anholt/libepoxy
|
|
||||||
|
|
||||||
- Each GDK backend has its own backend-specific requirements. For
|
- Each GDK backend has its own backend-specific requirements. For
|
||||||
the X11 backend, X11 R6 and XInput version 2 (as well as a number
|
the X11 backend, X11 R6 and XInput version 2 (as well as a number
|
||||||
of other extensions) are required. The Wayland backend requires
|
of other extensions) are required.
|
||||||
(obviously) the Wayland libraries.
|
|
||||||
|
|
||||||
- gobject-introspection @INTROSPECTION_REQUIRED_VERSION@ or newer.
|
- gobject-introspection @INTROSPECTION_REQUIRED_VERSION@ or newer.
|
||||||
|
|
||||||
Simple install procedure
|
Simple install procedure
|
||||||
========================
|
========================
|
||||||
|
|
||||||
% tar xf gtk+-@GTK_VERSION@.tar.xz # unpack the sources
|
% tar xf gtk+-@GTK_VERSION@.tar.xz # unpack the sources
|
||||||
% cd gtk+-@GTK_VERSION@ # change to the toplevel directory
|
% cd gtk+-@GTK_VERSION@ # change to the toplevel directory
|
||||||
% ./configure # run the `configure' script
|
% ./configure # run the `configure' script
|
||||||
% make # build GTK+
|
% make # build GTK+
|
||||||
[ Become root if necessary ]
|
[ Become root if necessary ]
|
||||||
|
36
Makefile.am
@@ -1,7 +1,7 @@
|
|||||||
## Makefile.am for GTK+
|
## Makefile.am for GTK+
|
||||||
include $(top_srcdir)/Makefile.decl
|
include $(top_srcdir)/Makefile.decl
|
||||||
|
|
||||||
SRC_SUBDIRS = gdk gtk libgail-util modules demos tests testsuite examples
|
SRC_SUBDIRS = util gdk gtk libgail-util modules demos tests testsuite examples
|
||||||
SUBDIRS = po po-properties $(SRC_SUBDIRS) docs m4macros build
|
SUBDIRS = po po-properties $(SRC_SUBDIRS) docs m4macros build
|
||||||
|
|
||||||
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
|
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
|
||||||
@@ -9,20 +9,15 @@ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
|
|||||||
EXTRA_DIST += \
|
EXTRA_DIST += \
|
||||||
autogen.sh \
|
autogen.sh \
|
||||||
HACKING \
|
HACKING \
|
||||||
README \
|
|
||||||
README.in \
|
|
||||||
INSTALL \
|
|
||||||
INSTALL.in \
|
|
||||||
NEWS.pre-1-0 \
|
NEWS.pre-1-0 \
|
||||||
README.commits \
|
README.commits \
|
||||||
README.win32 \
|
README.win32 \
|
||||||
config.h.win32 \
|
config.h.win32 \
|
||||||
makefile.msc \
|
makefile.msc \
|
||||||
gtk-zip.sh.in \
|
gtk-zip.sh.in \
|
||||||
sanitize-la.sh \
|
sanitize-la.sh \
|
||||||
po/README.translators \
|
po/README.translators \
|
||||||
po/po2tbl.sed.in \
|
po/po2tbl.sed.in
|
||||||
make-pot
|
|
||||||
|
|
||||||
MAINTAINERCLEANFILES = \
|
MAINTAINERCLEANFILES = \
|
||||||
$(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
|
$(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
|
||||||
@@ -31,21 +26,24 @@ MAINTAINERCLEANFILES = \
|
|||||||
$(srcdir)/m4/gtk-doc.m4 \
|
$(srcdir)/m4/gtk-doc.m4 \
|
||||||
$(srcdir)/INSTALL \
|
$(srcdir)/INSTALL \
|
||||||
$(srcdir)/README \
|
$(srcdir)/README \
|
||||||
|
$(srcdir)/omf.make \
|
||||||
|
$(srcdir)/xmldocs.make \
|
||||||
$(srcdir)/gtk-doc.make \
|
$(srcdir)/gtk-doc.make \
|
||||||
$(srcdir)/ChangeLog
|
$(srcdir)/ChangeLog
|
||||||
|
|
||||||
|
|
||||||
## Copy .pc files to target-specific names
|
## Copy .pc files to target-specific names
|
||||||
gtk+-x11-3.0.pc gtk+-win32-3.0.pc gtk+-quartz-3.0.pc gtk+-broadway-3.0.pc gtk+-wayland-3.0.pc gtk+-mir-3.0.pc: gtk+-3.0.pc
|
gtk+-x11-3.0.pc gtk+-win32-3.0.pc gtk+-quartz-3.0.pc gtk+-broadway-3.0.pc gtk+-wayland-3.0.pc: gtk+-3.0.pc
|
||||||
rm -f $@ && \
|
rm -f $@ && \
|
||||||
cp gtk+-3.0.pc $@
|
cp gtk+-3.0.pc $@
|
||||||
|
|
||||||
gdk-x11-3.0.pc gdk-win32-3.0.pc gdk-quartz-3.0.pc gdk-broadway-3.0.pc gdk-wayland-3.0.pc gdk-mir-3.0.pc: gdk-3.0.pc
|
gdk-x11-3.0.pc gdk-win32-3.0.pc gdk-quartz-3.0.pc gdk-broadway-3.0.pc gdk-wayland-3.0.pc: gdk-3.0.pc
|
||||||
rm -f $@ && \
|
rm -f $@ && \
|
||||||
cp gdk-3.0.pc $@
|
cp gdk-3.0.pc $@
|
||||||
|
|
||||||
pkgconfigdir = $(libdir)/pkgconfig
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
pkgconfig_DATA = gdk-3.0.pc gtk+-3.0.pc gail-3.0.pc
|
pkgconfig_DATA = gdk-3.0.pc gtk+-3.0.pc gail-3.0.pc
|
||||||
|
|
||||||
pkgconfig_DATA += ${GDK_BACKENDS:%=gtk+-%-3.0.pc}
|
pkgconfig_DATA += ${GDK_BACKENDS:%=gtk+-%-3.0.pc}
|
||||||
pkgconfig_DATA += ${GDK_BACKENDS:%=gdk-%-3.0.pc}
|
pkgconfig_DATA += ${GDK_BACKENDS:%=gdk-%-3.0.pc}
|
||||||
|
|
||||||
@@ -61,14 +59,12 @@ DISTCLEANFILES = \
|
|||||||
gtk+-quartz-3.0.pc \
|
gtk+-quartz-3.0.pc \
|
||||||
gtk+-broadway-3.0.pc \
|
gtk+-broadway-3.0.pc \
|
||||||
gtk+-wayland-3.0.pc \
|
gtk+-wayland-3.0.pc \
|
||||||
gtk+-mir-3.0.pc \
|
|
||||||
gdk-3.0.pc \
|
gdk-3.0.pc \
|
||||||
gdk-x11-3.0.pc \
|
gdk-x11-3.0.pc \
|
||||||
gdk-win32-3.0.pc \
|
gdk-win32-3.0.pc \
|
||||||
gdk-quartz-3.0.pc \
|
gdk-quartz-3.0.pc \
|
||||||
gdk-broadway-3.0.pc \
|
gdk-broadway-3.0.pc \
|
||||||
gdk-wayland-3.0.pc \
|
gdk-wayland-3.0.pc \
|
||||||
gdk-mir-3.0.pc \
|
|
||||||
gail-3.0.pc \
|
gail-3.0.pc \
|
||||||
config.lt
|
config.lt
|
||||||
|
|
||||||
@@ -79,7 +75,7 @@ distclean-local:
|
|||||||
|
|
||||||
ChangeLog:
|
ChangeLog:
|
||||||
$(AM_V_GEN) if test -d "$(srcdir)/.git"; then \
|
$(AM_V_GEN) if test -d "$(srcdir)/.git"; then \
|
||||||
(GIT_DIR=$(top_srcdir)/.git $(top_builddir)/build-aux/missing git log GTK_2_16_0^^.. --stat) | fmt --split-only > $@.tmp \
|
(GIT_DIR=$(top_srcdir)/.git ./missing --run git log GTK_2_16_0^^.. --stat) | fmt --split-only > $@.tmp \
|
||||||
&& mv -f $@.tmp $@ \
|
&& mv -f $@.tmp $@ \
|
||||||
|| ($(RM) $@.tmp; \
|
|| ($(RM) $@.tmp; \
|
||||||
echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
|
echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
|
||||||
@@ -90,11 +86,19 @@ ChangeLog:
|
|||||||
echo A git checkout and git-log is required to generate this file >> $@); \
|
echo A git checkout and git-log is required to generate this file >> $@); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
.PHONY: ChangeLog
|
|
||||||
|
|
||||||
uninstall-local:
|
uninstall-local:
|
||||||
rm -f $(DESTDIR)$(pkgconfigdir)/gtk+-3.0.pc
|
rm -f $(DESTDIR)$(pkgconfigdir)/gtk+-3.0.pc
|
||||||
|
|
||||||
|
dist-hook:
|
||||||
|
if test -f $(srcdir)/INSTALL.in && test -f $(srcdir)/README.in ; then \
|
||||||
|
CONFIG_FILES="INSTALL:$(srcdir)/INSTALL.in README:$(srcdir)/README.in" \
|
||||||
|
CONFIG_HEADERS= \
|
||||||
|
$(SHELL) config.status \
|
||||||
|
&& cp INSTALL README $(distdir) ; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
.PHONY: ChangeLog
|
||||||
|
|
||||||
DISTCHECK_CONFIGURE_FLAGS = \
|
DISTCHECK_CONFIGURE_FLAGS = \
|
||||||
--enable-gtk-doc \
|
--enable-gtk-doc \
|
||||||
--disable-doc-cross-references \
|
--disable-doc-cross-references \
|
||||||
|
39
README.in
@@ -73,37 +73,6 @@ Patches should be in unified diff form. (The -up option to GNU diff)
|
|||||||
Even better are git-formatted patches. (Use git format-patch)
|
Even better are git-formatted patches. (Use git format-patch)
|
||||||
|
|
||||||
|
|
||||||
Release notes for 3.16
|
|
||||||
======================
|
|
||||||
|
|
||||||
* GTK+ now includes an OpenGL rendering widget. To support GL on various
|
|
||||||
platforms, GTK+ uses libepoxy.
|
|
||||||
|
|
||||||
* GTK+ no longer uses gtk-update-icon-cache during its build. The
|
|
||||||
--enable-gtk2-dependency configure option has been removed.
|
|
||||||
|
|
||||||
* The introspection annotations for the x and y parameters of
|
|
||||||
GtkMenuPositionFunc have been corrected from 'out' to 'inout'.
|
|
||||||
If you are using such a function from language-bindings, this
|
|
||||||
may require adjustments.
|
|
||||||
|
|
||||||
* The lookup order for actions that are activated via keyboard
|
|
||||||
accelerators has been changed to start at the currently focused
|
|
||||||
widget. If your application is making use fo nested action groups
|
|
||||||
via gtk_widget_insert_action_group, you may want to check that
|
|
||||||
this change does not upset your accelerators.
|
|
||||||
|
|
||||||
* The GtkScrollable interface has gained a new vfunc, get_border,
|
|
||||||
that is used to position overshoot and undershoot indications that
|
|
||||||
are drawn over the content by GtkScrolledWindow. Unless your scrollable
|
|
||||||
has non-scrolling parts similar to treeview headers, there is no need
|
|
||||||
to implement this vfunc.
|
|
||||||
|
|
||||||
* The GtkSearchEntry widget has gained a number of new signal that
|
|
||||||
are emitted when certain key sequences are seen. In particular, it
|
|
||||||
now handles the Escape key and emits ::stop-search. Applications that
|
|
||||||
expect to handle Escape themselves will need to be updated.
|
|
||||||
|
|
||||||
Release notes for 3.14
|
Release notes for 3.14
|
||||||
======================
|
======================
|
||||||
|
|
||||||
@@ -130,14 +99,6 @@ Release notes for 3.14
|
|||||||
to be problematic. This combination is using code paths in cairo and
|
to be problematic. This combination is using code paths in cairo and
|
||||||
graphics drivers which are rarely tested and likely buggy.
|
graphics drivers which are rarely tested and likely buggy.
|
||||||
|
|
||||||
* GtkTextView is now using a pixel-cache internally, and is drawing
|
|
||||||
a background underneath the text. This can cause problems for applications
|
|
||||||
which assumed that they could draw things below and above the text
|
|
||||||
by chaining up in the ::draw implementation of their GtkTextView subclass.
|
|
||||||
As a short-term workaround, you can make the application apply a
|
|
||||||
custom theme to the text view with a transparent background. For
|
|
||||||
a proper fix, use the new ::draw_layer vfunc.
|
|
||||||
|
|
||||||
Release notes for 3.12
|
Release notes for 3.12
|
||||||
======================
|
======================
|
||||||
|
|
||||||
|
@@ -9,29 +9,29 @@
|
|||||||
|
|
||||||
MSVC_FORMAT_VER=$(shell echo $$(expr $(MSVC_VER) + 1))
|
MSVC_FORMAT_VER=$(shell echo $$(expr $(MSVC_VER) + 1))
|
||||||
|
|
||||||
$(MSVC_SLN).sln: $(top_srcdir)/build/win32/vs10/$(MSVC_SLN).sln
|
$(MSVC_SLN).sln: $(top_srcdir)/build/win32/vs10/$(MSVC_SLN).sln create_vcxproj copy_filters create_props
|
||||||
cat $< | sed 's/11\.00/$(MSVC_FORMAT_VER)\.00/g' | sed 's/2010/$(MSVC_VER_LONG)/g' > $(top_builddir)/build/win32/vs$(MSVC_VER)/$@
|
cat $(top_srcdir)/build/win32/vs10/$(MSVC_SLN).sln | sed 's/11\.00/$(MSVC_FORMAT_VER)\.00/g' | sed 's/2010/$(MSVC_VER_LONG)/g' > $(top_builddir)/build/win32/vs$(MSVC_VER)/$(MSVC_SLN).sln
|
||||||
|
|
||||||
README.txt: $(top_srcdir)/build/win32/vs10/README.txt
|
README.txt: $(top_srcdir)/build/win32/vs10/README.txt
|
||||||
cat $< | sed 's/vs10/vs$(MSVC_VER)/g' | sed 's/VS10/VS$(MSVC_VER)/g' > $(top_builddir)/build/win32/vs$(MSVC_VER)/$@
|
cat $(top_srcdir)/build/win32/vs10/README.txt | sed 's/vs10/vs$(MSVC_VER)/g' | sed 's/VS10/VS$(MSVC_VER)/g' > $(top_builddir)/build/win32/vs$(MSVC_VER)/README.txt
|
||||||
|
|
||||||
%.vcxproj:
|
create_vcxproj:
|
||||||
if test -e $(top_srcdir)/build/win32/vs10/$@; then \
|
for F in `(cd $(top_builddir)/build/win32/vs10 && ls *.vcxproj)`; do \
|
||||||
sed 's/v100/v$(MSVC_VER)0/g' < $(top_srcdir)/build/win32/vs10/$@ > $(top_builddir)/build/win32/vs$(MSVC_VER)/$@; \
|
case $$F in \
|
||||||
else \
|
*) cat $(top_builddir)/build/win32/vs10/$$F | sed 's/v100/v$(MSVC_VER)0/g' > $(top_builddir)/build/win32/vs$(MSVC_VER)/$$F \
|
||||||
sed 's/v100/v$(MSVC_VER)0/g' < $(top_builddir)/build/win32/vs10/$@ > $(top_builddir)/build/win32/vs$(MSVC_VER)/$@; \
|
;; \
|
||||||
fi
|
esac; \
|
||||||
|
done
|
||||||
|
|
||||||
|
create_props:
|
||||||
|
for F in `(cd $(top_builddir)/build/win32/vs10 && ls *.props)`; do \
|
||||||
|
case $$F in \
|
||||||
|
*) cat $(top_builddir)/build/win32/vs10/$$F | sed 's/<VSVer>10<\/VSVer>/<VSVer>$(MSVC_VER)<\/VSVer>/g' > $(top_builddir)/build/win32/vs$(MSVC_VER)/$$F \
|
||||||
|
;; \
|
||||||
|
esac; \
|
||||||
|
done
|
||||||
|
|
||||||
|
copy_filters:
|
||||||
|
cp $(top_srcdir)/build/win32/vs10/*.vcxproj.filters $(top_builddir)/build/win32/vs$(MSVC_VER)/
|
||||||
|
|
||||||
%.props:
|
|
||||||
if test -e $(top_srcdir)/build/win32/vs10/$@; then \
|
|
||||||
sed 's/<VSVer>10<\/VSVer>/<VSVer>$(MSVC_VER)<\/VSVer>/g' < $(top_srcdir)/build/win32/vs10/$@ > $(top_builddir)/build/win32/vs$(MSVC_VER)/$@; \
|
|
||||||
else \
|
|
||||||
sed 's/<VSVer>10<\/VSVer>/<VSVer>$(MSVC_VER)<\/VSVer>/g' < $(top_builddir)/build/win32/vs10/$@ > $(top_builddir)/build/win32/vs$(MSVC_VER)/$@; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
%.vcxproj.filters:
|
|
||||||
if test -e $(top_srcdir)/build/win32/vs10/$@; then \
|
|
||||||
cp $(top_srcdir)/build/win32/vs10/$@ $(top_builddir)/build/win32/vs$(MSVC_VER)/$@; \
|
|
||||||
else \
|
|
||||||
cp $(top_builddir)/build/win32/vs10/$@ $(top_builddir)/build/win32/vs$(MSVC_VER)/$@; \
|
|
||||||
fi
|
|
||||||
|
@@ -54,26 +54,13 @@ def gen_gtk_filelist(srcroot, subdir, dest):
|
|||||||
'gtk_base_c_sources',
|
'gtk_base_c_sources',
|
||||||
'gtk_clipboard_dnd_c_sources'])
|
'gtk_clipboard_dnd_c_sources'])
|
||||||
|
|
||||||
vars_depr = read_vars_from_AM(os.path.join(srcroot, 'gtk', 'deprecated', 'Makefile.inc'),
|
|
||||||
vars = {},
|
|
||||||
conds = {},
|
|
||||||
filters = ['deprecated_h_sources',
|
|
||||||
'deprecated_c_sources'])
|
|
||||||
|
|
||||||
vars_a11y = read_vars_from_AM(os.path.join(srcroot, 'gtk', 'a11y', 'Makefile.inc'),
|
|
||||||
vars = {},
|
|
||||||
conds = {},
|
|
||||||
filters = ['a11y_h_sources',
|
|
||||||
'a11y_c_sources'])
|
|
||||||
|
|
||||||
vars['gtk_other_src'] = 'gtkprintoperation-win32.c gtktypebuiltins.h gtktypebuiltins.c'
|
vars['gtk_other_src'] = 'gtkprintoperation-win32.c gtktypebuiltins.h gtktypebuiltins.c'
|
||||||
|
|
||||||
files = vars['gtkinclude_HEADERS'].split() + \
|
files = vars['gtkinclude_HEADERS'].split() + \
|
||||||
vars_a11y['a11y_h_sources'].split() + \
|
vars['a11yinclude_HEADERS'].split() + \
|
||||||
vars_depr['deprecated_h_sources'].split() + \
|
vars['deprecatedinclude_HEADERS'].split() + \
|
||||||
vars['gtk_base_c_sources'].split() + \
|
vars['gtk_base_c_sources'].split() + \
|
||||||
vars_a11y['a11y_c_sources'].split() + \
|
vars['gtk_clipboard_dnd_c_sources'].split() + \
|
||||||
vars_depr['deprecated_c_sources'].split() + \
|
|
||||||
vars['gtk_other_src'].split()
|
vars['gtk_other_src'].split()
|
||||||
|
|
||||||
sources = [i for i in files \
|
sources = [i for i in files \
|
||||||
|
@@ -22,9 +22,13 @@ EXTRA_DIST += \
|
|||||||
gtk3-demo-application.vcxproj.filters \
|
gtk3-demo-application.vcxproj.filters \
|
||||||
gtk3-icon-browser.vcxproj \
|
gtk3-icon-browser.vcxproj \
|
||||||
gtk3-icon-browser.vcxproj.filters \
|
gtk3-icon-browser.vcxproj.filters \
|
||||||
|
gtk-inspector.vcxproj \
|
||||||
|
gtk-inspector.vcxprojin \
|
||||||
|
gtk-inspector.vcxproj.filters \
|
||||||
|
gtk-inspector.vcxproj.filtersin \
|
||||||
gailutil.vcxproj \
|
gailutil.vcxproj \
|
||||||
gailutil.vcxproj.filters \
|
gailutil.vcxproj.filters \
|
||||||
gtk-install.vcxproj \
|
install.vcxproj \
|
||||||
broadwayd.vcxproj \
|
broadwayd.vcxproj \
|
||||||
broadwayd.vcxproj.filters \
|
broadwayd.vcxproj.filters \
|
||||||
gdk-broadway.vcxproj \
|
gdk-broadway.vcxproj \
|
||||||
|
@@ -126,7 +126,6 @@
|
|||||||
<ClCompile Include="..\..\..\gdk\win32\gdkdnd-win32.c" />
|
<ClCompile Include="..\..\..\gdk\win32\gdkdnd-win32.c" />
|
||||||
<ClCompile Include="..\..\..\gdk\win32\gdkevents-win32.c" />
|
<ClCompile Include="..\..\..\gdk\win32\gdkevents-win32.c" />
|
||||||
<ClCompile Include="..\..\..\gdk\win32\gdkgeometry-win32.c" />
|
<ClCompile Include="..\..\..\gdk\win32\gdkgeometry-win32.c" />
|
||||||
<ClCompile Include="..\..\..\gdk\win32\gdkglcontext-win32.c" />
|
|
||||||
<ClCompile Include="..\..\..\gdk\win32\gdkglobals-win32.c" />
|
<ClCompile Include="..\..\..\gdk\win32\gdkglobals-win32.c" />
|
||||||
<ClCompile Include="..\..\..\gdk\win32\gdkinput.c" />
|
<ClCompile Include="..\..\..\gdk\win32\gdkinput.c" />
|
||||||
<ClCompile Include="..\..\..\gdk\win32\gdkkeys-win32.c" />
|
<ClCompile Include="..\..\..\gdk\win32\gdkkeys-win32.c" />
|
||||||
|
@@ -24,7 +24,6 @@
|
|||||||
<ClCompile Include="..\..\..\gdk\win32\gdkdnd-win32.c"><Filter>Source Files</Filter></ClCompile>
|
<ClCompile Include="..\..\..\gdk\win32\gdkdnd-win32.c"><Filter>Source Files</Filter></ClCompile>
|
||||||
<ClCompile Include="..\..\..\gdk\win32\gdkevents-win32.c"><Filter>Source Files</Filter></ClCompile>
|
<ClCompile Include="..\..\..\gdk\win32\gdkevents-win32.c"><Filter>Source Files</Filter></ClCompile>
|
||||||
<ClCompile Include="..\..\..\gdk\win32\gdkgeometry-win32.c"><Filter>Source Files</Filter></ClCompile>
|
<ClCompile Include="..\..\..\gdk\win32\gdkgeometry-win32.c"><Filter>Source Files</Filter></ClCompile>
|
||||||
<ClCompile Include="..\..\..\gdk\win32\gdkglcontext-win32.c"><Filter>Source Files</Filter></ClCompile>
|
|
||||||
<ClCompile Include="..\..\..\gdk\win32\gdkglobals-win32.c"><Filter>Source Files</Filter></ClCompile>
|
<ClCompile Include="..\..\..\gdk\win32\gdkglobals-win32.c"><Filter>Source Files</Filter></ClCompile>
|
||||||
<ClCompile Include="..\..\..\gdk\win32\gdkinput.c"><Filter>Source Files</Filter></ClCompile>
|
<ClCompile Include="..\..\..\gdk\win32\gdkinput.c"><Filter>Source Files</Filter></ClCompile>
|
||||||
<ClCompile Include="..\..\..\gdk\win32\gdkkeys-win32.c"><Filter>Source Files</Filter></ClCompile>
|
<ClCompile Include="..\..\..\gdk\win32\gdkkeys-win32.c"><Filter>Source Files</Filter></ClCompile>
|
||||||
|
@@ -144,7 +144,7 @@
|
|||||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>imm32.lib;winmm.lib;dwmapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>imm32.lib;winmm.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
<OutputFile>$(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll</OutputFile>
|
<OutputFile>$(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll</OutputFile>
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
<ProgramDatabaseFile>$(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).pdb</ProgramDatabaseFile>
|
<ProgramDatabaseFile>$(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).pdb</ProgramDatabaseFile>
|
||||||
@@ -167,7 +167,7 @@
|
|||||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>imm32.lib;winmm.lib;ws2_32.lib;dwmapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>imm32.lib;winmm.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
<OutputFile>$(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll</OutputFile>
|
<OutputFile>$(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll</OutputFile>
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
<ProgramDatabaseFile>$(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).pdb</ProgramDatabaseFile>
|
<ProgramDatabaseFile>$(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).pdb</ProgramDatabaseFile>
|
||||||
@@ -187,7 +187,7 @@
|
|||||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>imm32.lib;winmm.lib;dwmapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>imm32.lib;winmm.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
<OutputFile>$(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll</OutputFile>
|
<OutputFile>$(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll</OutputFile>
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
<ProgramDatabaseFile>$(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).pdb</ProgramDatabaseFile>
|
<ProgramDatabaseFile>$(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).pdb</ProgramDatabaseFile>
|
||||||
@@ -209,7 +209,7 @@
|
|||||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>imm32.lib;winmm.lib;ws2_32.lib;dwmapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>imm32.lib;winmm.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
<OutputFile>$(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll</OutputFile>
|
<OutputFile>$(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll</OutputFile>
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
<ProgramDatabaseFile>$(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).pdb</ProgramDatabaseFile>
|
<ProgramDatabaseFile>$(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).pdb</ProgramDatabaseFile>
|
||||||
@@ -234,7 +234,7 @@
|
|||||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>imm32.lib;winmm.lib;dwmapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>imm32.lib;winmm.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
<OutputFile>$(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll</OutputFile>
|
<OutputFile>$(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll</OutputFile>
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
<ProgramDatabaseFile>$(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).pdb</ProgramDatabaseFile>
|
<ProgramDatabaseFile>$(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).pdb</ProgramDatabaseFile>
|
||||||
@@ -257,7 +257,7 @@
|
|||||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>imm32.lib;winmm.lib;ws2_32.lib;dwmapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>imm32.lib;winmm.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
<OutputFile>$(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll</OutputFile>
|
<OutputFile>$(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll</OutputFile>
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
<ProgramDatabaseFile>$(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).pdb</ProgramDatabaseFile>
|
<ProgramDatabaseFile>$(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).pdb</ProgramDatabaseFile>
|
||||||
@@ -277,7 +277,7 @@
|
|||||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>imm32.lib;winmm.lib;dwmapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>imm32.lib;winmm.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
<OutputFile>$(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll</OutputFile>
|
<OutputFile>$(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll</OutputFile>
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
<ProgramDatabaseFile>$(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).pdb</ProgramDatabaseFile>
|
<ProgramDatabaseFile>$(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).pdb</ProgramDatabaseFile>
|
||||||
@@ -299,7 +299,7 @@
|
|||||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>imm32.lib;winmm.lib;ws2_32.lib;dwmapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>imm32.lib;winmm.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
<OutputFile>$(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll</OutputFile>
|
<OutputFile>$(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll</OutputFile>
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
<ProgramDatabaseFile>$(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).pdb</ProgramDatabaseFile>
|
<ProgramDatabaseFile>$(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).pdb</ProgramDatabaseFile>
|
||||||
|
@@ -10,6 +10,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "broadwayd", "broadwayd.vcxp
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gdk", "gdk.vcxproj", "{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gdk", "gdk.vcxproj", "{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gtk-inspector", "gtk-inspector.vcxproj", "{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}"
|
||||||
|
EndProject
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gtk", "gtk.vcxproj", "{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gtk", "gtk.vcxproj", "{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gtk3-demo", "gtk3-demo.vcxproj", "{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FC}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gtk3-demo", "gtk3-demo.vcxproj", "{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FC}"
|
||||||
@@ -22,7 +24,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gtk-encode-symbolic-svg", "
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gailutil", "gailutil.vcxproj", "{29E3E814-1BA3-4AD7-A3A7-3669CB80A942}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gailutil", "gailutil.vcxproj", "{29E3E814-1BA3-4AD7-A3A7-3669CB80A942}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gtk-install", "gtk-install.vcxproj", "{2093D218-190E-4194-9421-3BA7CBF33B15}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "install", "install.vcxproj", "{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
@@ -108,6 +110,22 @@ Global
|
|||||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7}.Release_Broadway|Win32.Build.0 = Release_Broadway|Win32
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7}.Release_Broadway|Win32.Build.0 = Release_Broadway|Win32
|
||||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7}.Release_Broadway|x64.ActiveCfg = Release_Broadway|x64
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7}.Release_Broadway|x64.ActiveCfg = Release_Broadway|x64
|
||||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7}.Release_Broadway|x64.Build.0 = Release_Broadway|x64
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7}.Release_Broadway|x64.Build.0 = Release_Broadway|x64
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}.Debug|x64.Build.0 = Debug|x64
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}.Release|x64.ActiveCfg = Release|x64
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}.Release|x64.Build.0 = Release|x64
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}.Debug_Broadway|Win32.ActiveCfg = Debug|Win32
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}.Debug_Broadway|Win32.Build.0 = Debug|Win32
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}.Debug_Broadway|x64.ActiveCfg = Debug|x64
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}.Debug_Broadway|x64.Build.0 = Debug|x64
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}.Release_Broadway|Win32.ActiveCfg = Release|Win32
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}.Release_Broadway|Win32.Build.0 = Release|Win32
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}.Release_Broadway|x64.ActiveCfg = Release|x64
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}.Release_Broadway|x64.Build.0 = Release|x64
|
||||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}.Debug|Win32.ActiveCfg = Debug|Win32
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}.Debug|Win32.Build.0 = Debug|Win32
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}.Debug|x64.ActiveCfg = Debug|x64
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
@@ -156,22 +174,22 @@ Global
|
|||||||
{29E3E814-1BA3-4AD7-A3A7-3669CB80A942}.Release_Broadway|Win32.Build.0 = Release|Win32
|
{29E3E814-1BA3-4AD7-A3A7-3669CB80A942}.Release_Broadway|Win32.Build.0 = Release|Win32
|
||||||
{29E3E814-1BA3-4AD7-A3A7-3669CB80A942}.Release_Broadway|x64.ActiveCfg = Release|x64
|
{29E3E814-1BA3-4AD7-A3A7-3669CB80A942}.Release_Broadway|x64.ActiveCfg = Release|x64
|
||||||
{29E3E814-1BA3-4AD7-A3A7-3669CB80A942}.Release_Broadway|x64.Build.0 = Release|x64
|
{29E3E814-1BA3-4AD7-A3A7-3669CB80A942}.Release_Broadway|x64.Build.0 = Release|x64
|
||||||
{2093D218-190E-4194-9421-3BA7CBF33B15}.Debug|Win32.ActiveCfg = Debug|Win32
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
{2093D218-190E-4194-9421-3BA7CBF33B15}.Debug|Win32.Build.0 = Debug|Win32
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
{2093D218-190E-4194-9421-3BA7CBF33B15}.Debug|x64.ActiveCfg = Debug|x64
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
{2093D218-190E-4194-9421-3BA7CBF33B15}.Debug|x64.Build.0 = Debug|x64
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Debug|x64.Build.0 = Debug|x64
|
||||||
{2093D218-190E-4194-9421-3BA7CBF33B15}.Release|Win32.ActiveCfg = Release|Win32
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
{2093D218-190E-4194-9421-3BA7CBF33B15}.Release|Win32.Build.0 = Release|Win32
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Release|Win32.Build.0 = Release|Win32
|
||||||
{2093D218-190E-4194-9421-3BA7CBF33B15}.Release|x64.ActiveCfg = Release|x64
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Release|x64.ActiveCfg = Release|x64
|
||||||
{2093D218-190E-4194-9421-3BA7CBF33B15}.Release|x64.Build.0 = Release|x64
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Release|x64.Build.0 = Release|x64
|
||||||
{2093D218-190E-4194-9421-3BA7CBF33B15}.Debug_Broadway|Win32.ActiveCfg = Debug_Broadway|Win32
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Debug_Broadway|Win32.ActiveCfg = Debug_Broadway|Win32
|
||||||
{2093D218-190E-4194-9421-3BA7CBF33B15}.Debug_Broadway|Win32.Build.0 = Debug_Broadway|Win32
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Debug_Broadway|Win32.Build.0 = Debug_Broadway|Win32
|
||||||
{2093D218-190E-4194-9421-3BA7CBF33B15}.Debug_Broadway|x64.ActiveCfg = Debug_Broadway|x64
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Debug_Broadway|x64.ActiveCfg = Debug_Broadway|x64
|
||||||
{2093D218-190E-4194-9421-3BA7CBF33B15}.Debug_Broadway|x64.Build.0 = Debug_Broadway|x64
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Debug_Broadway|x64.Build.0 = Debug_Broadway|x64
|
||||||
{2093D218-190E-4194-9421-3BA7CBF33B15}.Release_Broadway|Win32.ActiveCfg = Release_Broadway|Win32
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Release_Broadway|Win32.ActiveCfg = Release_Broadway|Win32
|
||||||
{2093D218-190E-4194-9421-3BA7CBF33B15}.Release_Broadway|Win32.Build.0 = Release_Broadway|Win32
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Release_Broadway|Win32.Build.0 = Release_Broadway|Win32
|
||||||
{2093D218-190E-4194-9421-3BA7CBF33B15}.Release_Broadway|x64.ActiveCfg = Release_Broadway|x64
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Release_Broadway|x64.ActiveCfg = Release_Broadway|x64
|
||||||
{2093D218-190E-4194-9421-3BA7CBF33B15}.Release_Broadway|x64.Build.0 = Release_Broadway|x64
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Release_Broadway|x64.Build.0 = Release_Broadway|x64
|
||||||
{3281202A-CD26-4C67-B892-EB34BDBC612F}.Debug|Win32.ActiveCfg = Debug|Win32
|
{3281202A-CD26-4C67-B892-EB34BDBC612F}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
{3281202A-CD26-4C67-B892-EB34BDBC612F}.Debug|Win32.Build.0 = Debug|Win32
|
{3281202A-CD26-4C67-B892-EB34BDBC612F}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
{3281202A-CD26-4C67-B892-EB34BDBC612F}.Debug|x64.ActiveCfg = Debug|x64
|
{3281202A-CD26-4C67-B892-EB34BDBC612F}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
<GtkPrefixDefine>GTK_PREFIX=\"$(GtkDummyPrefix)\"</GtkPrefixDefine>
|
<GtkPrefixDefine>GTK_PREFIX=\"$(GtkDummyPrefix)\"</GtkPrefixDefine>
|
||||||
<GdkDefines>GDK_COMPILATION;G_LOG_DOMAIN="Gdk"</GdkDefines>
|
<GdkDefines>GDK_COMPILATION;G_LOG_DOMAIN="Gdk"</GdkDefines>
|
||||||
<GtkIncludedImmodulesDefines>INCLUDE_IM_am_et;INCLUDE_IM_cedilla;INCLUDE_IM_cyrillic_translit;INCLUDE_IM_ime;INCLUDE_IM_inuktitut;INCLUDE_IM_ipa;INCLUDE_IM_multipress;INCLUDE_IM_thai;INCLUDE_IM_ti_er;INCLUDE_IM_ti_et;INCLUDE_IM_viqr</GtkIncludedImmodulesDefines>
|
<GtkIncludedImmodulesDefines>INCLUDE_IM_am_et;INCLUDE_IM_cedilla;INCLUDE_IM_cyrillic_translit;INCLUDE_IM_ime;INCLUDE_IM_inuktitut;INCLUDE_IM_ipa;INCLUDE_IM_multipress;INCLUDE_IM_thai;INCLUDE_IM_ti_er;INCLUDE_IM_ti_et;INCLUDE_IM_viqr</GtkIncludedImmodulesDefines>
|
||||||
<GtkDefines>GTK_COMPILATION;G_LOG_DOMAIN="Gtk";GTK_HOST="i686-pc-vs$(VSVer)";GTK_PRINT_BACKENDS="file";GTK_PRINT_BACKEND_ENABLE_UNSUPPORTED;$(GtkIncludedImmodulesDefines);GTK_LIBDIR="$(GtkDummyPrefix)/lib";GTK_DATADIR="$(GtkDummyPrefix)/share";GTK_DATA_PREFIX="$(GtkDummyPrefix)";GTK_SYSCONFDIR="$(GtkDummyPrefix)/etc";MULTIPRESS_CONFDIR="$(GtkDummyPrefix)/etc/gtk-$(ApiVersion)";MULTIPRESS_LOCALEDIR="$(GtkDummyPrefix)/share/locale";GTK_VERSION="$(GtkVersion)/etc";GTK_BINARY_VERSION="$(GtkBinaryVersion)/etc";GDK_DISABLE_DEPRECATED;ISOLATION_AWARE_ENABLED</GtkDefines>
|
<GtkDefines>GTK_COMPILATION;G_LOG_DOMAIN="Gtk";GTK_HOST="i686-pc-vs$(VSVer)";GTK_PRINT_BACKENDS="file";GTK_PRINT_PREVIEW_COMMAND="undefined-gtk-print-preview-command";$(GtkIncludedImmodulesDefines);GTK_LIBDIR="$(GtkDummyPrefix)/lib";GTK_DATADIR="$(GtkDummyPrefix)/share";GTK_DATA_PREFIX="$(GtkDummyPrefix)";GTK_SYSCONFDIR="$(GtkDummyPrefix)/etc";MULTIPRESS_CONFDIR="$(GtkDummyPrefix)/etc/gtk-$(ApiVersion)";MULTIPRESS_LOCALEDIR="$(GtkDummyPrefix)/share/locale";GTK_VERSION="$(GtkVersion)/etc";GTK_BINARY_VERSION="$(GtkBinaryVersion)/etc";GDK_DISABLE_DEPRECATED;ISOLATION_AWARE_ENABLED</GtkDefines>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<_PropertySheetDisplayName>gtkbuilddefinesprops</_PropertySheetDisplayName>
|
<_PropertySheetDisplayName>gtkbuilddefinesprops</_PropertySheetDisplayName>
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
<AdditionalOptions>/d2Zi+ %(AdditionalOptions)</AdditionalOptions>
|
<AdditionalOptions>/d2Zi+ %(AdditionalOptions)</AdditionalOptions>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>pangocairo-1.0.lib;cairo.lib;cairo-gobject.lib;pango-1.0.lib;gdk_pixbuf-2.0.lib;gio-2.0.lib;gmodule-2.0.lib;gobject-2.0.lib;glib-2.0.lib;intl.lib;epoxy.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>pangocairo-1.0.lib;cairo.lib;cairo-gobject.lib;pango-1.0.lib;gdk_pixbuf-2.0.lib;gio-2.0.lib;gmodule-2.0.lib;gobject-2.0.lib;glib-2.0.lib;intl.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
<AdditionalLibraryDirectories>$(GlibEtcInstallRoot)\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
<AdditionalLibraryDirectories>$(GlibEtcInstallRoot)\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
|
@@ -65,7 +65,6 @@ $(PythonPath)\python $(GlibEtcInstallRoot)\bin\gdbus-codegen --interface-prefix
|
|||||||
cd $(SolutionDir)
|
cd $(SolutionDir)
|
||||||
</GenerateGtkDbusBuiltSources>
|
</GenerateGtkDbusBuiltSources>
|
||||||
<GenerateGtkWin32RC>$(PythonPath)\python ..\process-in-win32.py --gtkwin32rc --gtk3manifest</GenerateGtkWin32RC>
|
<GenerateGtkWin32RC>$(PythonPath)\python ..\process-in-win32.py --gtkwin32rc --gtk3manifest</GenerateGtkWin32RC>
|
||||||
<CopyDemosH>copy ..\..\..\demos\gtk-demo\demos.h.win32 ..\..\..\demos\gtk-demo\demos.h</CopyDemosH>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<_PropertySheetDisplayName>gtkgensrcsprops</_PropertySheetDisplayName>
|
<_PropertySheetDisplayName>gtkgensrcsprops</_PropertySheetDisplayName>
|
||||||
@@ -86,8 +85,5 @@ cd $(SolutionDir)
|
|||||||
<BuildMacro Include="GenerateGtkWin32RC">
|
<BuildMacro Include="GenerateGtkWin32RC">
|
||||||
<Value>$(GenerateGtkWin32RC)</Value>
|
<Value>$(GenerateGtkWin32RC)</Value>
|
||||||
</BuildMacro>
|
</BuildMacro>
|
||||||
<BuildMacro Include="CopyDemosH">
|
|
||||||
<Value>$(CopyDemosH)</Value>
|
|
||||||
</BuildMacro>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
20
build/win32/vs10/gtk-inspector.vcxproj.filtersin
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="Header Files">
|
||||||
|
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||||
|
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Resource Files">
|
||||||
|
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||||
|
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Source Files">
|
||||||
|
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||||
|
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
#include "libgtk-inspector.vs10.sourcefiles.filters"
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
131
build/win32/vs10/gtk-inspector.vcxprojin
Normal file
@@ -0,0 +1,131 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Debug|Win32">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug|x64">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|Win32">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|x64">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<ProjectGuid>{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}</ProjectGuid>
|
||||||
|
<RootNamespace>gtkinspector</RootNamespace>
|
||||||
|
<Keyword>Win32Proj</Keyword>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<PlatformToolset>v100</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v100</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<PlatformToolset>v100</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v100</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="gtk-build-defines.props" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="gtk-build-defines.props" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="gtk-build-defines.props" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="gtk-build-defines.props" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<AdditionalIncludeDirectories>..\..\..\gtk;..\..\..\gdk;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<PreprocessorDefinitions>_DEBUG;G_ENABLE_DEBUG;$(GtkDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<MinimalRebuild>true</MinimalRebuild>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<PrecompiledHeader>
|
||||||
|
</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>..\..\..\gtk;..\..\..\gdk;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<PreprocessorDefinitions>$(GtkDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||||
|
<PrecompiledHeader>
|
||||||
|
</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<AdditionalIncludeDirectories>..\..\..\gtk;..\..\..\gdk;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<PreprocessorDefinitions>_DEBUG;G_ENABLE_DEBUG;$(GtkDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<MinimalRebuild>true</MinimalRebuild>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<PrecompiledHeader>
|
||||||
|
</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>..\..\..\gtk;..\..\..\gdk;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<PreprocessorDefinitions>$(GtkDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||||
|
<PrecompiledHeader>
|
||||||
|
</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
#include "libgtk-inspector.vs10.sourcefiles"
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="gtk-prebuild.vcxproj">
|
||||||
|
<Project>{fc5aadb5-95cd-4bf0-ba8b-0c16fe7073ff}</Project>
|
||||||
|
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
||||||
|
</ProjectReference>
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
@@ -86,7 +86,6 @@ mkdir $(CopyDir)\include\gtk-$(ApiVersion)\gtk\a11y
|
|||||||
mkdir $(CopyDir)\include\gtk-$(ApiVersion)\gtk\deprecated
|
mkdir $(CopyDir)\include\gtk-$(ApiVersion)\gtk\deprecated
|
||||||
copy ..\..\..\gdk\win32\gdkwin32.h $(CopyDir)\include\gtk-$(ApiVersion)\gdk
|
copy ..\..\..\gdk\win32\gdkwin32.h $(CopyDir)\include\gtk-$(ApiVersion)\gdk
|
||||||
copy ..\..\..\gdk\gdk.h $(CopyDir)\include\gtk-3.0\gdk\gdk.h
|
copy ..\..\..\gdk\gdk.h $(CopyDir)\include\gtk-3.0\gdk\gdk.h
|
||||||
copy ..\..\..\gdk\gdk-autocleanup.h $(CopyDir)\include\gtk-3.0\gdk\gdk-autocleanup.h
|
|
||||||
copy ..\..\..\gdk\gdkapplaunchcontext.h $(CopyDir)\include\gtk-3.0\gdk\gdkapplaunchcontext.h
|
copy ..\..\..\gdk\gdkapplaunchcontext.h $(CopyDir)\include\gtk-3.0\gdk\gdkapplaunchcontext.h
|
||||||
copy ..\..\..\gdk\gdkcairo.h $(CopyDir)\include\gtk-3.0\gdk\gdkcairo.h
|
copy ..\..\..\gdk\gdkcairo.h $(CopyDir)\include\gtk-3.0\gdk\gdkcairo.h
|
||||||
copy ..\..\..\gdk\gdkcursor.h $(CopyDir)\include\gtk-3.0\gdk\gdkcursor.h
|
copy ..\..\..\gdk\gdkcursor.h $(CopyDir)\include\gtk-3.0\gdk\gdkcursor.h
|
||||||
@@ -97,7 +96,6 @@ copy ..\..\..\gdk\gdkdisplaymanager.h $(CopyDir)\include\gtk-3.0\gdk\gdkdisplaym
|
|||||||
copy ..\..\..\gdk\gdkdnd.h $(CopyDir)\include\gtk-3.0\gdk\gdkdnd.h
|
copy ..\..\..\gdk\gdkdnd.h $(CopyDir)\include\gtk-3.0\gdk\gdkdnd.h
|
||||||
copy ..\..\..\gdk\gdkevents.h $(CopyDir)\include\gtk-3.0\gdk\gdkevents.h
|
copy ..\..\..\gdk\gdkevents.h $(CopyDir)\include\gtk-3.0\gdk\gdkevents.h
|
||||||
copy ..\..\..\gdk\gdkframetimings.h $(CopyDir)\include\gtk-3.0\gdk\gdkframetimings.h
|
copy ..\..\..\gdk\gdkframetimings.h $(CopyDir)\include\gtk-3.0\gdk\gdkframetimings.h
|
||||||
copy ..\..\..\gdk\gdkglcontext.h $(CopyDir)\include\gtk-3.0\gdk\gdkglcontext.h
|
|
||||||
copy ..\..\..\gdk\gdkkeys.h $(CopyDir)\include\gtk-3.0\gdk\gdkkeys.h
|
copy ..\..\..\gdk\gdkkeys.h $(CopyDir)\include\gtk-3.0\gdk\gdkkeys.h
|
||||||
copy ..\..\..\gdk\gdkkeysyms.h $(CopyDir)\include\gtk-3.0\gdk\gdkkeysyms.h
|
copy ..\..\..\gdk\gdkkeysyms.h $(CopyDir)\include\gtk-3.0\gdk\gdkkeysyms.h
|
||||||
copy ..\..\..\gdk\gdkkeysyms-compat.h $(CopyDir)\include\gtk-3.0\gdk\gdkkeysyms-compat.h
|
copy ..\..\..\gdk\gdkkeysyms-compat.h $(CopyDir)\include\gtk-3.0\gdk\gdkkeysyms-compat.h
|
||||||
@@ -124,15 +122,12 @@ copy ..\..\..\gdk\win32\gdkwin32cursor.h $(CopyDir)\include\gtk-3.0\gdk\win32\gd
|
|||||||
copy ..\..\..\gdk\win32\gdkwin32display.h $(CopyDir)\include\gtk-3.0\gdk\win32\gdkwin32display.h
|
copy ..\..\..\gdk\win32\gdkwin32display.h $(CopyDir)\include\gtk-3.0\gdk\win32\gdkwin32display.h
|
||||||
copy ..\..\..\gdk\win32\gdkwin32displaymanager.h $(CopyDir)\include\gtk-3.0\gdk\win32\gdkwin32displaymanager.h
|
copy ..\..\..\gdk\win32\gdkwin32displaymanager.h $(CopyDir)\include\gtk-3.0\gdk\win32\gdkwin32displaymanager.h
|
||||||
copy ..\..\..\gdk\win32\gdkwin32dnd.h $(CopyDir)\include\gtk-3.0\gdk\win32\gdkwin32dnd.h
|
copy ..\..\..\gdk\win32\gdkwin32dnd.h $(CopyDir)\include\gtk-3.0\gdk\win32\gdkwin32dnd.h
|
||||||
copy ..\..\..\gdk\win32\gdkwin32glcontext.h $(CopyDir)\include\gtk-3.0\gdk\win32\gdkwin32glcontext.h
|
|
||||||
copy ..\..\..\gdk\win32\gdkwin32keys.h $(CopyDir)\include\gtk-3.0\gdk\win32\gdkwin32keys.h
|
copy ..\..\..\gdk\win32\gdkwin32keys.h $(CopyDir)\include\gtk-3.0\gdk\win32\gdkwin32keys.h
|
||||||
copy ..\..\..\gdk\win32\gdkwin32misc.h $(CopyDir)\include\gtk-3.0\gdk\win32\gdkwin32misc.h
|
copy ..\..\..\gdk\win32\gdkwin32misc.h $(CopyDir)\include\gtk-3.0\gdk\win32\gdkwin32misc.h
|
||||||
copy ..\..\..\gdk\win32\gdkwin32screen.h $(CopyDir)\include\gtk-3.0\gdk\win32\gdkwin32screen.h
|
copy ..\..\..\gdk\win32\gdkwin32screen.h $(CopyDir)\include\gtk-3.0\gdk\win32\gdkwin32screen.h
|
||||||
copy ..\..\..\gdk\win32\gdkwin32window.h $(CopyDir)\include\gtk-3.0\gdk\win32\gdkwin32window.h
|
copy ..\..\..\gdk\win32\gdkwin32window.h $(CopyDir)\include\gtk-3.0\gdk\win32\gdkwin32window.h
|
||||||
copy ..\..\..\gtk\gtk.h $(CopyDir)\include\gtk-3.0\gtk\gtk.h
|
copy ..\..\..\gtk\gtk.h $(CopyDir)\include\gtk-3.0\gtk\gtk.h
|
||||||
copy ..\..\..\gtk\gtk-autocleanups.h $(CopyDir)\include\gtk-3.0\gtk\gtk-autocleanups.h
|
|
||||||
copy ..\..\..\gtk\gtkx.h $(CopyDir)\include\gtk-3.0\gtk\gtkx.h
|
copy ..\..\..\gtk\gtkx.h $(CopyDir)\include\gtk-3.0\gtk\gtkx.h
|
||||||
copy ..\..\..\gtk\gtkx-autocleanups.h $(CopyDir)\include\gtk-3.0\gtk\gtkx-autocleanups.h
|
|
||||||
copy ..\..\..\gtk\gtk-a11y.h $(CopyDir)\include\gtk-3.0\gtk\gtk-a11y.h
|
copy ..\..\..\gtk\gtk-a11y.h $(CopyDir)\include\gtk-3.0\gtk\gtk-a11y.h
|
||||||
copy ..\..\..\gtk\gtkaboutdialog.h $(CopyDir)\include\gtk-3.0\gtk\gtkaboutdialog.h
|
copy ..\..\..\gtk\gtkaboutdialog.h $(CopyDir)\include\gtk-3.0\gtk\gtkaboutdialog.h
|
||||||
copy ..\..\..\gtk\gtkaccelgroup.h $(CopyDir)\include\gtk-3.0\gtk\gtkaccelgroup.h
|
copy ..\..\..\gtk\gtkaccelgroup.h $(CopyDir)\include\gtk-3.0\gtk\gtkaccelgroup.h
|
||||||
@@ -220,7 +215,6 @@ copy ..\..\..\gtk\gtkgesturerotate.h $(CopyDir)\include\gtk-3.0\gtk\gtkgesturero
|
|||||||
copy ..\..\..\gtk\gtkgesturesingle.h $(CopyDir)\include\gtk-3.0\gtk\gtkgesturesingle.h
|
copy ..\..\..\gtk\gtkgesturesingle.h $(CopyDir)\include\gtk-3.0\gtk\gtkgesturesingle.h
|
||||||
copy ..\..\..\gtk\gtkgestureswipe.h $(CopyDir)\include\gtk-3.0\gtk\gtkgestureswipe.h
|
copy ..\..\..\gtk\gtkgestureswipe.h $(CopyDir)\include\gtk-3.0\gtk\gtkgestureswipe.h
|
||||||
copy ..\..\..\gtk\gtkgesturezoom.h $(CopyDir)\include\gtk-3.0\gtk\gtkgesturezoom.h
|
copy ..\..\..\gtk\gtkgesturezoom.h $(CopyDir)\include\gtk-3.0\gtk\gtkgesturezoom.h
|
||||||
copy ..\..\..\gtk\gtkglarea.h $(CopyDir)\include\gtk-3.0\gtk\gtkglarea.h
|
|
||||||
copy ..\..\..\gtk\gtkgrid.h $(CopyDir)\include\gtk-3.0\gtk\gtkgrid.h
|
copy ..\..\..\gtk\gtkgrid.h $(CopyDir)\include\gtk-3.0\gtk\gtkgrid.h
|
||||||
copy ..\..\..\gtk\gtkheaderbar.h $(CopyDir)\include\gtk-3.0\gtk\gtkheaderbar.h
|
copy ..\..\..\gtk\gtkheaderbar.h $(CopyDir)\include\gtk-3.0\gtk\gtkheaderbar.h
|
||||||
copy ..\..\..\gtk\gtkicontheme.h $(CopyDir)\include\gtk-3.0\gtk\gtkicontheme.h
|
copy ..\..\..\gtk\gtkicontheme.h $(CopyDir)\include\gtk-3.0\gtk\gtkicontheme.h
|
||||||
@@ -248,7 +242,6 @@ copy ..\..\..\gtk\gtkmenuitem.h $(CopyDir)\include\gtk-3.0\gtk\gtkmenuitem.h
|
|||||||
copy ..\..\..\gtk\gtkmenushell.h $(CopyDir)\include\gtk-3.0\gtk\gtkmenushell.h
|
copy ..\..\..\gtk\gtkmenushell.h $(CopyDir)\include\gtk-3.0\gtk\gtkmenushell.h
|
||||||
copy ..\..\..\gtk\gtkmenutoolbutton.h $(CopyDir)\include\gtk-3.0\gtk\gtkmenutoolbutton.h
|
copy ..\..\..\gtk\gtkmenutoolbutton.h $(CopyDir)\include\gtk-3.0\gtk\gtkmenutoolbutton.h
|
||||||
copy ..\..\..\gtk\gtkmessagedialog.h $(CopyDir)\include\gtk-3.0\gtk\gtkmessagedialog.h
|
copy ..\..\..\gtk\gtkmessagedialog.h $(CopyDir)\include\gtk-3.0\gtk\gtkmessagedialog.h
|
||||||
copy ..\..\..\gtk\gtkmodelbutton.h $(CopyDir)\include\gtk-3.0\gtk\gtkmodelbutton.h
|
|
||||||
copy ..\..\..\gtk\gtkmodules.h $(CopyDir)\include\gtk-3.0\gtk\gtkmodules.h
|
copy ..\..\..\gtk\gtkmodules.h $(CopyDir)\include\gtk-3.0\gtk\gtkmodules.h
|
||||||
copy ..\..\..\gtk\gtkmountoperation.h $(CopyDir)\include\gtk-3.0\gtk\gtkmountoperation.h
|
copy ..\..\..\gtk\gtkmountoperation.h $(CopyDir)\include\gtk-3.0\gtk\gtkmountoperation.h
|
||||||
copy ..\..\..\gtk\gtknotebook.h $(CopyDir)\include\gtk-3.0\gtk\gtknotebook.h
|
copy ..\..\..\gtk\gtknotebook.h $(CopyDir)\include\gtk-3.0\gtk\gtknotebook.h
|
||||||
@@ -261,7 +254,6 @@ copy ..\..\..\gtk\gtkpapersize.h $(CopyDir)\include\gtk-3.0\gtk\gtkpapersize.h
|
|||||||
copy ..\..\..\gtk\gtkplacessidebar.h $(CopyDir)\include\gtk-3.0\gtk\gtkplacessidebar.h
|
copy ..\..\..\gtk\gtkplacessidebar.h $(CopyDir)\include\gtk-3.0\gtk\gtkplacessidebar.h
|
||||||
copy ..\..\..\gtk\gtkplug.h $(CopyDir)\include\gtk-3.0\gtk\gtkplug.h
|
copy ..\..\..\gtk\gtkplug.h $(CopyDir)\include\gtk-3.0\gtk\gtkplug.h
|
||||||
copy ..\..\..\gtk\gtkpopover.h $(CopyDir)\include\gtk-3.0\gtk\gtkpopover.h
|
copy ..\..\..\gtk\gtkpopover.h $(CopyDir)\include\gtk-3.0\gtk\gtkpopover.h
|
||||||
copy ..\..\..\gtk\gtkpopovermenu.h $(CopyDir)\include\gtk-3.0\gtk\gtkpopovermenu.h
|
|
||||||
copy ..\..\..\gtk\gtkprintcontext.h $(CopyDir)\include\gtk-3.0\gtk\gtkprintcontext.h
|
copy ..\..\..\gtk\gtkprintcontext.h $(CopyDir)\include\gtk-3.0\gtk\gtkprintcontext.h
|
||||||
copy ..\..\..\gtk\gtkprintoperation.h $(CopyDir)\include\gtk-3.0\gtk\gtkprintoperation.h
|
copy ..\..\..\gtk\gtkprintoperation.h $(CopyDir)\include\gtk-3.0\gtk\gtkprintoperation.h
|
||||||
copy ..\..\..\gtk\gtkprintoperationpreview.h $(CopyDir)\include\gtk-3.0\gtk\gtkprintoperationpreview.h
|
copy ..\..\..\gtk\gtkprintoperationpreview.h $(CopyDir)\include\gtk-3.0\gtk\gtkprintoperationpreview.h
|
||||||
@@ -277,7 +269,6 @@ copy ..\..\..\gtk\gtkrecentchoosermenu.h $(CopyDir)\include\gtk-3.0\gtk\gtkrecen
|
|||||||
copy ..\..\..\gtk\gtkrecentchooserwidget.h $(CopyDir)\include\gtk-3.0\gtk\gtkrecentchooserwidget.h
|
copy ..\..\..\gtk\gtkrecentchooserwidget.h $(CopyDir)\include\gtk-3.0\gtk\gtkrecentchooserwidget.h
|
||||||
copy ..\..\..\gtk\gtkrecentfilter.h $(CopyDir)\include\gtk-3.0\gtk\gtkrecentfilter.h
|
copy ..\..\..\gtk\gtkrecentfilter.h $(CopyDir)\include\gtk-3.0\gtk\gtkrecentfilter.h
|
||||||
copy ..\..\..\gtk\gtkrecentmanager.h $(CopyDir)\include\gtk-3.0\gtk\gtkrecentmanager.h
|
copy ..\..\..\gtk\gtkrecentmanager.h $(CopyDir)\include\gtk-3.0\gtk\gtkrecentmanager.h
|
||||||
copy ..\..\..\gtk\gtkrender.h $(CopyDir)\include\gtk-3.0\gtk\gtkrender.h
|
|
||||||
copy ..\..\..\gtk\gtkrevealer.h $(CopyDir)\include\gtk-3.0\gtk\gtkrevealer.h
|
copy ..\..\..\gtk\gtkrevealer.h $(CopyDir)\include\gtk-3.0\gtk\gtkrevealer.h
|
||||||
copy ..\..\..\gtk\gtkscale.h $(CopyDir)\include\gtk-3.0\gtk\gtkscale.h
|
copy ..\..\..\gtk\gtkscale.h $(CopyDir)\include\gtk-3.0\gtk\gtkscale.h
|
||||||
copy ..\..\..\gtk\gtkscalebutton.h $(CopyDir)\include\gtk-3.0\gtk\gtkscalebutton.h
|
copy ..\..\..\gtk\gtkscalebutton.h $(CopyDir)\include\gtk-3.0\gtk\gtkscalebutton.h
|
||||||
@@ -292,7 +283,6 @@ copy ..\..\..\gtk\gtkseparatormenuitem.h $(CopyDir)\include\gtk-3.0\gtk\gtksepar
|
|||||||
copy ..\..\..\gtk\gtkseparatortoolitem.h $(CopyDir)\include\gtk-3.0\gtk\gtkseparatortoolitem.h
|
copy ..\..\..\gtk\gtkseparatortoolitem.h $(CopyDir)\include\gtk-3.0\gtk\gtkseparatortoolitem.h
|
||||||
copy ..\..\..\gtk\gtksettings.h $(CopyDir)\include\gtk-3.0\gtk\gtksettings.h
|
copy ..\..\..\gtk\gtksettings.h $(CopyDir)\include\gtk-3.0\gtk\gtksettings.h
|
||||||
copy ..\..\..\gtk\gtkshow.h $(CopyDir)\include\gtk-3.0\gtk\gtkshow.h
|
copy ..\..\..\gtk\gtkshow.h $(CopyDir)\include\gtk-3.0\gtk\gtkshow.h
|
||||||
copy ..\..\..\gtk\gtkstacksidebar.h $(CopyDir)\include\gtk-3.0\gtk\gtkstacksidebar.h
|
|
||||||
copy ..\..\..\gtk\gtksizegroup.h $(CopyDir)\include\gtk-3.0\gtk\gtksizegroup.h
|
copy ..\..\..\gtk\gtksizegroup.h $(CopyDir)\include\gtk-3.0\gtk\gtksizegroup.h
|
||||||
copy ..\..\..\gtk\gtksizerequest.h $(CopyDir)\include\gtk-3.0\gtk\gtksizerequest.h
|
copy ..\..\..\gtk\gtksizerequest.h $(CopyDir)\include\gtk-3.0\gtk\gtksizerequest.h
|
||||||
copy ..\..\..\gtk\gtksocket.h $(CopyDir)\include\gtk-3.0\gtk\gtksocket.h
|
copy ..\..\..\gtk\gtksocket.h $(CopyDir)\include\gtk-3.0\gtk\gtksocket.h
|
||||||
@@ -302,6 +292,7 @@ copy ..\..\..\gtk\gtkstack.h $(CopyDir)\include\gtk-3.0\gtk\gtkstack.h
|
|||||||
copy ..\..\..\gtk\gtkstackswitcher.h $(CopyDir)\include\gtk-3.0\gtk\gtkstackswitcher.h
|
copy ..\..\..\gtk\gtkstackswitcher.h $(CopyDir)\include\gtk-3.0\gtk\gtkstackswitcher.h
|
||||||
copy ..\..\..\gtk\gtkstatusbar.h $(CopyDir)\include\gtk-3.0\gtk\gtkstatusbar.h
|
copy ..\..\..\gtk\gtkstatusbar.h $(CopyDir)\include\gtk-3.0\gtk\gtkstatusbar.h
|
||||||
copy ..\..\..\gtk\gtkstylecontext.h $(CopyDir)\include\gtk-3.0\gtk\gtkstylecontext.h
|
copy ..\..\..\gtk\gtkstylecontext.h $(CopyDir)\include\gtk-3.0\gtk\gtkstylecontext.h
|
||||||
|
copy ..\..\..\gtk\gtkstyleproperties.h $(CopyDir)\include\gtk-3.0\gtk\gtkstyleproperties.h
|
||||||
copy ..\..\..\gtk\gtkstyleprovider.h $(CopyDir)\include\gtk-3.0\gtk\gtkstyleprovider.h
|
copy ..\..\..\gtk\gtkstyleprovider.h $(CopyDir)\include\gtk-3.0\gtk\gtkstyleprovider.h
|
||||||
copy ..\..\..\gtk\gtkswitch.h $(CopyDir)\include\gtk-3.0\gtk\gtkswitch.h
|
copy ..\..\..\gtk\gtkswitch.h $(CopyDir)\include\gtk-3.0\gtk\gtkswitch.h
|
||||||
copy ..\..\..\gtk\gtktestutils.h $(CopyDir)\include\gtk-3.0\gtk\gtktestutils.h
|
copy ..\..\..\gtk\gtktestutils.h $(CopyDir)\include\gtk-3.0\gtk\gtktestutils.h
|
||||||
@@ -343,7 +334,6 @@ copy ..\..\..\gtk\gtkwindowgroup.h $(CopyDir)\include\gtk-3.0\gtk\gtkwindowgroup
|
|||||||
copy ..\..\..\gtk\gtktextlayout.h $(CopyDir)\include\gtk-3.0\gtk\gtktextlayout.h
|
copy ..\..\..\gtk\gtktextlayout.h $(CopyDir)\include\gtk-3.0\gtk\gtktextlayout.h
|
||||||
copy ..\..\..\gtk\gtktypebuiltins.h $(CopyDir)\include\gtk-3.0\gtk\gtktypebuiltins.h
|
copy ..\..\..\gtk\gtktypebuiltins.h $(CopyDir)\include\gtk-3.0\gtk\gtktypebuiltins.h
|
||||||
copy ..\..\..\gtk\gtkversion.h $(CopyDir)\include\gtk-3.0\gtk\gtkversion.h
|
copy ..\..\..\gtk\gtkversion.h $(CopyDir)\include\gtk-3.0\gtk\gtkversion.h
|
||||||
copy ..\..\..\gtk\a11y\gtk-a11y-autocleanups.h $(CopyDir)\include\gtk-3.0\gtk\a11y\gtk-a11y-autocleanups.h
|
|
||||||
copy ..\..\..\gtk\a11y\gtkarrowaccessible.h $(CopyDir)\include\gtk-3.0\gtk\a11y\gtkarrowaccessible.h
|
copy ..\..\..\gtk\a11y\gtkarrowaccessible.h $(CopyDir)\include\gtk-3.0\gtk\a11y\gtkarrowaccessible.h
|
||||||
copy ..\..\..\gtk\a11y\gtkbooleancellaccessible.h $(CopyDir)\include\gtk-3.0\gtk\a11y\gtkbooleancellaccessible.h
|
copy ..\..\..\gtk\a11y\gtkbooleancellaccessible.h $(CopyDir)\include\gtk-3.0\gtk\a11y\gtkbooleancellaccessible.h
|
||||||
copy ..\..\..\gtk\a11y\gtkbuttonaccessible.h $(CopyDir)\include\gtk-3.0\gtk\a11y\gtkbuttonaccessible.h
|
copy ..\..\..\gtk\a11y\gtkbuttonaccessible.h $(CopyDir)\include\gtk-3.0\gtk\a11y\gtkbuttonaccessible.h
|
||||||
@@ -421,7 +411,6 @@ copy ..\..\..\gtk\deprecated\gtkrecentaction.h $(CopyDir)\include\gtk-3.0\gtk\de
|
|||||||
copy ..\..\..\gtk\deprecated\gtkstatusicon.h $(CopyDir)\include\gtk-3.0\gtk\deprecated\gtkstatusicon.h
|
copy ..\..\..\gtk\deprecated\gtkstatusicon.h $(CopyDir)\include\gtk-3.0\gtk\deprecated\gtkstatusicon.h
|
||||||
copy ..\..\..\gtk\deprecated\gtkstock.h $(CopyDir)\include\gtk-3.0\gtk\deprecated\gtkstock.h
|
copy ..\..\..\gtk\deprecated\gtkstock.h $(CopyDir)\include\gtk-3.0\gtk\deprecated\gtkstock.h
|
||||||
copy ..\..\..\gtk\deprecated\gtkstyle.h $(CopyDir)\include\gtk-3.0\gtk\deprecated\gtkstyle.h
|
copy ..\..\..\gtk\deprecated\gtkstyle.h $(CopyDir)\include\gtk-3.0\gtk\deprecated\gtkstyle.h
|
||||||
copy ..\..\..\gtk\deprecated\gtkstyleproperties.h $(CopyDir)\include\gtk-3.0\gtk\deprecated\gtkstyleproperties.h
|
|
||||||
copy ..\..\..\gtk\deprecated\gtksymboliccolor.h $(CopyDir)\include\gtk-3.0\gtk\deprecated\gtksymboliccolor.h
|
copy ..\..\..\gtk\deprecated\gtksymboliccolor.h $(CopyDir)\include\gtk-3.0\gtk\deprecated\gtksymboliccolor.h
|
||||||
copy ..\..\..\gtk\deprecated\gtktable.h $(CopyDir)\include\gtk-3.0\gtk\deprecated\gtktable.h
|
copy ..\..\..\gtk\deprecated\gtktable.h $(CopyDir)\include\gtk-3.0\gtk\deprecated\gtktable.h
|
||||||
copy ..\..\..\gtk\deprecated\gtktearoffmenuitem.h $(CopyDir)\include\gtk-3.0\gtk\deprecated\gtktearoffmenuitem.h
|
copy ..\..\..\gtk\deprecated\gtktearoffmenuitem.h $(CopyDir)\include\gtk-3.0\gtk\deprecated\gtktearoffmenuitem.h
|
||||||
|
@@ -209,32 +209,6 @@
|
|||||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release_Broadway|x64'">$(GenGdkConfigHBroadway)</Command>
|
<Command Condition="'$(Configuration)|$(Platform)'=='Release_Broadway|x64'">$(GenGdkConfigHBroadway)</Command>
|
||||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release_Broadway|x64'">..\..\..\gdk\gdkconfig.h;..\..\..\GDK_BROADWAY_BUILD;..\..\..\MSVC_$(Configuration)_Broadway;%(Outputs)</Outputs>
|
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release_Broadway|x64'">..\..\..\gdk\gdkconfig.h;..\..\..\GDK_BROADWAY_BUILD;..\..\..\MSVC_$(Configuration)_Broadway;%(Outputs)</Outputs>
|
||||||
</CustomBuild>
|
</CustomBuild>
|
||||||
<CustomBuild Include="..\..\..\demos\gtk-demo\demos.h.win32">
|
|
||||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Copying demos.h from demos.h.win32...</Message>
|
|
||||||
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(CopyDemosH)</Command>
|
|
||||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\..\..\demos\gtk-demo\demos.h;%(Outputs)</Outputs>
|
|
||||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug_Broadway|Win32'">Copying demos.h from demos.h.win32...</Message>
|
|
||||||
<Command Condition="'$(Configuration)|$(Platform)'=='Debug_Broadway|Win32'">$(CopyDemosH)</Command>
|
|
||||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug_Broadway|Win32'">..\..\..\demos\gtk-demo\demos.h;%(Outputs)</Outputs>
|
|
||||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Copying demos.h from demos.h.win32...</Message>
|
|
||||||
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(CopyDemosH)</Command>
|
|
||||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">..\..\..\demos\gtk-demo\demos.h;%(Outputs)</Outputs>
|
|
||||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug_Broadway|x64'">Copying demos.h from demos.h.win32...</Message>
|
|
||||||
<Command Condition="'$(Configuration)|$(Platform)'=='Debug_Broadway|x64'">$(CopyDemosH)</Command>
|
|
||||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug_Broadway|x64'">..\..\..\demos\gtk-demo\demos.h;%(Outputs)</Outputs>
|
|
||||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Copying demos.h from demos.h.win32...</Message>
|
|
||||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(CopyDemosH)</Command>
|
|
||||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">..\..\..\demos\gtk-demo\demos.h;%(Outputs)</Outputs>
|
|
||||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release_Broadway|Win32'">Copying demos.h from demos.h.win32...</Message>
|
|
||||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release_Broadway|Win32'">$(CopyDemosH)</Command>
|
|
||||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release_Broadway|Win32'">..\..\..\demos\gtk-demo\demos.h;%(Outputs)</Outputs>
|
|
||||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Copying demos.h from demos.h.win32...</Message>
|
|
||||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(CopyDemosH)</Command>
|
|
||||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">..\..\..\demos\gtk-demo\demos.h;%(Outputs)</Outputs>
|
|
||||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release_Broadway|x64'">Copying demos.h from demos.h.win32...</Message>
|
|
||||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release_Broadway|x64'">$(CopyDemosH)</Command>
|
|
||||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release_Broadway|x64'">..\..\..\demos\gtk-demo\demos.h;%(Outputs)</Outputs>
|
|
||||||
</CustomBuild>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
@@ -221,6 +221,10 @@
|
|||||||
<Project>{fc5aadb5-95cd-4bf0-ba8b-0c16fe7073f7}</Project>
|
<Project>{fc5aadb5-95cd-4bf0-ba8b-0c16fe7073f7}</Project>
|
||||||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
|
<ProjectReference Include="gtk-inspector.vcxproj">
|
||||||
|
<Project>{fc5aadb5-95cd-4bf0-ba8b-0c16fe7073fd}</Project>
|
||||||
|
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
||||||
|
</ProjectReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
<ImportGroup Label="ExtensionTargets">
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
@@ -182,7 +182,6 @@
|
|||||||
<ClCompile Include="..\..\..\demos\gtk-demo\css_multiplebgs.c" />
|
<ClCompile Include="..\..\..\demos\gtk-demo\css_multiplebgs.c" />
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\css_pixbufs.c" />
|
<ClCompile Include="..\..\..\demos\gtk-demo\css_pixbufs.c" />
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\css_shadows.c" />
|
<ClCompile Include="..\..\..\demos\gtk-demo\css_shadows.c" />
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\cursors.c" />
|
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\dialog.c" />
|
<ClCompile Include="..\..\..\demos\gtk-demo\dialog.c" />
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\drawingarea.c" />
|
<ClCompile Include="..\..\..\demos\gtk-demo\drawingarea.c" />
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\editable_cells.c" />
|
<ClCompile Include="..\..\..\demos\gtk-demo\editable_cells.c" />
|
||||||
@@ -191,7 +190,6 @@
|
|||||||
<ClCompile Include="..\..\..\demos\gtk-demo\event_axes.c" />
|
<ClCompile Include="..\..\..\demos\gtk-demo\event_axes.c" />
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\expander.c" />
|
<ClCompile Include="..\..\..\demos\gtk-demo\expander.c" />
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\gestures.c" />
|
<ClCompile Include="..\..\..\demos\gtk-demo\gestures.c" />
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\glarea.c" />
|
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\headerbar.c" />
|
<ClCompile Include="..\..\..\demos\gtk-demo\headerbar.c" />
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\hypertext.c" />
|
<ClCompile Include="..\..\..\demos\gtk-demo\hypertext.c" />
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\iconview.c" />
|
<ClCompile Include="..\..\..\demos\gtk-demo\iconview.c" />
|
||||||
@@ -215,7 +213,6 @@
|
|||||||
<ClCompile Include="..\..\..\demos\gtk-demo\rotated_text.c" />
|
<ClCompile Include="..\..\..\demos\gtk-demo\rotated_text.c" />
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\search_entry.c" />
|
<ClCompile Include="..\..\..\demos\gtk-demo\search_entry.c" />
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\search_entry2.c" />
|
<ClCompile Include="..\..\..\demos\gtk-demo\search_entry2.c" />
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\sidebar.c" />
|
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\sizegroup.c" />
|
<ClCompile Include="..\..\..\demos\gtk-demo\sizegroup.c" />
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\spinner.c" />
|
<ClCompile Include="..\..\..\demos\gtk-demo\spinner.c" />
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\stack.c" />
|
<ClCompile Include="..\..\..\demos\gtk-demo\stack.c" />
|
||||||
|
@@ -24,7 +24,6 @@
|
|||||||
<ClCompile Include="..\..\..\demos\gtk-demo\css_multiplebgs.c"><Filter>Source Files</Filter></ClCompile>
|
<ClCompile Include="..\..\..\demos\gtk-demo\css_multiplebgs.c"><Filter>Source Files</Filter></ClCompile>
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\css_pixbufs.c"><Filter>Source Files</Filter></ClCompile>
|
<ClCompile Include="..\..\..\demos\gtk-demo\css_pixbufs.c"><Filter>Source Files</Filter></ClCompile>
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\css_shadows.c"><Filter>Source Files</Filter></ClCompile>
|
<ClCompile Include="..\..\..\demos\gtk-demo\css_shadows.c"><Filter>Source Files</Filter></ClCompile>
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\cursors.c"><Filter>Source Files</Filter></ClCompile>
|
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\dialog.c"><Filter>Source Files</Filter></ClCompile>
|
<ClCompile Include="..\..\..\demos\gtk-demo\dialog.c"><Filter>Source Files</Filter></ClCompile>
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\drawingarea.c"><Filter>Source Files</Filter></ClCompile>
|
<ClCompile Include="..\..\..\demos\gtk-demo\drawingarea.c"><Filter>Source Files</Filter></ClCompile>
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\editable_cells.c"><Filter>Source Files</Filter></ClCompile>
|
<ClCompile Include="..\..\..\demos\gtk-demo\editable_cells.c"><Filter>Source Files</Filter></ClCompile>
|
||||||
@@ -33,7 +32,6 @@
|
|||||||
<ClCompile Include="..\..\..\demos\gtk-demo\event_axes.c"><Filter>Source Files</Filter></ClCompile>
|
<ClCompile Include="..\..\..\demos\gtk-demo\event_axes.c"><Filter>Source Files</Filter></ClCompile>
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\expander.c"><Filter>Source Files</Filter></ClCompile>
|
<ClCompile Include="..\..\..\demos\gtk-demo\expander.c"><Filter>Source Files</Filter></ClCompile>
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\gestures.c"><Filter>Source Files</Filter></ClCompile>
|
<ClCompile Include="..\..\..\demos\gtk-demo\gestures.c"><Filter>Source Files</Filter></ClCompile>
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\glarea.c"><Filter>Source Files</Filter></ClCompile>
|
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\headerbar.c"><Filter>Source Files</Filter></ClCompile>
|
<ClCompile Include="..\..\..\demos\gtk-demo\headerbar.c"><Filter>Source Files</Filter></ClCompile>
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\hypertext.c"><Filter>Source Files</Filter></ClCompile>
|
<ClCompile Include="..\..\..\demos\gtk-demo\hypertext.c"><Filter>Source Files</Filter></ClCompile>
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\iconview.c"><Filter>Source Files</Filter></ClCompile>
|
<ClCompile Include="..\..\..\demos\gtk-demo\iconview.c"><Filter>Source Files</Filter></ClCompile>
|
||||||
@@ -57,7 +55,6 @@
|
|||||||
<ClCompile Include="..\..\..\demos\gtk-demo\rotated_text.c"><Filter>Source Files</Filter></ClCompile>
|
<ClCompile Include="..\..\..\demos\gtk-demo\rotated_text.c"><Filter>Source Files</Filter></ClCompile>
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\search_entry.c"><Filter>Source Files</Filter></ClCompile>
|
<ClCompile Include="..\..\..\demos\gtk-demo\search_entry.c"><Filter>Source Files</Filter></ClCompile>
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\search_entry2.c"><Filter>Source Files</Filter></ClCompile>
|
<ClCompile Include="..\..\..\demos\gtk-demo\search_entry2.c"><Filter>Source Files</Filter></ClCompile>
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\sidebar.c"><Filter>Source Files</Filter></ClCompile>
|
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\sizegroup.c"><Filter>Source Files</Filter></ClCompile>
|
<ClCompile Include="..\..\..\demos\gtk-demo\sizegroup.c"><Filter>Source Files</Filter></ClCompile>
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\spinner.c"><Filter>Source Files</Filter></ClCompile>
|
<ClCompile Include="..\..\..\demos\gtk-demo\spinner.c"><Filter>Source Files</Filter></ClCompile>
|
||||||
<ClCompile Include="..\..\..\demos\gtk-demo\stack.c"><Filter>Source Files</Filter></ClCompile>
|
<ClCompile Include="..\..\..\demos\gtk-demo\stack.c"><Filter>Source Files</Filter></ClCompile>
|
||||||
|
@@ -161,7 +161,6 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="..\..\..\demos\icon-browser\iconbrowserapp.c" />
|
<ClCompile Include="..\..\..\demos\icon-browser\iconbrowserapp.c" />
|
||||||
<ClCompile Include="..\..\..\demos\icon-browser\iconbrowserwin.c" />
|
<ClCompile Include="..\..\..\demos\icon-browser\iconbrowserwin.c" />
|
||||||
<ClCompile Include="..\..\..\demos\icon-browser\iconstore.c" />
|
|
||||||
<ClCompile Include="..\..\..\demos\icon-browser\main.c" />
|
<ClCompile Include="..\..\..\demos\icon-browser\main.c" />
|
||||||
<ClCompile Include="..\..\..\demos\icon-browser\resources.c" />
|
<ClCompile Include="..\..\..\demos\icon-browser\resources.c" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
@@ -17,7 +17,6 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="..\..\..\demos\icon-browser\iconbrowserapp.c"><Filter>Sources</Filter></ClCompile>
|
<ClCompile Include="..\..\..\demos\icon-browser\iconbrowserapp.c"><Filter>Sources</Filter></ClCompile>
|
||||||
<ClCompile Include="..\..\..\demos\icon-browser\iconbrowserwin.c"><Filter>Sources</Filter></ClCompile>
|
<ClCompile Include="..\..\..\demos\icon-browser\iconbrowserwin.c"><Filter>Sources</Filter></ClCompile>
|
||||||
<ClCompile Include="..\..\..\demos\icon-browser\iconstore.c"><Filter>Sources</Filter></ClCompile>
|
|
||||||
<ClCompile Include="..\..\..\demos\icon-browser\main.c"><Filter>Sources</Filter></ClCompile>
|
<ClCompile Include="..\..\..\demos\icon-browser\main.c"><Filter>Sources</Filter></ClCompile>
|
||||||
<ClCompile Include="..\..\..\demos\icon-browser\resources.c"><Filter>Sources</Filter></ClCompile>
|
<ClCompile Include="..\..\..\demos\icon-browser\resources.c"><Filter>Sources</Filter></ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
@@ -35,8 +35,8 @@
|
|||||||
</ProjectConfiguration>
|
</ProjectConfiguration>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<PropertyGroup Label="Globals">
|
<PropertyGroup Label="Globals">
|
||||||
<ProjectGuid>{2093D218-190E-4194-9421-3BA7CBF33B15}</ProjectGuid>
|
<ProjectGuid>{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}</ProjectGuid>
|
||||||
<RootNamespace>gtkinstall</RootNamespace>
|
<RootNamespace>install</RootNamespace>
|
||||||
<Keyword>Win32Proj</Keyword>
|
<Keyword>Win32Proj</Keyword>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
@@ -219,4 +219,4 @@
|
|||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
<ImportGroup Label="ExtensionTargets">
|
<ImportGroup Label="ExtensionTargets">
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
</Project>
|
</Project>
|
@@ -18,9 +18,11 @@ EXTRA_DIST += \
|
|||||||
gtk3-demo-application.vcxproj.filters \
|
gtk3-demo-application.vcxproj.filters \
|
||||||
gtk3-icon-browser.vcxproj \
|
gtk3-icon-browser.vcxproj \
|
||||||
gtk3-icon-browser.vcxproj.filters \
|
gtk3-icon-browser.vcxproj.filters \
|
||||||
|
gtk-inspector.vcxproj \
|
||||||
|
gtk-inspector.vcxproj.filters \
|
||||||
gailutil.vcxproj \
|
gailutil.vcxproj \
|
||||||
gailutil.vcxproj.filters \
|
gailutil.vcxproj.filters \
|
||||||
gtk-install.vcxproj \
|
install.vcxproj \
|
||||||
broadwayd.vcxproj \
|
broadwayd.vcxproj \
|
||||||
broadwayd.vcxproj.filters \
|
broadwayd.vcxproj.filters \
|
||||||
gdk-broadway.vcxproj \
|
gdk-broadway.vcxproj \
|
||||||
|
@@ -18,9 +18,11 @@ EXTRA_DIST += \
|
|||||||
gtk3-demo-application.vcxproj.filters \
|
gtk3-demo-application.vcxproj.filters \
|
||||||
gtk3-icon-browser.vcxproj \
|
gtk3-icon-browser.vcxproj \
|
||||||
gtk3-icon-browser.vcxproj.filters \
|
gtk3-icon-browser.vcxproj.filters \
|
||||||
|
gtk-inspector.vcxproj \
|
||||||
|
gtk-inspector.vcxproj.filters \
|
||||||
gailutil.vcxproj \
|
gailutil.vcxproj \
|
||||||
gailutil.vcxproj.filters \
|
gailutil.vcxproj.filters \
|
||||||
gtk-install.vcxproj \
|
install.vcxproj \
|
||||||
broadwayd.vcxproj \
|
broadwayd.vcxproj \
|
||||||
broadwayd.vcxproj.filters \
|
broadwayd.vcxproj.filters \
|
||||||
gdk-broadway.vcxproj \
|
gdk-broadway.vcxproj \
|
||||||
|
@@ -13,8 +13,10 @@ EXTRA_DIST += \
|
|||||||
gtk3-demo.vcproj \
|
gtk3-demo.vcproj \
|
||||||
gtk3-demo-application.vcproj \
|
gtk3-demo-application.vcproj \
|
||||||
gtk3-icon-browser.vcproj \
|
gtk3-icon-browser.vcproj \
|
||||||
|
gtk-inspector.vcproj \
|
||||||
|
gtk-inspector.vcprojin \
|
||||||
gailutil.vcproj \
|
gailutil.vcproj \
|
||||||
gtk-install.vcproj \
|
install.vcproj \
|
||||||
broadwayd.vcproj \
|
broadwayd.vcproj \
|
||||||
gdk-broadway.vcproj \
|
gdk-broadway.vcproj \
|
||||||
gtk-build-defines.vsprops \
|
gtk-build-defines.vsprops \
|
||||||
|
@@ -133,7 +133,6 @@
|
|||||||
<File RelativePath="..\..\..\gdk\win32\gdkdnd-win32.c" />
|
<File RelativePath="..\..\..\gdk\win32\gdkdnd-win32.c" />
|
||||||
<File RelativePath="..\..\..\gdk\win32\gdkevents-win32.c" />
|
<File RelativePath="..\..\..\gdk\win32\gdkevents-win32.c" />
|
||||||
<File RelativePath="..\..\..\gdk\win32\gdkgeometry-win32.c" />
|
<File RelativePath="..\..\..\gdk\win32\gdkgeometry-win32.c" />
|
||||||
<File RelativePath="..\..\..\gdk\win32\gdkglcontext-win32.c" />
|
|
||||||
<File RelativePath="..\..\..\gdk\win32\gdkglobals-win32.c" />
|
<File RelativePath="..\..\..\gdk\win32\gdkglobals-win32.c" />
|
||||||
<File RelativePath="..\..\..\gdk\win32\gdkinput.c" />
|
<File RelativePath="..\..\..\gdk\win32\gdkinput.c" />
|
||||||
<File RelativePath="..\..\..\gdk\win32\gdkkeys-win32.c" />
|
<File RelativePath="..\..\..\gdk\win32\gdkkeys-win32.c" />
|
||||||
|
@@ -42,7 +42,7 @@
|
|||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalDependencies="imm32.lib winmm.lib dwmapi.lib"
|
AdditionalDependencies="imm32.lib winmm.lib"
|
||||||
OutputFile="$(OutDir)\$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll"
|
OutputFile="$(OutDir)\$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
GenerateDebugInformation="true"
|
GenerateDebugInformation="true"
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalDependencies="imm32.lib winmm.lib ws2_32.lib dwmapi.lib"
|
AdditionalDependencies="imm32.lib winmm.lib ws2_32.lib"
|
||||||
OutputFile="$(OutDir)\$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll"
|
OutputFile="$(OutDir)\$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
GenerateDebugInformation="true"
|
GenerateDebugInformation="true"
|
||||||
@@ -104,7 +104,7 @@
|
|||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalDependencies="imm32.lib winmm.lib dwmapi.lib"
|
AdditionalDependencies="imm32.lib winmm.lib"
|
||||||
OutputFile="$(OutDir)\$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll"
|
OutputFile="$(OutDir)\$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
GenerateDebugInformation="true"
|
GenerateDebugInformation="true"
|
||||||
@@ -136,7 +136,7 @@
|
|||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalDependencies="imm32.lib winmm.lib ws2_32.lib dwmapi.lib"
|
AdditionalDependencies="imm32.lib winmm.lib ws2_32.lib"
|
||||||
OutputFile="$(OutDir)\$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll"
|
OutputFile="$(OutDir)\$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
GenerateDebugInformation="true"
|
GenerateDebugInformation="true"
|
||||||
@@ -170,7 +170,7 @@
|
|||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalDependencies="imm32.lib winmm.lib dwmapi.lib"
|
AdditionalDependencies="imm32.lib winmm.lib"
|
||||||
OutputFile="$(OutDir)\$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll"
|
OutputFile="$(OutDir)\$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
GenerateDebugInformation="true"
|
GenerateDebugInformation="true"
|
||||||
@@ -202,7 +202,7 @@
|
|||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalDependencies="imm32.lib winmm.lib ws2_32.lib dwmapi.lib"
|
AdditionalDependencies="imm32.lib winmm.lib ws2_32.lib"
|
||||||
OutputFile="$(OutDir)\$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll"
|
OutputFile="$(OutDir)\$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
GenerateDebugInformation="true"
|
GenerateDebugInformation="true"
|
||||||
@@ -232,7 +232,7 @@
|
|||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalDependencies="imm32.lib winmm.lib dwmapi.lib"
|
AdditionalDependencies="imm32.lib winmm.lib"
|
||||||
OutputFile="$(OutDir)\$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll"
|
OutputFile="$(OutDir)\$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
GenerateDebugInformation="true"
|
GenerateDebugInformation="true"
|
||||||
@@ -264,7 +264,7 @@
|
|||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalDependencies="imm32.lib winmm.lib ws2_32.lib dwmapi.lib"
|
AdditionalDependencies="imm32.lib winmm.lib ws2_32.lib"
|
||||||
OutputFile="$(OutDir)\$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll"
|
OutputFile="$(OutDir)\$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
GenerateDebugInformation="true"
|
GenerateDebugInformation="true"
|
||||||
|
@@ -23,9 +23,15 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gdk", "gdk.vcproj", "{FC5AA
|
|||||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FE} = {FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FE}
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FE} = {FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FE}
|
||||||
EndProjectSection
|
EndProjectSection
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gtk-inspector", "gtk-inspector.vcproj", "{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}"
|
||||||
|
ProjectSection(ProjectDependencies) = postProject
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FF} = {FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FF}
|
||||||
|
EndProjectSection
|
||||||
|
EndProject
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gtk", "gtk.vcproj", "{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gtk", "gtk.vcproj", "{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}"
|
||||||
ProjectSection(ProjectDependencies) = postProject
|
ProjectSection(ProjectDependencies) = postProject
|
||||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7} = {FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7}
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7} = {FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7}
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD} = {FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}
|
||||||
EndProjectSection
|
EndProjectSection
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gtk3-demo", "gtk3-demo.vcproj", "{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FC}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gtk3-demo", "gtk3-demo.vcproj", "{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FC}"
|
||||||
@@ -57,7 +63,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gailutil", "gailutil.vcproj
|
|||||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5} = {FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5} = {FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}
|
||||||
EndProjectSection
|
EndProjectSection
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gtk-install", "gtk-install.vcproj", "{2093D218-190E-4194-9421-3BA7CBF33B15}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "install", "install.vcproj", "{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}"
|
||||||
ProjectSection(ProjectDependencies) = postProject
|
ProjectSection(ProjectDependencies) = postProject
|
||||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7} = {FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7}
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7} = {FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7}
|
||||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5} = {FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5} = {FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}
|
||||||
@@ -145,6 +151,22 @@ Global
|
|||||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7}.Release_Broadway|Win32.Build.0 = Release_Broadway|Win32
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7}.Release_Broadway|Win32.Build.0 = Release_Broadway|Win32
|
||||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7}.Release_Broadway|x64.ActiveCfg = Release_Broadway|x64
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7}.Release_Broadway|x64.ActiveCfg = Release_Broadway|x64
|
||||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7}.Release_Broadway|x64.Build.0 = Release_Broadway|x64
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7}.Release_Broadway|x64.Build.0 = Release_Broadway|x64
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}.Debug|x64.Build.0 = Debug|x64
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}.Release|x64.ActiveCfg = Release|x64
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}.Release|x64.Build.0 = Release|x64
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}.Debug_Broadway|Win32.ActiveCfg = Debug|Win32
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}.Debug_Broadway|Win32.Build.0 = Debug|Win32
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}.Debug_Broadway|x64.ActiveCfg = Debug|x64
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}.Debug_Broadway|x64.Build.0 = Debug|x64
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}.Release_Broadway|Win32.ActiveCfg = Release|Win32
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}.Release_Broadway|Win32.Build.0 = Release|Win32
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}.Release_Broadway|x64.ActiveCfg = Release|x64
|
||||||
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}.Release_Broadway|x64.Build.0 = Release|x64
|
||||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}.Debug|Win32.ActiveCfg = Debug|Win32
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}.Debug|Win32.Build.0 = Debug|Win32
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}.Debug|x64.ActiveCfg = Debug|x64
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
@@ -161,22 +183,22 @@ Global
|
|||||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}.Release_Broadway|Win32.Build.0 = Release|Win32
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}.Release_Broadway|Win32.Build.0 = Release|Win32
|
||||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}.Release_Broadway|x64.ActiveCfg = Release|x64
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}.Release_Broadway|x64.ActiveCfg = Release|x64
|
||||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}.Release_Broadway|x64.Build.0 = Release|x64
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}.Release_Broadway|x64.Build.0 = Release|x64
|
||||||
{2093D218-190E-4194-9421-3BA7CBF33B15}.Debug|Win32.ActiveCfg = Debug|Win32
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
{2093D218-190E-4194-9421-3BA7CBF33B15}.Debug|Win32.Build.0 = Debug|Win32
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
{2093D218-190E-4194-9421-3BA7CBF33B15}.Debug|x64.ActiveCfg = Debug|x64
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
{2093D218-190E-4194-9421-3BA7CBF33B15}.Debug|x64.Build.0 = Debug|x64
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Debug|x64.Build.0 = Debug|x64
|
||||||
{2093D218-190E-4194-9421-3BA7CBF33B15}.Release|Win32.ActiveCfg = Release|Win32
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
{2093D218-190E-4194-9421-3BA7CBF33B15}.Release|Win32.Build.0 = Release|Win32
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Release|Win32.Build.0 = Release|Win32
|
||||||
{2093D218-190E-4194-9421-3BA7CBF33B15}.Release|x64.ActiveCfg = Release|x64
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Release|x64.ActiveCfg = Release|x64
|
||||||
{2093D218-190E-4194-9421-3BA7CBF33B15}.Release|x64.Build.0 = Release|x64
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Release|x64.Build.0 = Release|x64
|
||||||
{2093D218-190E-4194-9421-3BA7CBF33B15}.Debug_Broadway|Win32.ActiveCfg = Debug_Broadway|Win32
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Debug_Broadway|Win32.ActiveCfg = Debug_Broadway|Win32
|
||||||
{2093D218-190E-4194-9421-3BA7CBF33B15}.Debug_Broadway|Win32.Build.0 = Debug_Broadway|Win32
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Debug_Broadway|Win32.Build.0 = Debug_Broadway|Win32
|
||||||
{2093D218-190E-4194-9421-3BA7CBF33B15}.Debug_Broadway|x64.ActiveCfg = Debug_Broadway|x64
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Debug_Broadway|x64.ActiveCfg = Debug_Broadway|x64
|
||||||
{2093D218-190E-4194-9421-3BA7CBF33B15}.Debug_Broadway|x64.Build.0 = Debug_Broadway|x64
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Debug_Broadway|x64.Build.0 = Debug_Broadway|x64
|
||||||
{2093D218-190E-4194-9421-3BA7CBF33B15}.Release_Broadway|Win32.ActiveCfg = Release_Broadway|Win32
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Release_Broadway|Win32.ActiveCfg = Release_Broadway|Win32
|
||||||
{2093D218-190E-4194-9421-3BA7CBF33B15}.Release_Broadway|Win32.Build.0 = Release_Broadway|Win32
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Release_Broadway|Win32.Build.0 = Release_Broadway|Win32
|
||||||
{2093D218-190E-4194-9421-3BA7CBF33B15}.Release_Broadway|x64.ActiveCfg = Release_Broadway|x64
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Release_Broadway|x64.ActiveCfg = Release_Broadway|x64
|
||||||
{2093D218-190E-4194-9421-3BA7CBF33B15}.Release_Broadway|x64.Build.0 = Release_Broadway|x64
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Release_Broadway|x64.Build.0 = Release_Broadway|x64
|
||||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FC}.Debug|Win32.ActiveCfg = Debug|Win32
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FC}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FC}.Debug|Win32.Build.0 = Debug|Win32
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FC}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FC}.Debug|x64.ActiveCfg = Debug|x64
|
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FC}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalDependencies="gdk_pixbuf-2.0.lib pangocairo-1.0.lib pango-1.0.lib cairo-gobject.lib cairo.lib gio-2.0.lib gmodule-2.0.lib gobject-2.0.lib glib-2.0.lib intl.lib epoxy.lib"
|
AdditionalDependencies="gdk_pixbuf-2.0.lib pangocairo-1.0.lib pango-1.0.lib cairo-gobject.lib cairo.lib gio-2.0.lib gmodule-2.0.lib gobject-2.0.lib glib-2.0.lib intl.lib"
|
||||||
AdditionalLibraryDirectories="$(GlibEtcInstallRoot)\lib"
|
AdditionalLibraryDirectories="$(GlibEtcInstallRoot)\lib"
|
||||||
/>
|
/>
|
||||||
<UserMacro
|
<UserMacro
|
||||||
@@ -41,6 +41,6 @@
|
|||||||
/>
|
/>
|
||||||
<UserMacro
|
<UserMacro
|
||||||
Name="GtkDefines"
|
Name="GtkDefines"
|
||||||
Value="GTK_COMPILATION;G_LOG_DOMAIN=\"Gtk\";GTK_HOST=\"i686-pc-vs$(VSVer)\";GTK_PRINT_BACKENDS=\"file\";GTK_PRINT_BACKEND_ENABLE_UNSUPPORTED;$(GtkIncludedImmodulesDefines);GTK_LIBDIR=\"$(GtkDummyPrefix)/lib\";GTK_DATADIR=\"$(GtkDummyPrefix)/share\"GTK_DATA_PREFIX=\"$(GtkDummyPrefix)\";GTK_SYSCONFDIR=\"$(GtkDummyPrefix)/etc\";MULTIPRESS_CONFDIR=\"$(GtkDummyPrefix)/etc/gtk-$(ApiVersion)\";MULTIPRESS_LOCALEDIR=\"$(GtkDummyPrefix)/share/locale\";GTK_VERSION=\"$(GtkVersion)/etc\";GTK_BINARY_VERSION=\"$(GtkBinaryVersion)/etc\";GDK_DISABLE_DEPRECATED;ISOLATION_AWARE_ENABLED"
|
Value="GTK_COMPILATION;G_LOG_DOMAIN=\"Gtk\";GTK_HOST=\"i686-pc-vs$(VSVer)\";GTK_PRINT_BACKENDS=\"file\";GTK_PRINT_PREVIEW_COMMAND=\"undefined-gtk-print-preview-command\";$(GtkIncludedImmodulesDefines);GTK_LIBDIR=\"$(GtkDummyPrefix)/lib\";GTK_DATADIR=\"$(GtkDummyPrefix)/share\"GTK_DATA_PREFIX=\"$(GtkDummyPrefix)\";GTK_SYSCONFDIR=\"$(GtkDummyPrefix)/etc\";MULTIPRESS_CONFDIR=\"$(GtkDummyPrefix)/etc/gtk-$(ApiVersion)\";MULTIPRESS_LOCALEDIR=\"$(GtkDummyPrefix)/share/locale\";GTK_VERSION=\"$(GtkVersion)/etc\";GTK_BINARY_VERSION=\"$(GtkBinaryVersion)/etc\";GDK_DISABLE_DEPRECATED;ISOLATION_AWARE_ENABLED"
|
||||||
/>
|
/>
|
||||||
</VisualStudioPropertySheet>
|
</VisualStudioPropertySheet>
|
||||||
|
@@ -66,8 +66,4 @@ cd $(SolutionDir)

|
|||||||
Name="GenerateGtkWin32RC"
|
Name="GenerateGtkWin32RC"
|
||||||
Value="$(PythonPath)\python ..\process-in-win32.py --gtkwin32rc --gtk3manifest"
|
Value="$(PythonPath)\python ..\process-in-win32.py --gtkwin32rc --gtk3manifest"
|
||||||
/>
|
/>
|
||||||
<UserMacro
|
|
||||||
Name="CopyDemosH"
|
|
||||||
Value="copy ..\..\..\demos\gtk-demo\demos.h.win32 ..\..\..\demos\gtk-demo\demos.h"
|
|
||||||
/>
|
|
||||||
</VisualStudioPropertySheet>
|
</VisualStudioPropertySheet>
|
||||||
|
130
build/win32/vs9/gtk-inspector.vcprojin
Normal file
@@ -0,0 +1,130 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<VisualStudioProject
|
||||||
|
ProjectType="Visual C++"
|
||||||
|
Version="9.00"
|
||||||
|
Name="gtk-inspector"
|
||||||
|
ProjectGUID="{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FD}"
|
||||||
|
RootNamespace="gtkinspector"
|
||||||
|
Keyword="Win32Proj"
|
||||||
|
TargetFrameworkVersion="0"
|
||||||
|
>
|
||||||
|
<Platforms>
|
||||||
|
<Platform
|
||||||
|
Name="Win32"
|
||||||
|
/>
|
||||||
|
<Platform
|
||||||
|
Name="x64"
|
||||||
|
/>
|
||||||
|
</Platforms>
|
||||||
|
<ToolFiles>
|
||||||
|
</ToolFiles>
|
||||||
|
<Configurations>
|
||||||
|
<Configuration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
InheritedPropertySheets=".\gtk-build-defines.vsprops"
|
||||||
|
ConfigurationType="4"
|
||||||
|
CharacterSet="2"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="0"
|
||||||
|
AdditionalIncludeDirectories="..\..\..\gdk;..\..\..\gtk"
|
||||||
|
PreprocessorDefinitions="_DEBUG;G_ENABLE_DEBUG;$(GtkDefines)"
|
||||||
|
MinimalRebuild="true"
|
||||||
|
BasicRuntimeChecks="3"
|
||||||
|
RuntimeLibrary="3"
|
||||||
|
UsePrecompiledHeader="0"
|
||||||
|
WarningLevel="3"
|
||||||
|
DebugInformationFormat="4"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Release|Win32"
|
||||||
|
InheritedPropertySheets=".\gtk-build-defines.vsprops"
|
||||||
|
ConfigurationType="4"
|
||||||
|
CharacterSet="2"
|
||||||
|
WholeProgramOptimization="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
AdditionalIncludeDirectories="..\..\..\gdk;..\..\..\gtk"
|
||||||
|
PreprocessorDefinitions="$(GtkDefines)"
|
||||||
|
RuntimeLibrary="2"
|
||||||
|
UsePrecompiledHeader="0"
|
||||||
|
WarningLevel="3"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Debug|x64"
|
||||||
|
InheritedPropertySheets=".\gtk-build-defines.vsprops"
|
||||||
|
ConfigurationType="4"
|
||||||
|
CharacterSet="2"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="0"
|
||||||
|
AdditionalIncludeDirectories="..\..\..\gdk;..\..\..\gtk"
|
||||||
|
PreprocessorDefinitions="_DEBUG;G_ENABLE_DEBUG;$(GtkDefines)"
|
||||||
|
MinimalRebuild="true"
|
||||||
|
BasicRuntimeChecks="3"
|
||||||
|
RuntimeLibrary="3"
|
||||||
|
UsePrecompiledHeader="0"
|
||||||
|
WarningLevel="3"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Release|x64"
|
||||||
|
InheritedPropertySheets=".\gtk-build-defines.vsprops"
|
||||||
|
ConfigurationType="4"
|
||||||
|
CharacterSet="2"
|
||||||
|
WholeProgramOptimization="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
AdditionalIncludeDirectories="..\..\..\gdk;..\..\..\gtk"
|
||||||
|
PreprocessorDefinitions="$(GtkDefines)"
|
||||||
|
RuntimeLibrary="2"
|
||||||
|
UsePrecompiledHeader="0"
|
||||||
|
WarningLevel="3"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
</Configurations>
|
||||||
|
<References>
|
||||||
|
</References>
|
||||||
|
<Files>
|
||||||
|
<Filter
|
||||||
|
Name="Header Files"
|
||||||
|
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||||
|
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
||||||
|
>
|
||||||
|
</Filter>
|
||||||
|
<Filter
|
||||||
|
Name="Resource Files"
|
||||||
|
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
|
||||||
|
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
||||||
|
>
|
||||||
|
</Filter>
|
||||||
|
<Filter
|
||||||
|
Name="Source Files"
|
||||||
|
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||||
|
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
||||||
|
>
|
||||||
|
#include "libgtk-inspector.sourcefiles"
|
||||||
|
</Filter>
|
||||||
|
</Files>
|
||||||
|
</VisualStudioProject>
|
@@ -82,7 +82,6 @@ mkdir $(CopyDir)\include\gtk-$(ApiVersion)\gtk\a11y

|
|||||||
mkdir $(CopyDir)\include\gtk-$(ApiVersion)\gtk\deprecated

|
mkdir $(CopyDir)\include\gtk-$(ApiVersion)\gtk\deprecated

|
||||||
copy ..\..\..\gdk\win32\gdkwin32.h $(CopyDir)\include\gtk-$(ApiVersion)\gdk

|
copy ..\..\..\gdk\win32\gdkwin32.h $(CopyDir)\include\gtk-$(ApiVersion)\gdk

|
||||||
copy ..\..\..\gdk\gdk.h $(CopyDir)\include\gtk-3.0\gdk\gdk.h

|
copy ..\..\..\gdk\gdk.h $(CopyDir)\include\gtk-3.0\gdk\gdk.h

|
||||||
copy ..\..\..\gdk\gdk-autocleanup.h $(CopyDir)\include\gtk-3.0\gdk\gdk-autocleanup.h

|
|
||||||
copy ..\..\..\gdk\gdkapplaunchcontext.h $(CopyDir)\include\gtk-3.0\gdk\gdkapplaunchcontext.h

|
copy ..\..\..\gdk\gdkapplaunchcontext.h $(CopyDir)\include\gtk-3.0\gdk\gdkapplaunchcontext.h

|
||||||
copy ..\..\..\gdk\gdkcairo.h $(CopyDir)\include\gtk-3.0\gdk\gdkcairo.h

|
copy ..\..\..\gdk\gdkcairo.h $(CopyDir)\include\gtk-3.0\gdk\gdkcairo.h

|
||||||
copy ..\..\..\gdk\gdkcursor.h $(CopyDir)\include\gtk-3.0\gdk\gdkcursor.h

|
copy ..\..\..\gdk\gdkcursor.h $(CopyDir)\include\gtk-3.0\gdk\gdkcursor.h

|
||||||
@@ -93,7 +92,6 @@ copy ..\..\..\gdk\gdkdisplaymanager.h $(CopyDir)\include\gtk-3.0\gdk\gdkdisplaym
|
|||||||
copy ..\..\..\gdk\gdkdnd.h $(CopyDir)\include\gtk-3.0\gdk\gdkdnd.h

|
copy ..\..\..\gdk\gdkdnd.h $(CopyDir)\include\gtk-3.0\gdk\gdkdnd.h

|
||||||
copy ..\..\..\gdk\gdkevents.h $(CopyDir)\include\gtk-3.0\gdk\gdkevents.h

|
copy ..\..\..\gdk\gdkevents.h $(CopyDir)\include\gtk-3.0\gdk\gdkevents.h

|
||||||
copy ..\..\..\gdk\gdkframetimings.h $(CopyDir)\include\gtk-3.0\gdk\gdkframetimings.h

|
copy ..\..\..\gdk\gdkframetimings.h $(CopyDir)\include\gtk-3.0\gdk\gdkframetimings.h

|
||||||
copy ..\..\..\gdk\gdkglcontext.h $(CopyDir)\include\gtk-3.0\gdk\gdkglcontext.h

|
|
||||||
copy ..\..\..\gdk\gdkkeys.h $(CopyDir)\include\gtk-3.0\gdk\gdkkeys.h

|
copy ..\..\..\gdk\gdkkeys.h $(CopyDir)\include\gtk-3.0\gdk\gdkkeys.h

|
||||||
copy ..\..\..\gdk\gdkkeysyms.h $(CopyDir)\include\gtk-3.0\gdk\gdkkeysyms.h

|
copy ..\..\..\gdk\gdkkeysyms.h $(CopyDir)\include\gtk-3.0\gdk\gdkkeysyms.h

|
||||||
copy ..\..\..\gdk\gdkkeysyms-compat.h $(CopyDir)\include\gtk-3.0\gdk\gdkkeysyms-compat.h

|
copy ..\..\..\gdk\gdkkeysyms-compat.h $(CopyDir)\include\gtk-3.0\gdk\gdkkeysyms-compat.h

|
||||||
@@ -120,15 +118,12 @@ copy ..\..\..\gdk\win32\gdkwin32cursor.h $(CopyDir)\include\gtk-3.0\gdk\win32\gd
|
|||||||
copy ..\..\..\gdk\win32\gdkwin32display.h $(CopyDir)\include\gtk-3.0\gdk\win32\gdkwin32display.h

|
copy ..\..\..\gdk\win32\gdkwin32display.h $(CopyDir)\include\gtk-3.0\gdk\win32\gdkwin32display.h

|
||||||
copy ..\..\..\gdk\win32\gdkwin32displaymanager.h $(CopyDir)\include\gtk-3.0\gdk\win32\gdkwin32displaymanager.h

|
copy ..\..\..\gdk\win32\gdkwin32displaymanager.h $(CopyDir)\include\gtk-3.0\gdk\win32\gdkwin32displaymanager.h

|
||||||
copy ..\..\..\gdk\win32\gdkwin32dnd.h $(CopyDir)\include\gtk-3.0\gdk\win32\gdkwin32dnd.h

|
copy ..\..\..\gdk\win32\gdkwin32dnd.h $(CopyDir)\include\gtk-3.0\gdk\win32\gdkwin32dnd.h

|
||||||
copy ..\..\..\gdk\win32\gdkwin32glcontext.h $(CopyDir)\include\gtk-3.0\gdk\win32\gdkwin32glcontext.h

|
|
||||||
copy ..\..\..\gdk\win32\gdkwin32keys.h $(CopyDir)\include\gtk-3.0\gdk\win32\gdkwin32keys.h

|
copy ..\..\..\gdk\win32\gdkwin32keys.h $(CopyDir)\include\gtk-3.0\gdk\win32\gdkwin32keys.h

|
||||||
copy ..\..\..\gdk\win32\gdkwin32misc.h $(CopyDir)\include\gtk-3.0\gdk\win32\gdkwin32misc.h

|
copy ..\..\..\gdk\win32\gdkwin32misc.h $(CopyDir)\include\gtk-3.0\gdk\win32\gdkwin32misc.h

|
||||||
copy ..\..\..\gdk\win32\gdkwin32screen.h $(CopyDir)\include\gtk-3.0\gdk\win32\gdkwin32screen.h

|
copy ..\..\..\gdk\win32\gdkwin32screen.h $(CopyDir)\include\gtk-3.0\gdk\win32\gdkwin32screen.h

|
||||||
copy ..\..\..\gdk\win32\gdkwin32window.h $(CopyDir)\include\gtk-3.0\gdk\win32\gdkwin32window.h

|
copy ..\..\..\gdk\win32\gdkwin32window.h $(CopyDir)\include\gtk-3.0\gdk\win32\gdkwin32window.h

|
||||||
copy ..\..\..\gtk\gtk.h $(CopyDir)\include\gtk-3.0\gtk\gtk.h

|
copy ..\..\..\gtk\gtk.h $(CopyDir)\include\gtk-3.0\gtk\gtk.h

|
||||||
copy ..\..\..\gtk\gtk-autocleanups.h $(CopyDir)\include\gtk-3.0\gtk\gtk-autocleanups.h

|
|
||||||
copy ..\..\..\gtk\gtkx.h $(CopyDir)\include\gtk-3.0\gtk\gtkx.h

|
copy ..\..\..\gtk\gtkx.h $(CopyDir)\include\gtk-3.0\gtk\gtkx.h

|
||||||
copy ..\..\..\gtk\gtkx-autocleanups.h $(CopyDir)\include\gtk-3.0\gtk\gtkx-autocleanups.h

|
|
||||||
copy ..\..\..\gtk\gtk-a11y.h $(CopyDir)\include\gtk-3.0\gtk\gtk-a11y.h

|
copy ..\..\..\gtk\gtk-a11y.h $(CopyDir)\include\gtk-3.0\gtk\gtk-a11y.h

|
||||||
copy ..\..\..\gtk\gtkaboutdialog.h $(CopyDir)\include\gtk-3.0\gtk\gtkaboutdialog.h

|
copy ..\..\..\gtk\gtkaboutdialog.h $(CopyDir)\include\gtk-3.0\gtk\gtkaboutdialog.h

|
||||||
copy ..\..\..\gtk\gtkaccelgroup.h $(CopyDir)\include\gtk-3.0\gtk\gtkaccelgroup.h

|
copy ..\..\..\gtk\gtkaccelgroup.h $(CopyDir)\include\gtk-3.0\gtk\gtkaccelgroup.h

|
||||||
@@ -216,7 +211,6 @@ copy ..\..\..\gtk\gtkgesturerotate.h $(CopyDir)\include\gtk-3.0\gtk\gtkgesturero
|
|||||||
copy ..\..\..\gtk\gtkgesturesingle.h $(CopyDir)\include\gtk-3.0\gtk\gtkgesturesingle.h

|
copy ..\..\..\gtk\gtkgesturesingle.h $(CopyDir)\include\gtk-3.0\gtk\gtkgesturesingle.h

|
||||||
copy ..\..\..\gtk\gtkgestureswipe.h $(CopyDir)\include\gtk-3.0\gtk\gtkgestureswipe.h

|
copy ..\..\..\gtk\gtkgestureswipe.h $(CopyDir)\include\gtk-3.0\gtk\gtkgestureswipe.h

|
||||||
copy ..\..\..\gtk\gtkgesturezoom.h $(CopyDir)\include\gtk-3.0\gtk\gtkgesturezoom.h

|
copy ..\..\..\gtk\gtkgesturezoom.h $(CopyDir)\include\gtk-3.0\gtk\gtkgesturezoom.h

|
||||||
copy ..\..\..\gtk\gtkglarea.h $(CopyDir)\include\gtk-3.0\gtk\gtkglarea.h

|
|
||||||
copy ..\..\..\gtk\gtkgrid.h $(CopyDir)\include\gtk-3.0\gtk\gtkgrid.h

|
copy ..\..\..\gtk\gtkgrid.h $(CopyDir)\include\gtk-3.0\gtk\gtkgrid.h

|
||||||
copy ..\..\..\gtk\gtkheaderbar.h $(CopyDir)\include\gtk-3.0\gtk\gtkheaderbar.h

|
copy ..\..\..\gtk\gtkheaderbar.h $(CopyDir)\include\gtk-3.0\gtk\gtkheaderbar.h

|
||||||
copy ..\..\..\gtk\gtkicontheme.h $(CopyDir)\include\gtk-3.0\gtk\gtkicontheme.h

|
copy ..\..\..\gtk\gtkicontheme.h $(CopyDir)\include\gtk-3.0\gtk\gtkicontheme.h

|
||||||
@@ -244,7 +238,6 @@ copy ..\..\..\gtk\gtkmenuitem.h $(CopyDir)\include\gtk-3.0\gtk\gtkmenuitem.h�
|
|||||||
copy ..\..\..\gtk\gtkmenushell.h $(CopyDir)\include\gtk-3.0\gtk\gtkmenushell.h

|
copy ..\..\..\gtk\gtkmenushell.h $(CopyDir)\include\gtk-3.0\gtk\gtkmenushell.h

|
||||||
copy ..\..\..\gtk\gtkmenutoolbutton.h $(CopyDir)\include\gtk-3.0\gtk\gtkmenutoolbutton.h

|
copy ..\..\..\gtk\gtkmenutoolbutton.h $(CopyDir)\include\gtk-3.0\gtk\gtkmenutoolbutton.h

|
||||||
copy ..\..\..\gtk\gtkmessagedialog.h $(CopyDir)\include\gtk-3.0\gtk\gtkmessagedialog.h

|
copy ..\..\..\gtk\gtkmessagedialog.h $(CopyDir)\include\gtk-3.0\gtk\gtkmessagedialog.h

|
||||||
copy ..\..\..\gtk\gtkmodelbutton.h $(CopyDir)\include\gtk-3.0\gtk\gtkmodelbutton.h

|
|
||||||
copy ..\..\..\gtk\gtkmodules.h $(CopyDir)\include\gtk-3.0\gtk\gtkmodules.h

|
copy ..\..\..\gtk\gtkmodules.h $(CopyDir)\include\gtk-3.0\gtk\gtkmodules.h

|
||||||
copy ..\..\..\gtk\gtkmountoperation.h $(CopyDir)\include\gtk-3.0\gtk\gtkmountoperation.h

|
copy ..\..\..\gtk\gtkmountoperation.h $(CopyDir)\include\gtk-3.0\gtk\gtkmountoperation.h

|
||||||
copy ..\..\..\gtk\gtknotebook.h $(CopyDir)\include\gtk-3.0\gtk\gtknotebook.h

|
copy ..\..\..\gtk\gtknotebook.h $(CopyDir)\include\gtk-3.0\gtk\gtknotebook.h

|
||||||
@@ -257,7 +250,6 @@ copy ..\..\..\gtk\gtkpapersize.h $(CopyDir)\include\gtk-3.0\gtk\gtkpapersize.h&#
|
|||||||
copy ..\..\..\gtk\gtkplacessidebar.h $(CopyDir)\include\gtk-3.0\gtk\gtkplacessidebar.h

|
copy ..\..\..\gtk\gtkplacessidebar.h $(CopyDir)\include\gtk-3.0\gtk\gtkplacessidebar.h

|
||||||
copy ..\..\..\gtk\gtkplug.h $(CopyDir)\include\gtk-3.0\gtk\gtkplug.h

|
copy ..\..\..\gtk\gtkplug.h $(CopyDir)\include\gtk-3.0\gtk\gtkplug.h

|
||||||
copy ..\..\..\gtk\gtkpopover.h $(CopyDir)\include\gtk-3.0\gtk\gtkpopover.h

|
copy ..\..\..\gtk\gtkpopover.h $(CopyDir)\include\gtk-3.0\gtk\gtkpopover.h

|
||||||
copy ..\..\..\gtk\gtkpopovermenu.h $(CopyDir)\include\gtk-3.0\gtk\gtkpopovermenu.h

|
|
||||||
copy ..\..\..\gtk\gtkprintcontext.h $(CopyDir)\include\gtk-3.0\gtk\gtkprintcontext.h

|
copy ..\..\..\gtk\gtkprintcontext.h $(CopyDir)\include\gtk-3.0\gtk\gtkprintcontext.h

|
||||||
copy ..\..\..\gtk\gtkprintoperation.h $(CopyDir)\include\gtk-3.0\gtk\gtkprintoperation.h

|
copy ..\..\..\gtk\gtkprintoperation.h $(CopyDir)\include\gtk-3.0\gtk\gtkprintoperation.h

|
||||||
copy ..\..\..\gtk\gtkprintoperationpreview.h $(CopyDir)\include\gtk-3.0\gtk\gtkprintoperationpreview.h

|
copy ..\..\..\gtk\gtkprintoperationpreview.h $(CopyDir)\include\gtk-3.0\gtk\gtkprintoperationpreview.h

|
||||||
@@ -273,7 +265,6 @@ copy ..\..\..\gtk\gtkrecentchoosermenu.h $(CopyDir)\include\gtk-3.0\gtk\gtkrecen
|
|||||||
copy ..\..\..\gtk\gtkrecentchooserwidget.h $(CopyDir)\include\gtk-3.0\gtk\gtkrecentchooserwidget.h

|
copy ..\..\..\gtk\gtkrecentchooserwidget.h $(CopyDir)\include\gtk-3.0\gtk\gtkrecentchooserwidget.h

|
||||||
copy ..\..\..\gtk\gtkrecentfilter.h $(CopyDir)\include\gtk-3.0\gtk\gtkrecentfilter.h

|
copy ..\..\..\gtk\gtkrecentfilter.h $(CopyDir)\include\gtk-3.0\gtk\gtkrecentfilter.h

|
||||||
copy ..\..\..\gtk\gtkrecentmanager.h $(CopyDir)\include\gtk-3.0\gtk\gtkrecentmanager.h

|
copy ..\..\..\gtk\gtkrecentmanager.h $(CopyDir)\include\gtk-3.0\gtk\gtkrecentmanager.h

|
||||||
copy ..\..\..\gtk\gtkrender.h $(CopyDir)\include\gtk-3.0\gtk\gtkrender.h

|
|
||||||
copy ..\..\..\gtk\gtkrevealer.h $(CopyDir)\include\gtk-3.0\gtk\gtkrevealer.h

|
copy ..\..\..\gtk\gtkrevealer.h $(CopyDir)\include\gtk-3.0\gtk\gtkrevealer.h

|
||||||
copy ..\..\..\gtk\gtkscale.h $(CopyDir)\include\gtk-3.0\gtk\gtkscale.h

|
copy ..\..\..\gtk\gtkscale.h $(CopyDir)\include\gtk-3.0\gtk\gtkscale.h

|
||||||
copy ..\..\..\gtk\gtkscalebutton.h $(CopyDir)\include\gtk-3.0\gtk\gtkscalebutton.h

|
copy ..\..\..\gtk\gtkscalebutton.h $(CopyDir)\include\gtk-3.0\gtk\gtkscalebutton.h

|
||||||
@@ -288,7 +279,6 @@ copy ..\..\..\gtk\gtkseparatormenuitem.h $(CopyDir)\include\gtk-3.0\gtk\gtksepar
|
|||||||
copy ..\..\..\gtk\gtkseparatortoolitem.h $(CopyDir)\include\gtk-3.0\gtk\gtkseparatortoolitem.h

|
copy ..\..\..\gtk\gtkseparatortoolitem.h $(CopyDir)\include\gtk-3.0\gtk\gtkseparatortoolitem.h

|
||||||
copy ..\..\..\gtk\gtksettings.h $(CopyDir)\include\gtk-3.0\gtk\gtksettings.h

|
copy ..\..\..\gtk\gtksettings.h $(CopyDir)\include\gtk-3.0\gtk\gtksettings.h

|
||||||
copy ..\..\..\gtk\gtkshow.h $(CopyDir)\include\gtk-3.0\gtk\gtkshow.h

|
copy ..\..\..\gtk\gtkshow.h $(CopyDir)\include\gtk-3.0\gtk\gtkshow.h

|
||||||
copy ..\..\..\gtk\gtkstacksidebar.h $(CopyDir)\include\gtk-3.0\gtk\gtkstacksidebar.h

|
|
||||||
copy ..\..\..\gtk\gtksizegroup.h $(CopyDir)\include\gtk-3.0\gtk\gtksizegroup.h

|
copy ..\..\..\gtk\gtksizegroup.h $(CopyDir)\include\gtk-3.0\gtk\gtksizegroup.h

|
||||||
copy ..\..\..\gtk\gtksizerequest.h $(CopyDir)\include\gtk-3.0\gtk\gtksizerequest.h

|
copy ..\..\..\gtk\gtksizerequest.h $(CopyDir)\include\gtk-3.0\gtk\gtksizerequest.h

|
||||||
copy ..\..\..\gtk\gtksocket.h $(CopyDir)\include\gtk-3.0\gtk\gtksocket.h

|
copy ..\..\..\gtk\gtksocket.h $(CopyDir)\include\gtk-3.0\gtk\gtksocket.h

|
||||||
@@ -298,6 +288,7 @@ copy ..\..\..\gtk\gtkstack.h $(CopyDir)\include\gtk-3.0\gtk\gtkstack.h
�
|
|||||||
copy ..\..\..\gtk\gtkstackswitcher.h $(CopyDir)\include\gtk-3.0\gtk\gtkstackswitcher.h

|
copy ..\..\..\gtk\gtkstackswitcher.h $(CopyDir)\include\gtk-3.0\gtk\gtkstackswitcher.h

|
||||||
copy ..\..\..\gtk\gtkstatusbar.h $(CopyDir)\include\gtk-3.0\gtk\gtkstatusbar.h

|
copy ..\..\..\gtk\gtkstatusbar.h $(CopyDir)\include\gtk-3.0\gtk\gtkstatusbar.h

|
||||||
copy ..\..\..\gtk\gtkstylecontext.h $(CopyDir)\include\gtk-3.0\gtk\gtkstylecontext.h

|
copy ..\..\..\gtk\gtkstylecontext.h $(CopyDir)\include\gtk-3.0\gtk\gtkstylecontext.h

|
||||||
|
copy ..\..\..\gtk\gtkstyleproperties.h $(CopyDir)\include\gtk-3.0\gtk\gtkstyleproperties.h

|
||||||
copy ..\..\..\gtk\gtkstyleprovider.h $(CopyDir)\include\gtk-3.0\gtk\gtkstyleprovider.h

|
copy ..\..\..\gtk\gtkstyleprovider.h $(CopyDir)\include\gtk-3.0\gtk\gtkstyleprovider.h

|
||||||
copy ..\..\..\gtk\gtkswitch.h $(CopyDir)\include\gtk-3.0\gtk\gtkswitch.h

|
copy ..\..\..\gtk\gtkswitch.h $(CopyDir)\include\gtk-3.0\gtk\gtkswitch.h

|
||||||
copy ..\..\..\gtk\gtktestutils.h $(CopyDir)\include\gtk-3.0\gtk\gtktestutils.h

|
copy ..\..\..\gtk\gtktestutils.h $(CopyDir)\include\gtk-3.0\gtk\gtktestutils.h

|
||||||
@@ -339,7 +330,6 @@ copy ..\..\..\gtk\gtkwindowgroup.h $(CopyDir)\include\gtk-3.0\gtk\gtkwindowgroup
|
|||||||
copy ..\..\..\gtk\gtktextlayout.h $(CopyDir)\include\gtk-3.0\gtk\gtktextlayout.h

|
copy ..\..\..\gtk\gtktextlayout.h $(CopyDir)\include\gtk-3.0\gtk\gtktextlayout.h

|
||||||
copy ..\..\..\gtk\gtktypebuiltins.h $(CopyDir)\include\gtk-3.0\gtk\gtktypebuiltins.h

|
copy ..\..\..\gtk\gtktypebuiltins.h $(CopyDir)\include\gtk-3.0\gtk\gtktypebuiltins.h

|
||||||
copy ..\..\..\gtk\gtkversion.h $(CopyDir)\include\gtk-3.0\gtk\gtkversion.h

|
copy ..\..\..\gtk\gtkversion.h $(CopyDir)\include\gtk-3.0\gtk\gtkversion.h

|
||||||
copy ..\..\..\gtk\a11y\gtk-a11y-autocleanups.h $(CopyDir)\include\gtk-3.0\gtk\a11y\gtk-a11y-autocleanups.h

|
|
||||||
copy ..\..\..\gtk\a11y\gtkarrowaccessible.h $(CopyDir)\include\gtk-3.0\gtk\a11y\gtkarrowaccessible.h

|
copy ..\..\..\gtk\a11y\gtkarrowaccessible.h $(CopyDir)\include\gtk-3.0\gtk\a11y\gtkarrowaccessible.h

|
||||||
copy ..\..\..\gtk\a11y\gtkbooleancellaccessible.h $(CopyDir)\include\gtk-3.0\gtk\a11y\gtkbooleancellaccessible.h

|
copy ..\..\..\gtk\a11y\gtkbooleancellaccessible.h $(CopyDir)\include\gtk-3.0\gtk\a11y\gtkbooleancellaccessible.h

|
||||||
copy ..\..\..\gtk\a11y\gtkbuttonaccessible.h $(CopyDir)\include\gtk-3.0\gtk\a11y\gtkbuttonaccessible.h

|
copy ..\..\..\gtk\a11y\gtkbuttonaccessible.h $(CopyDir)\include\gtk-3.0\gtk\a11y\gtkbuttonaccessible.h

|
||||||
@@ -417,7 +407,6 @@ copy ..\..\..\gtk\deprecated\gtkrecentaction.h $(CopyDir)\include\gtk-3.0\gtk\de
|
|||||||
copy ..\..\..\gtk\deprecated\gtkstatusicon.h $(CopyDir)\include\gtk-3.0\gtk\deprecated\gtkstatusicon.h

|
copy ..\..\..\gtk\deprecated\gtkstatusicon.h $(CopyDir)\include\gtk-3.0\gtk\deprecated\gtkstatusicon.h

|
||||||
copy ..\..\..\gtk\deprecated\gtkstock.h $(CopyDir)\include\gtk-3.0\gtk\deprecated\gtkstock.h

|
copy ..\..\..\gtk\deprecated\gtkstock.h $(CopyDir)\include\gtk-3.0\gtk\deprecated\gtkstock.h

|
||||||
copy ..\..\..\gtk\deprecated\gtkstyle.h $(CopyDir)\include\gtk-3.0\gtk\deprecated\gtkstyle.h

|
copy ..\..\..\gtk\deprecated\gtkstyle.h $(CopyDir)\include\gtk-3.0\gtk\deprecated\gtkstyle.h

|
||||||
copy ..\..\..\gtk\deprecated\gtkstyleproperties.h $(CopyDir)\include\gtk-3.0\gtk\deprecated\gtkstyleproperties.h

|
|
||||||
copy ..\..\..\gtk\deprecated\gtksymboliccolor.h $(CopyDir)\include\gtk-3.0\gtk\deprecated\gtksymboliccolor.h

|
copy ..\..\..\gtk\deprecated\gtksymboliccolor.h $(CopyDir)\include\gtk-3.0\gtk\deprecated\gtksymboliccolor.h

|
||||||
copy ..\..\..\gtk\deprecated\gtktable.h $(CopyDir)\include\gtk-3.0\gtk\deprecated\gtktable.h

|
copy ..\..\..\gtk\deprecated\gtktable.h $(CopyDir)\include\gtk-3.0\gtk\deprecated\gtktable.h

|
||||||
copy ..\..\..\gtk\deprecated\gtktearoffmenuitem.h $(CopyDir)\include\gtk-3.0\gtk\deprecated\gtktearoffmenuitem.h

|
copy ..\..\..\gtk\deprecated\gtktearoffmenuitem.h $(CopyDir)\include\gtk-3.0\gtk\deprecated\gtktearoffmenuitem.h

|
||||||
|
@@ -217,64 +217,6 @@
|
|||||||
/>
|
/>
|
||||||
</FileConfiguration>
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
<File RelativePath="..\..\..\demos\gtk-demo\demos.h.win32">
|
|
||||||
<FileConfiguration Name="Debug|Win32">
|
|
||||||
<Tool Name="VCCustomBuildTool"
|
|
||||||
Description="Copying demos.h from demos.h.win32..."
|
|
||||||
CommandLine="$(CopyDemosH)"
|
|
||||||
Outputs="..\..\..\demos\gtk-demo\demos.h"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration Name="Debug_Broadway|Win32">
|
|
||||||
<Tool Name="VCCustomBuildTool"
|
|
||||||
Description="Copying demos.h from demos.h.win32..."
|
|
||||||
CommandLine="$(CopyDemosH)"
|
|
||||||
Outputs="..\..\..\demos\gtk-demo\demos.h"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration Name="Release|Win32">
|
|
||||||
<Tool Name="VCCustomBuildTool"
|
|
||||||
Description="Copying demos.h from demos.h.win32..."
|
|
||||||
CommandLine="$(CopyDemosH)"
|
|
||||||
Outputs="..\..\..\demos\gtk-demo\demos.h"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration Name="Release_Broadway|Win32">
|
|
||||||
<Tool Name="VCCustomBuildTool"
|
|
||||||
Description="Copying demos.h from demos.h.win32..."
|
|
||||||
CommandLine="$(CopyDemosH)"
|
|
||||||
Outputs="..\..\..\demos\gtk-demo\demos.h"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration Name="Debug|x64">
|
|
||||||
<Tool Name="VCCustomBuildTool"
|
|
||||||
Description="Copying demos.h from demos.h.win32..."
|
|
||||||
CommandLine="$(CopyDemosH)"
|
|
||||||
Outputs="..\..\..\demos\gtk-demo\demos.h"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration Name="Debug_Broadway|x64">
|
|
||||||
<Tool Name="VCCustomBuildTool"
|
|
||||||
Description="Copying demos.h from demos.h.win32..."
|
|
||||||
CommandLine="$(CopyDemosH)"
|
|
||||||
Outputs="..\..\..\demos\gtk-demo\demos.h"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration Name="Release|x64">
|
|
||||||
<Tool Name="VCCustomBuildTool"
|
|
||||||
Description="Copying demos.h from demos.h.win32..."
|
|
||||||
CommandLine="$(CopyDemosH)"
|
|
||||||
Outputs="..\..\..\demos\gtk-demo\demos.h"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration Name="Release_Broadway|x64">
|
|
||||||
<Tool Name="VCCustomBuildTool"
|
|
||||||
Description="Copying demos.h from demos.h.win32..."
|
|
||||||
CommandLine="$(CopyDemosH)"
|
|
||||||
Outputs="..\..\..\demos\gtk-demo\demos.h"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
</File>
|
|
||||||
</Filter>
|
</Filter>
|
||||||
</Files>
|
</Files>
|
||||||
<Globals>
|
<Globals>
|
||||||
|
@@ -173,7 +173,6 @@
|
|||||||
<File RelativePath="..\..\..\demos\gtk-demo\css_multiplebgs.c" />
|
<File RelativePath="..\..\..\demos\gtk-demo\css_multiplebgs.c" />
|
||||||
<File RelativePath="..\..\..\demos\gtk-demo\css_pixbufs.c" />
|
<File RelativePath="..\..\..\demos\gtk-demo\css_pixbufs.c" />
|
||||||
<File RelativePath="..\..\..\demos\gtk-demo\css_shadows.c" />
|
<File RelativePath="..\..\..\demos\gtk-demo\css_shadows.c" />
|
||||||
<File RelativePath="..\..\..\demos\gtk-demo\cursors.c" />
|
|
||||||
<File RelativePath="..\..\..\demos\gtk-demo\dialog.c" />
|
<File RelativePath="..\..\..\demos\gtk-demo\dialog.c" />
|
||||||
<File RelativePath="..\..\..\demos\gtk-demo\drawingarea.c" />
|
<File RelativePath="..\..\..\demos\gtk-demo\drawingarea.c" />
|
||||||
<File RelativePath="..\..\..\demos\gtk-demo\editable_cells.c" />
|
<File RelativePath="..\..\..\demos\gtk-demo\editable_cells.c" />
|
||||||
@@ -182,7 +181,6 @@
|
|||||||
<File RelativePath="..\..\..\demos\gtk-demo\event_axes.c" />
|
<File RelativePath="..\..\..\demos\gtk-demo\event_axes.c" />
|
||||||
<File RelativePath="..\..\..\demos\gtk-demo\expander.c" />
|
<File RelativePath="..\..\..\demos\gtk-demo\expander.c" />
|
||||||
<File RelativePath="..\..\..\demos\gtk-demo\gestures.c" />
|
<File RelativePath="..\..\..\demos\gtk-demo\gestures.c" />
|
||||||
<File RelativePath="..\..\..\demos\gtk-demo\glarea.c" />
|
|
||||||
<File RelativePath="..\..\..\demos\gtk-demo\headerbar.c" />
|
<File RelativePath="..\..\..\demos\gtk-demo\headerbar.c" />
|
||||||
<File RelativePath="..\..\..\demos\gtk-demo\hypertext.c" />
|
<File RelativePath="..\..\..\demos\gtk-demo\hypertext.c" />
|
||||||
<File RelativePath="..\..\..\demos\gtk-demo\iconview.c" />
|
<File RelativePath="..\..\..\demos\gtk-demo\iconview.c" />
|
||||||
@@ -206,7 +204,6 @@
|
|||||||
<File RelativePath="..\..\..\demos\gtk-demo\rotated_text.c" />
|
<File RelativePath="..\..\..\demos\gtk-demo\rotated_text.c" />
|
||||||
<File RelativePath="..\..\..\demos\gtk-demo\search_entry.c" />
|
<File RelativePath="..\..\..\demos\gtk-demo\search_entry.c" />
|
||||||
<File RelativePath="..\..\..\demos\gtk-demo\search_entry2.c" />
|
<File RelativePath="..\..\..\demos\gtk-demo\search_entry2.c" />
|
||||||
<File RelativePath="..\..\..\demos\gtk-demo\sidebar.c" />
|
|
||||||
<File RelativePath="..\..\..\demos\gtk-demo\sizegroup.c" />
|
<File RelativePath="..\..\..\demos\gtk-demo\sizegroup.c" />
|
||||||
<File RelativePath="..\..\..\demos\gtk-demo\spinner.c" />
|
<File RelativePath="..\..\..\demos\gtk-demo\spinner.c" />
|
||||||
<File RelativePath="..\..\..\demos\gtk-demo\stack.c" />
|
<File RelativePath="..\..\..\demos\gtk-demo\stack.c" />
|
||||||
|
@@ -158,7 +158,6 @@
|
|||||||
>
|
>
|
||||||
<File RelativePath="..\..\..\demos\icon-browser\iconbrowserapp.c" />
|
<File RelativePath="..\..\..\demos\icon-browser\iconbrowserapp.c" />
|
||||||
<File RelativePath="..\..\..\demos\icon-browser\iconbrowserwin.c" />
|
<File RelativePath="..\..\..\demos\icon-browser\iconbrowserwin.c" />
|
||||||
<File RelativePath="..\..\..\demos\icon-browser\iconstore.c" />
|
|
||||||
<File RelativePath="..\..\..\demos\icon-browser\main.c" />
|
<File RelativePath="..\..\..\demos\icon-browser\main.c" />
|
||||||
<File RelativePath="..\..\..\demos\icon-browser\resources.c" />
|
<File RelativePath="..\..\..\demos\icon-browser\resources.c" />
|
||||||
</Filter>
|
</Filter>
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
<VisualStudioProject
|
<VisualStudioProject
|
||||||
ProjectType="Visual C++"
|
ProjectType="Visual C++"
|
||||||
Version="9.00"
|
Version="9.00"
|
||||||
Name="gtk-install"
|
Name="install"
|
||||||
ProjectGUID="{2093D218-190E-4194-9421-3BA7CBF33B15}"
|
ProjectGUID="{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}"
|
||||||
RootNamespace="gtkinstall"
|
RootNamespace="install"
|
||||||
Keyword="Win32Proj"
|
Keyword="Win32Proj"
|
||||||
TargetFrameworkVersion="131072"
|
TargetFrameworkVersion="131072"
|
||||||
>
|
>
|
@@ -23,6 +23,9 @@
|
|||||||
/* Define to 1 if you have the `bind_textdomain_codeset' function. */
|
/* Define to 1 if you have the `bind_textdomain_codeset' function. */
|
||||||
#define HAVE_BIND_TEXTDOMAIN_CODESET 1
|
#define HAVE_BIND_TEXTDOMAIN_CODESET 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `cairo_surface_set_device_scale' function. */
|
||||||
|
/* #undef HAVE_CAIRO_SURFACE_SET_DEVICE_SCALE */
|
||||||
|
|
||||||
/* define if we have colord */
|
/* define if we have colord */
|
||||||
/* #undef HAVE_COLORD */
|
/* #undef HAVE_COLORD */
|
||||||
|
|
||||||
@@ -141,9 +144,6 @@
|
|||||||
#define HAVE_ROUND 1
|
#define HAVE_ROUND 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Define to 1 if sincos() is available */
|
|
||||||
/* #undef HAVE_SINCOS */
|
|
||||||
|
|
||||||
/* Have the sockaddr_un.sun_len member */
|
/* Have the sockaddr_un.sun_len member */
|
||||||
/* #undef HAVE_SOCKADDR_UN_SUN_LEN */
|
/* #undef HAVE_SOCKADDR_UN_SUN_LEN */
|
||||||
|
|
||||||
|
267
configure.ac
@@ -9,9 +9,9 @@
|
|||||||
# set GTK_BINARY_AGE and GTK_INTERFACE_AGE to 0.
|
# set GTK_BINARY_AGE and GTK_INTERFACE_AGE to 0.
|
||||||
|
|
||||||
m4_define([gtk_major_version], [3])
|
m4_define([gtk_major_version], [3])
|
||||||
m4_define([gtk_minor_version], [17])
|
m4_define([gtk_minor_version], [14])
|
||||||
m4_define([gtk_micro_version], [5])
|
m4_define([gtk_micro_version], [10])
|
||||||
m4_define([gtk_interface_age], [0])
|
m4_define([gtk_interface_age], [10])
|
||||||
m4_define([gtk_binary_age],
|
m4_define([gtk_binary_age],
|
||||||
[m4_eval(100 * gtk_minor_version + gtk_micro_version)])
|
[m4_eval(100 * gtk_minor_version + gtk_micro_version)])
|
||||||
m4_define([gtk_version],
|
m4_define([gtk_version],
|
||||||
@@ -41,27 +41,13 @@ AC_CANONICAL_HOST
|
|||||||
m4_define([gtk_binary_version], [3.0.0])
|
m4_define([gtk_binary_version], [3.0.0])
|
||||||
|
|
||||||
# required versions of other packages
|
# required versions of other packages
|
||||||
m4_define([glib_required_major], [2])
|
m4_define([glib_required_version], [2.41.2])
|
||||||
m4_define([glib_required_minor], [43])
|
m4_define([pango_required_version], [1.36.7])
|
||||||
m4_define([glib_required_micro], [3])
|
m4_define([atk_required_version], [2.12.0])
|
||||||
m4_define([glib_required_version],
|
m4_define([cairo_required_version], [1.12.0])
|
||||||
[glib_required_major.glib_required_minor.glib_required_micro])
|
|
||||||
m4_define([glib_min_required_minor],
|
|
||||||
[m4_eval(glib_required_minor - (glib_required_minor % 2))])
|
|
||||||
m4_define([glib_max_allowed_minor],
|
|
||||||
[m4_eval(glib_required_minor + (glib_required_minor % 2))])
|
|
||||||
m4_define([glib_min_required_version], m4_join([_], [GLIB_VERSION], glib_required_major, glib_min_required_minor))
|
|
||||||
m4_define([glib_max_allowed_version], m4_join([_], [GLIB_VERSION], glib_required_major, glib_max_allowed_minor))
|
|
||||||
GLIB_VERSION_CFLAGS="-DGLIB_MIN_REQUIRED_VERSION=glib_min_required_version -DGLIB_MAX_ALLOWED_VERSION=glib_max_allowed_version"
|
|
||||||
|
|
||||||
m4_define([pango_required_version], [1.37.1])
|
|
||||||
m4_define([atk_required_version], [2.15.1])
|
|
||||||
m4_define([cairo_required_version], [1.14.0])
|
|
||||||
m4_define([gdk_pixbuf_required_version], [2.30.0])
|
m4_define([gdk_pixbuf_required_version], [2.30.0])
|
||||||
m4_define([introspection_required_version], [1.39.0])
|
m4_define([introspection_required_version], [1.39.0])
|
||||||
m4_define([wayland_required_version], [1.5.91])
|
m4_define([wayland_required_version], [1.5.91])
|
||||||
m4_define([mirclient_required_version], [0.11.0])
|
|
||||||
m4_define([epoxy_required_version], [1.0])
|
|
||||||
GLIB_REQUIRED_VERSION=glib_required_version
|
GLIB_REQUIRED_VERSION=glib_required_version
|
||||||
PANGO_REQUIRED_VERSION=pango_required_version
|
PANGO_REQUIRED_VERSION=pango_required_version
|
||||||
ATK_REQUIRED_VERSION=atk_required_version
|
ATK_REQUIRED_VERSION=atk_required_version
|
||||||
@@ -159,6 +145,7 @@ AC_PROG_MKDIR_P
|
|||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
AC_PROG_MAKE_SET
|
AC_PROG_MAKE_SET
|
||||||
|
|
||||||
|
|
||||||
GETTEXT_PACKAGE=gtk30
|
GETTEXT_PACKAGE=gtk30
|
||||||
AC_SUBST(GETTEXT_PACKAGE)
|
AC_SUBST(GETTEXT_PACKAGE)
|
||||||
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
|
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
|
||||||
@@ -290,6 +277,13 @@ AC_ARG_ENABLE(installed_tests,
|
|||||||
[enable_installed_tests=no])
|
[enable_installed_tests=no])
|
||||||
AM_CONDITIONAL(BUILDOPT_INSTALL_TESTS, test x$enable_installed_tests = xyes)
|
AM_CONDITIONAL(BUILDOPT_INSTALL_TESTS, test x$enable_installed_tests = xyes)
|
||||||
|
|
||||||
|
AC_ARG_ENABLE(gtk2-dependency,
|
||||||
|
[AS_HELP_STRING([--enable-gtk2-dependency],
|
||||||
|
[Do not build gtk-update-icon-cache and other shared tools])],,
|
||||||
|
[enable_gtk2_dependency=no])
|
||||||
|
|
||||||
|
AM_CONDITIONAL(BUILD_ICON_CACHE, [test "x$enable_gtk2_dependency" = xno])
|
||||||
|
|
||||||
AC_ARG_ENABLE(xkb,
|
AC_ARG_ENABLE(xkb,
|
||||||
[AS_HELP_STRING([--enable-xkb],
|
[AS_HELP_STRING([--enable-xkb],
|
||||||
[support XKB extension [default=maybe]])],,
|
[support XKB extension [default=maybe]])],,
|
||||||
@@ -335,10 +329,6 @@ AC_ARG_ENABLE(wayland-backend,
|
|||||||
[AS_HELP_STRING([--enable-wayland-backend],
|
[AS_HELP_STRING([--enable-wayland-backend],
|
||||||
[enable the wayland gdk backend])],
|
[enable the wayland gdk backend])],
|
||||||
[backend_set=yes])
|
[backend_set=yes])
|
||||||
AC_ARG_ENABLE(mir-backend,
|
|
||||||
[AS_HELP_STRING([--enable-mir-backend],
|
|
||||||
[enable the Mir gdk backend])],
|
|
||||||
[backend_set=yes])
|
|
||||||
|
|
||||||
if test -z "$backend_set"; then
|
if test -z "$backend_set"; then
|
||||||
if test "$platform_win32" = yes; then
|
if test "$platform_win32" = yes; then
|
||||||
@@ -346,7 +336,6 @@ if test -z "$backend_set"; then
|
|||||||
else
|
else
|
||||||
enable_x11_backend=yes
|
enable_x11_backend=yes
|
||||||
enable_wayland_backend=maybe
|
enable_wayland_backend=maybe
|
||||||
enable_mir_backend=no
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -360,7 +349,7 @@ backend_immodules=
|
|||||||
have_gio_unix=no
|
have_gio_unix=no
|
||||||
GDK_BACKENDS=
|
GDK_BACKENDS=
|
||||||
GDK_EXTRA_LIBS=
|
GDK_EXTRA_LIBS=
|
||||||
GDK_EXTRA_CFLAGS="$GLIB_VERSION_CFLAGS"
|
GDK_EXTRA_CFLAGS=
|
||||||
GDK_WINDOWING=
|
GDK_WINDOWING=
|
||||||
PANGO_PACKAGES="pango pangocairo"
|
PANGO_PACKAGES="pango pangocairo"
|
||||||
|
|
||||||
@@ -370,6 +359,9 @@ if test "$enable_x11_backend" = "yes"; then
|
|||||||
# backend names are identical.
|
# backend names are identical.
|
||||||
cairo_backends="$cairo_backends cairo-xlib"
|
cairo_backends="$cairo_backends cairo-xlib"
|
||||||
GDK_BACKENDS="$GDK_BACKENDS x11"
|
GDK_BACKENDS="$GDK_BACKENDS x11"
|
||||||
|
# Pull in gio-unix for GDesktopAppInfo usage, see at least
|
||||||
|
# gdkapplaunchcontext-x11.c
|
||||||
|
have_gio_unix=yes
|
||||||
backend_immodules="$backend_immodules,xim"
|
backend_immodules="$backend_immodules,xim"
|
||||||
GDK_WINDOWING="$GDK_WINDOWING
|
GDK_WINDOWING="$GDK_WINDOWING
|
||||||
#define GDK_WINDOWING_X11"
|
#define GDK_WINDOWING_X11"
|
||||||
@@ -383,7 +375,7 @@ if test "$enable_win32_backend" = "yes"; then
|
|||||||
backend_immodules="$backend_immodules,ime"
|
backend_immodules="$backend_immodules,ime"
|
||||||
GDK_WINDOWING="$GDK_WINDOWING
|
GDK_WINDOWING="$GDK_WINDOWING
|
||||||
#define GDK_WINDOWING_WIN32"
|
#define GDK_WINDOWING_WIN32"
|
||||||
GDK_EXTRA_LIBS="$GDK_EXTRA_LIBS -lgdi32 -limm32 -lshell32 -lole32 -Wl,-luuid -lwinmm -ldwmapi"
|
GDK_EXTRA_LIBS="$GDK_EXTRA_LIBS -lgdi32 -limm32 -lshell32 -lole32 -Wl,-luuid -lwinmm"
|
||||||
AM_CONDITIONAL(USE_WIN32, true)
|
AM_CONDITIONAL(USE_WIN32, true)
|
||||||
PANGO_PACKAGES="pangowin32 pangocairo"
|
PANGO_PACKAGES="pangowin32 pangocairo"
|
||||||
else
|
else
|
||||||
@@ -403,6 +395,10 @@ if test "x$enable_quartz_backend" = xyes; then
|
|||||||
if test "x$quartz_relocation" = xyes; then
|
if test "x$quartz_relocation" = xyes; then
|
||||||
AC_DEFINE([QUARTZ_RELOCATION], [1], [Use NSBundle functions to determine load paths for libraries, translations, etc.])
|
AC_DEFINE([QUARTZ_RELOCATION], [1], [Use NSBundle functions to determine load paths for libraries, translations, etc.])
|
||||||
fi
|
fi
|
||||||
|
# Pull in gio-unix for GDesktopAppInfo usage, see at least
|
||||||
|
# gdkapplaunchcontext-x11.c
|
||||||
|
have_gio_unix=yes
|
||||||
|
|
||||||
else
|
else
|
||||||
AM_CONDITIONAL(USE_QUARTZ, false)
|
AM_CONDITIONAL(USE_QUARTZ, false)
|
||||||
fi
|
fi
|
||||||
@@ -417,6 +413,9 @@ if test "x$enable_broadway_backend" = xyes; then
|
|||||||
GDK_BACKENDS="$GDK_BACKENDS broadway"
|
GDK_BACKENDS="$GDK_BACKENDS broadway"
|
||||||
cairo_backends="$cairo_backends cairo"
|
cairo_backends="$cairo_backends cairo"
|
||||||
backend_immodules="$backend_immodules,broadway"
|
backend_immodules="$backend_immodules,broadway"
|
||||||
|
if test "$os_win32" != "yes"; then
|
||||||
|
have_gio_unix=yes
|
||||||
|
fi
|
||||||
GDK_WINDOWING="$GDK_WINDOWING
|
GDK_WINDOWING="$GDK_WINDOWING
|
||||||
#define GDK_WINDOWING_BROADWAY"
|
#define GDK_WINDOWING_BROADWAY"
|
||||||
GDK_EXTRA_LIBS="$GDK_EXTRA_LIBS -lz"
|
GDK_EXTRA_LIBS="$GDK_EXTRA_LIBS -lz"
|
||||||
@@ -427,7 +426,7 @@ fi
|
|||||||
|
|
||||||
PKG_PROG_PKG_CONFIG
|
PKG_PROG_PKG_CONFIG
|
||||||
|
|
||||||
WAYLAND_DEPENDENCIES="wayland-client >= wayland_required_version xkbcommon >= 0.2.0 wayland-cursor >= wayland_required_version wayland-egl"
|
WAYLAND_DEPENDENCIES="wayland-client >= wayland_required_version xkbcommon >= 0.2.0 wayland-cursor >= wayland_required_version"
|
||||||
if test "$enable_wayland_backend" = "maybe" ; then
|
if test "$enable_wayland_backend" = "maybe" ; then
|
||||||
AC_PATH_PROG([WAYLAND_SCANNER],[wayland-scanner],[no])
|
AC_PATH_PROG([WAYLAND_SCANNER],[wayland-scanner],[no])
|
||||||
PKG_CHECK_EXISTS($WAYLAND_DEPENDENCIES, [have_wayland_deps=yes], [have_wayland_deps=no])
|
PKG_CHECK_EXISTS($WAYLAND_DEPENDENCIES, [have_wayland_deps=yes], [have_wayland_deps=no])
|
||||||
@@ -444,6 +443,7 @@ if test "$enable_wayland_backend" = "yes"; then
|
|||||||
# For the cairo image backend
|
# For the cairo image backend
|
||||||
cairo_backends="$cairo_backends cairo"
|
cairo_backends="$cairo_backends cairo"
|
||||||
GDK_BACKENDS="$GDK_BACKENDS wayland"
|
GDK_BACKENDS="$GDK_BACKENDS wayland"
|
||||||
|
have_gio_unix=yes
|
||||||
GDK_WINDOWING="$GDK_WINDOWING
|
GDK_WINDOWING="$GDK_WINDOWING
|
||||||
#define GDK_WINDOWING_WAYLAND"
|
#define GDK_WINDOWING_WAYLAND"
|
||||||
WAYLAND_PACKAGES="$WAYLAND_DEPENDENCIES"
|
WAYLAND_PACKAGES="$WAYLAND_DEPENDENCIES"
|
||||||
@@ -457,30 +457,6 @@ else
|
|||||||
AM_CONDITIONAL(USE_WAYLAND, false)
|
AM_CONDITIONAL(USE_WAYLAND, false)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
MIR_DEPENDENCIES="mirclient >= mirclient_required_version"
|
|
||||||
if test "$enable_mir_backend" = "maybe" ; then
|
|
||||||
PKG_CHECK_EXISTS($MIR_DEPENDENCIES, [have_mir_deps=yes], [have_mir_deps=no])
|
|
||||||
AC_MSG_CHECKING([for MIR_DEPENDENCIES])
|
|
||||||
if test "$have_mir_deps" = "no" ; then
|
|
||||||
enable_mir_backend=no
|
|
||||||
else
|
|
||||||
enable_mir_backend=yes
|
|
||||||
fi
|
|
||||||
AC_MSG_RESULT($enable_mir_backend)
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$enable_mir_backend" = "yes"; then
|
|
||||||
cairo_backends="$cairo_backends cairo"
|
|
||||||
GDK_BACKENDS="$GDK_BACKENDS mir"
|
|
||||||
GDK_WINDOWING="$GDK_WINDOWING
|
|
||||||
#define GDK_WINDOWING_MIR"
|
|
||||||
MIR_PACKAGES="$MIR_DEPENDENCIES"
|
|
||||||
|
|
||||||
AM_CONDITIONAL(USE_MIR, true)
|
|
||||||
else
|
|
||||||
AM_CONDITIONAL(USE_MIR, false)
|
|
||||||
fi
|
|
||||||
|
|
||||||
# strip leading space
|
# strip leading space
|
||||||
GDK_BACKENDS=${GDK_BACKENDS#* }
|
GDK_BACKENDS=${GDK_BACKENDS#* }
|
||||||
|
|
||||||
@@ -576,21 +552,6 @@ PKG_CHECK_MODULES(BASE_DEPENDENCIES,
|
|||||||
|
|
||||||
PKG_CHECK_MODULES(CAIRO_BACKEND, [$cairo_backends])
|
PKG_CHECK_MODULES(CAIRO_BACKEND, [$cairo_backends])
|
||||||
|
|
||||||
# Remove this check once cairo_required_version reaches at least 1.14.4
|
|
||||||
case $host_os in
|
|
||||||
mingw*)
|
|
||||||
PKG_CHECK_MODULES(CAIRO, [cairo >= cairo_required_version])
|
|
||||||
AC_CHECK_LIB([cairo], [cairo_win32_surface_create_with_format],
|
|
||||||
[AC_MSG_RESULT([found])],
|
|
||||||
[AC_MSG_ERROR(
|
|
||||||
[cairo_win32_surface_create_with_format is not found in cairo library
|
|
||||||
You need cairo version newer than 2015-04-14])])
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
|
|
||||||
PKG_CHECK_MODULES(GMODULE, [gmodule-2.0])
|
PKG_CHECK_MODULES(GMODULE, [gmodule-2.0])
|
||||||
|
|
||||||
dnl ******************************************************
|
dnl ******************************************************
|
||||||
@@ -681,15 +642,6 @@ fi
|
|||||||
# i18n stuff
|
# i18n stuff
|
||||||
ALL_LINGUAS="`grep -v '^#' "$srcdir/po/LINGUAS" | tr '\n' ' '`"
|
ALL_LINGUAS="`grep -v '^#' "$srcdir/po/LINGUAS" | tr '\n' ' '`"
|
||||||
AM_GLIB_GNU_GETTEXT
|
AM_GLIB_GNU_GETTEXT
|
||||||
|
|
||||||
AC_MSG_CHECKING([whether xgettext supports ui files])
|
|
||||||
if $ac_cv_path_XGETTEXT --output=- --color=no --language=Glade $srcdir/gtk/ui/gtkfilechooserwidget.ui > /dev/null 2>&1; then
|
|
||||||
AC_MSG_RESULT([yes])
|
|
||||||
else
|
|
||||||
AC_MSG_RESULT([no])
|
|
||||||
AC_MSG_ERROR([GNU gettext 0.18.3 or newer is required])
|
|
||||||
fi
|
|
||||||
|
|
||||||
LIBS="$LIBS $INTLLIBS"
|
LIBS="$LIBS $INTLLIBS"
|
||||||
AC_CONFIG_COMMANDS([po-properties],
|
AC_CONFIG_COMMANDS([po-properties],
|
||||||
[[case "$CONFIG_FILES" in *po-properties/Makefile.in*)
|
[[case "$CONFIG_FILES" in *po-properties/Makefile.in*)
|
||||||
@@ -842,7 +794,7 @@ AC_TYPE_UID_T
|
|||||||
|
|
||||||
# Check for round(), rint(), isnan(), isinf() and nearbyint()
|
# Check for round(), rint(), isnan(), isinf() and nearbyint()
|
||||||
AC_CHECK_LIB(m,round,,)
|
AC_CHECK_LIB(m,round,,)
|
||||||
AC_CHECK_FUNCS(round rint nearbyint sincos)
|
AC_CHECK_FUNCS(round rint nearbyint)
|
||||||
AC_CHECK_DECLS([isnan, isinf], [], [], [[#include <math.h>]])
|
AC_CHECK_DECLS([isnan, isinf], [], [], [[#include <math.h>]])
|
||||||
|
|
||||||
# Checks for gdkspawn
|
# Checks for gdkspawn
|
||||||
@@ -976,6 +928,44 @@ dnl Look for a host system's gdk-pixbuf-csource if we are cross-compiling
|
|||||||
|
|
||||||
AM_CONDITIONAL(CROSS_COMPILING, test $cross_compiling = yes)
|
AM_CONDITIONAL(CROSS_COMPILING, test $cross_compiling = yes)
|
||||||
|
|
||||||
|
AS_IF([test "x$enable_gtk2_dependency" = xyes],
|
||||||
|
[AC_PATH_PROG(GTK_UPDATE_ICON_CACHE, gtk-update-icon-cache, no)
|
||||||
|
if test x$GTK_UPDATE_ICON_CACHE = xno; then
|
||||||
|
AC_MSG_ERROR([
|
||||||
|
*** --enable-gtk2-dependency has been set but no existing
|
||||||
|
*** `gtk-update-icon-cache` has been found in the path.])
|
||||||
|
fi],
|
||||||
|
|
||||||
|
[test "x$cross_compiling" = xyes],
|
||||||
|
[# If no GTK+2 dependency and cross compiling, we need to find a host gdk-pixbuf.
|
||||||
|
# pkg.m4 blocks all variable starting with PKG, so allow this one
|
||||||
|
m4_pattern_allow([PKG_CONFIG_FOR_BUILD])
|
||||||
|
|
||||||
|
AS_IF([test x$PKG_CONFIG_FOR_BUILD = x],
|
||||||
|
[AC_MSG_ERROR([You must define PKG_CONFIG_FOR_BUILD when cross compiling])])
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([for native gdk-pixbuf])
|
||||||
|
AS_IF([AC_RUN_LOG([$PKG_CONFIG_FOR_BUILD --exists --print-errors gdk-pixbuf-2.0])],
|
||||||
|
[AC_MSG_RESULT([yes])],
|
||||||
|
[AC_MSG_ERROR([native gdk-pixbuf not found])])
|
||||||
|
|
||||||
|
NATIVE_GDKPIXBUF_CFLAGS=`$PKG_CONFIG_FOR_BUILD --cflags gdk-pixbuf-2.0`
|
||||||
|
NATIVE_GDKPIXBUF_LIBS=`$PKG_CONFIG_FOR_BUILD --libs gdk-pixbuf-2.0`
|
||||||
|
# This is the native gtk-update-icon-cache which will be used at
|
||||||
|
# build time, NOT the one installed on the target host.
|
||||||
|
GTK_UPDATE_ICON_CACHE="`cd $builddir && pwd`/gtk/native/native-update-icon-cache$BUILD_EXEEXT"
|
||||||
|
AC_SUBST(NATIVE_GDKPIXBUF_CFLAGS)
|
||||||
|
AC_SUBST(NATIVE_GDKPIXBUF_LIBS)
|
||||||
|
AC_SUBST(GTK_UPDATE_ICON_CACHE)],
|
||||||
|
|
||||||
|
[# In native compiling case, the gtk-update-icon-cache installed
|
||||||
|
# is the same as the one used during build.
|
||||||
|
GTK_UPDATE_ICON_CACHE="\$(abs_top_builddir)/gtk/gtk-update-icon-cache$EXEEXT"
|
||||||
|
AC_SUBST(GTK_UPDATE_ICON_CACHE)]
|
||||||
|
)
|
||||||
|
|
||||||
|
AM_CONDITIONAL(USE_EXTERNAL_ICON_CACHE, [test "x$enable_gtk2_dependency" = xyes])
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
# Windowing system checks
|
# Windowing system checks
|
||||||
########################################
|
########################################
|
||||||
@@ -1047,16 +1037,22 @@ if test "x$enable_x11_backend" = xyes; then
|
|||||||
AC_CHECK_FUNC(XextFindDisplay, :,
|
AC_CHECK_FUNC(XextFindDisplay, :,
|
||||||
AC_MSG_ERROR([*** libX11 and libXext not found. Check 'config.log' for more details.]))
|
AC_MSG_ERROR([*** libX11 and libXext not found. Check 'config.log' for more details.]))
|
||||||
|
|
||||||
# Check if <X11/extensions/XIproto.h> is needed for xReply.
|
# Check for xReply
|
||||||
|
|
||||||
AC_CHECK_TYPE([xReply], ,
|
AC_MSG_CHECKING([if <X11/extensions/XIproto.h> is needed for xReply])
|
||||||
[AC_CHECK_TYPE([xReply],
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/Xlibint.h>]],
|
||||||
[AC_DEFINE([NEED_XIPROTO_H_FOR_XREPLY], 1,
|
[[xReply *rep = NULL;
|
||||||
[Define if <X11/extensions/XIproto.h> needed for xReply])],
|
rep = rep;]])],
|
||||||
[AC_MSG_ERROR([xReply type unavailable. X11 is too old])],
|
[AC_MSG_RESULT([no])],
|
||||||
[[#include <X11/extensions/XIproto.h>
|
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/extensions/XIproto.h>
|
||||||
#include <X11/Xlibint.h>]])],
|
#include <X11/Xlibint.h>]],
|
||||||
[[#include <X11/Xlibint.h>]])
|
[[xReply *rep = NULL;
|
||||||
|
rep = rep;]])],
|
||||||
|
[AC_MSG_RESULT([yes])
|
||||||
|
AC_DEFINE([NEED_XIPROTO_H_FOR_XREPLY], [1],
|
||||||
|
[Define if <X11/extensions/XIproto.h> needed for xReply])],
|
||||||
|
[AC_MSG_RESULT([unknown])
|
||||||
|
AC_MSG_ERROR([xReply type unavailable. X11 is too old])])])
|
||||||
|
|
||||||
# Check for XKB support.
|
# Check for XKB support.
|
||||||
|
|
||||||
@@ -1196,9 +1192,6 @@ if test "x$enable_x11_backend" = xyes; then
|
|||||||
if $PKG_CONFIG --exists "xrandr >= 1.2.99" ; then
|
if $PKG_CONFIG --exists "xrandr >= 1.2.99" ; then
|
||||||
AC_DEFINE(HAVE_RANDR, 1, [Have the Xrandr extension library])
|
AC_DEFINE(HAVE_RANDR, 1, [Have the Xrandr extension library])
|
||||||
|
|
||||||
if $PKG_CONFIG --exists "xrandr >= 1.5.0" ; then
|
|
||||||
AC_DEFINE(HAVE_RANDR15, 1, [Have the Xrandr 1.5 extension library])
|
|
||||||
fi
|
|
||||||
X_PACKAGES="$X_PACKAGES xrandr"
|
X_PACKAGES="$X_PACKAGES xrandr"
|
||||||
X_EXTENSIONS="$X_EXTENSIONS XRANDR"
|
X_EXTENSIONS="$X_EXTENSIONS XRANDR"
|
||||||
elif test x"$enable_xrandr" = xyes; then
|
elif test x"$enable_xrandr" = xyes; then
|
||||||
@@ -1277,11 +1270,6 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Check for gio-unix
|
# Check for gio-unix
|
||||||
if test "$os_win32" != "yes"; then
|
|
||||||
# Pull in gio-unix for gtk-launch usage, see at least
|
|
||||||
# gtk-launch.c
|
|
||||||
have_gio_unix=yes
|
|
||||||
fi
|
|
||||||
if test "$have_gio_unix" = "yes"; then
|
if test "$have_gio_unix" = "yes"; then
|
||||||
GDK_GIO_PACKAGE="gio-unix-2.0 >= glib_required_version"
|
GDK_GIO_PACKAGE="gio-unix-2.0 >= glib_required_version"
|
||||||
AC_DEFINE([HAVE_GIO_UNIX], [1],
|
AC_DEFINE([HAVE_GIO_UNIX], [1],
|
||||||
@@ -1318,11 +1306,25 @@ else
|
|||||||
LIBS="$gtk_save_LIBS"
|
LIBS="$gtk_save_LIBS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check for cairo_set_device_scale, as we don't want to depend hard on
|
||||||
|
# this until there is a stable release with it
|
||||||
|
CAIRO_CFLAGS=`$PKG_CONFIG --cflags cairo`
|
||||||
|
CAIRO_LIBS=`$PKG_CONFIG --libs cairo`
|
||||||
|
CFLAGS="$CFLAGS $CAIRO_CFLAGS"
|
||||||
|
gtk_save_LIBS="$LIBS"
|
||||||
|
LIBS="$CAIRO_LIBS $LIBS"
|
||||||
|
AC_CHECK_FUNCS(cairo_surface_set_device_scale)
|
||||||
|
LIBS="$gtk_save_LIBS"
|
||||||
|
|
||||||
|
|
||||||
CFLAGS="$saved_cflags"
|
CFLAGS="$saved_cflags"
|
||||||
LDFLAGS="$saved_ldflags"
|
LDFLAGS="$saved_ldflags"
|
||||||
|
|
||||||
GDK_PACKAGES="$PANGO_PACKAGES gdk-pixbuf-2.0 >= gdk_pixbuf_required_version cairo >= cairo_required_version cairo-gobject >= cairo_required_version"
|
GDK_PACKAGES="$PANGO_PACKAGES gdk-pixbuf-2.0 >= gdk_pixbuf_required_version cairo >= cairo_required_version cairo-gobject >= cairo_required_version"
|
||||||
GDK_PRIVATE_PACKAGES="$GDK_GIO_PACKAGE $X_PACKAGES $WAYLAND_PACKAGES $MIR_PACKAGES $cairo_backends epoxy >= epoxy_required_version"
|
GDK_PRIVATE_PACKAGES="$GDK_GIO_PACKAGE $X_PACKAGES $WAYLAND_PACKAGES $cairo_backends"
|
||||||
|
if test "x$enable_x11_backend" = xyes; then
|
||||||
|
GDK_PRIVATE_PACKAGES="$GDK_PRIVATE_PACKAGES pangoft2"
|
||||||
|
fi
|
||||||
|
|
||||||
PKG_CHECK_MODULES(GDK_DEP, $GDK_PACKAGES $GDK_PRIVATE_PACKAGES)
|
PKG_CHECK_MODULES(GDK_DEP, $GDK_PACKAGES $GDK_PRIVATE_PACKAGES)
|
||||||
GDK_DEP_LIBS="$GDK_EXTRA_LIBS $GDK_DEP_LIBS $MATH_LIB"
|
GDK_DEP_LIBS="$GDK_EXTRA_LIBS $GDK_DEP_LIBS $MATH_LIB"
|
||||||
@@ -1356,8 +1358,8 @@ fi
|
|||||||
PKG_CHECK_MODULES(ATK, $ATK_PACKAGES)
|
PKG_CHECK_MODULES(ATK, $ATK_PACKAGES)
|
||||||
|
|
||||||
GTK_PACKAGES="atk >= atk_required_version cairo >= cairo_required_version cairo-gobject >= cairo_required_version gdk-pixbuf-2.0 >= gdk_pixbuf_required_version gio-2.0 >= glib_required_version"
|
GTK_PACKAGES="atk >= atk_required_version cairo >= cairo_required_version cairo-gobject >= cairo_required_version gdk-pixbuf-2.0 >= gdk_pixbuf_required_version gio-2.0 >= glib_required_version"
|
||||||
GTK_PRIVATE_PACKAGES="$ATK_PACKAGES $WAYLAND_PACKAGES $MIR_PACKAGES epoxy >= epoxy_required_version"
|
GTK_PRIVATE_PACKAGES="$ATK_PACKAGES"
|
||||||
if test "x$enable_x11_backend" = xyes -o "x$enable_wayland_backend" = xyes; then
|
if test "x$enable_x11_backend" = xyes; then
|
||||||
GTK_PRIVATE_PACKAGES="$GTK_PRIVATE_PACKAGES pangoft2"
|
GTK_PRIVATE_PACKAGES="$GTK_PRIVATE_PACKAGES pangoft2"
|
||||||
fi
|
fi
|
||||||
if test "$have_gio_unix" = "yes"; then
|
if test "$have_gio_unix" = "yes"; then
|
||||||
@@ -1479,7 +1481,6 @@ else
|
|||||||
|
|
||||||
PRINT_BACKENDS="$PRINT_BACKENDS cups"
|
PRINT_BACKENDS="$PRINT_BACKENDS cups"
|
||||||
AM_CONDITIONAL(HAVE_CUPS, true)
|
AM_CONDITIONAL(HAVE_CUPS, true)
|
||||||
have_cups=yes
|
|
||||||
|
|
||||||
gtk_save_cflags="$CFLAGS"
|
gtk_save_cflags="$CFLAGS"
|
||||||
CFLAGS="$CUPS_CFLAGS"
|
CFLAGS="$CUPS_CFLAGS"
|
||||||
@@ -1539,9 +1540,8 @@ else
|
|||||||
PKG_CHECK_MODULES(JSON_GLIB, [json-glib-1.0], have_json_glib=yes, have_json_glib=no)
|
PKG_CHECK_MODULES(JSON_GLIB, [json-glib-1.0], have_json_glib=yes, have_json_glib=no)
|
||||||
if test "x$have_rest" = "xyes" -a "x$have_json_glib" = "xyes"; then
|
if test "x$have_rest" = "xyes" -a "x$have_json_glib" = "xyes"; then
|
||||||
PRINT_BACKENDS="$PRINT_BACKENDS cloudprint"
|
PRINT_BACKENDS="$PRINT_BACKENDS cloudprint"
|
||||||
have_cloudprint=yes
|
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL(HAVE_CLOUDPRINT, test "x$have_cloudprint" = "xyes")
|
AM_CONDITIONAL(HAVE_CLOUDPRINT, test "x$have_rest" = "xyes" -a "x$have_json_glib" = "xyes")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x$enable_cloudprint" = "xyes" -a "x$have_rest" = "xno"; then
|
if test "x$enable_cloudprint" = "xyes" -a "x$have_rest" = "xno"; then
|
||||||
@@ -1556,6 +1556,8 @@ if test "x$enable_cloudprint" = "xyes" -a "x$have_json_glib" = "xno"; then
|
|||||||
])
|
])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AM_CONDITIONAL(HAVE_PAPI_CUPS, test "x$have_papi" = "xyes" -a "x$CUPS_CONFIG" != "xno")
|
||||||
|
|
||||||
gtk_save_cppflags="$CPPFLAGS"
|
gtk_save_cppflags="$CPPFLAGS"
|
||||||
CPPFLAGS="$CPPFLAGS $GTK_DEP_CFLAGS $GDK_DEP_CFLAGS"
|
CPPFLAGS="$CPPFLAGS $GTK_DEP_CFLAGS $GDK_DEP_CFLAGS"
|
||||||
|
|
||||||
@@ -1575,6 +1577,7 @@ fi
|
|||||||
|
|
||||||
CPPFLAGS="$gtk_save_cppflags"
|
CPPFLAGS="$gtk_save_cppflags"
|
||||||
|
|
||||||
|
|
||||||
AC_ARG_ENABLE(test-print-backend,
|
AC_ARG_ENABLE(test-print-backend,
|
||||||
[AS_HELP_STRING([--enable-test-print-backend],
|
[AS_HELP_STRING([--enable-test-print-backend],
|
||||||
[build test print backend])],,
|
[build test print backend])],,
|
||||||
@@ -1588,21 +1591,6 @@ if test "$os_win32" = "yes"; then
|
|||||||
AC_CHECK_TYPES([IPrintDialogCallback],[],[],[[#include <windows.h>]])
|
AC_CHECK_TYPES([IPrintDialogCallback],[],[],[[#include <windows.h>]])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
GTK_PRINT_BACKENDS="file"
|
|
||||||
if test "$have_papi" = "yes"; then
|
|
||||||
GTK_PRINT_BACKENDS="$GTK_PRINT_BACKENDS,papi"
|
|
||||||
fi
|
|
||||||
if test "$have_cups" = "yes"; then
|
|
||||||
GTK_PRINT_BACKENDS="$GTK_PRINT_BACKENDS,cups"
|
|
||||||
fi
|
|
||||||
if test "$have_papi" != "yes" -a "$have_cups" != "yes"; then
|
|
||||||
GTK_PRINT_BACKENDS="$GTK_PRINT_BACKENDS,lpr"
|
|
||||||
fi
|
|
||||||
if test "$have_cloudprint" = "yes"; then
|
|
||||||
GTK_PRINT_BACKENDS="$GTK_PRINT_BACKENDS,cloudprint"
|
|
||||||
fi
|
|
||||||
AC_SUBST(GTK_PRINT_BACKENDS)
|
|
||||||
|
|
||||||
################################################################
|
################################################################
|
||||||
# Strip -export-dynamic from the link lines of various libraries
|
# Strip -export-dynamic from the link lines of various libraries
|
||||||
################################################################
|
################################################################
|
||||||
@@ -1677,43 +1665,6 @@ if test "$have_colord" = "yes"; then
|
|||||||
fi
|
fi
|
||||||
AM_CONDITIONAL(HAVE_COLORD, test "x$have_colord" = "xyes")
|
AM_CONDITIONAL(HAVE_COLORD, test "x$have_colord" = "xyes")
|
||||||
|
|
||||||
##################################################
|
|
||||||
# Check for libcanberra (only used in examples)
|
|
||||||
##################################################
|
|
||||||
|
|
||||||
AC_ARG_ENABLE(libcanberra,
|
|
||||||
[AS_HELP_STRING([--enable-libcanberra],
|
|
||||||
[enable libcanberra support in examples [default=auto]])],
|
|
||||||
[enable_libcanberra="$enableval"],
|
|
||||||
[enable_libcanberra=auto])
|
|
||||||
|
|
||||||
if test "$enable_x11_backend" != "yes"; then
|
|
||||||
enable_libcanberra=no
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_MSG_CHECKING([whether to use libcanberra])
|
|
||||||
if test "$enable_libcanberra" != "no"; then
|
|
||||||
AC_MSG_RESULT([yes])
|
|
||||||
else
|
|
||||||
AC_MSG_RESULT([no])
|
|
||||||
fi
|
|
||||||
|
|
||||||
have_libcanberra=no
|
|
||||||
if test "$enable_libcanberra" != "no"; then
|
|
||||||
PKG_CHECK_MODULES(LIBCANBERRA, libcanberra-gtk3,
|
|
||||||
have_libcanberra=yes, have_libcanberra=no)
|
|
||||||
if test "$enable_libcanberra" = "yes"; then
|
|
||||||
if test "$have_libcanberra" = "no"; then
|
|
||||||
AC_MSG_ERROR([--enable-libcanberra specified, but not available])
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$have_libcanberra" = "yes"; then
|
|
||||||
AC_DEFINE(HAVE_LIBCANBERRA, 1, [define if we have libcanberra])
|
|
||||||
fi
|
|
||||||
AM_CONDITIONAL(HAVE_LIBCANBERRA, test "x$have_libcanberra" = "xyes")
|
|
||||||
|
|
||||||
##################################################
|
##################################################
|
||||||
# Checks for gtk-doc and docbook-tools
|
# Checks for gtk-doc and docbook-tools
|
||||||
##################################################
|
##################################################
|
||||||
@@ -1751,7 +1702,7 @@ if test "$enable_man" != no; then
|
|||||||
dnl check for DocBook XSL stylesheets in the local catalog
|
dnl check for DocBook XSL stylesheets in the local catalog
|
||||||
JH_CHECK_XML_CATALOG([http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl],
|
JH_CHECK_XML_CATALOG([http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl],
|
||||||
[DocBook XSL Stylesheets], [have_docbook_style=yes],[have_docbook_style=no])
|
[DocBook XSL Stylesheets], [have_docbook_style=yes],[have_docbook_style=no])
|
||||||
if test "$have_docbook_style" != yes; then
|
if test "$have_docbook_dtd" != yes; then
|
||||||
if test "$enable_man" = yes ; then
|
if test "$enable_man" = yes ; then
|
||||||
AC_MSG_ERROR([DocBook XSL Stylesheets are required for --enable-man])
|
AC_MSG_ERROR([DocBook XSL Stylesheets are required for --enable-man])
|
||||||
fi
|
fi
|
||||||
@@ -1882,8 +1833,6 @@ fi
|
|||||||
AC_SUBST(GTK_LINK_FLAGS)
|
AC_SUBST(GTK_LINK_FLAGS)
|
||||||
|
|
||||||
AC_CONFIG_FILES([
|
AC_CONFIG_FILES([
|
||||||
README
|
|
||||||
INSTALL
|
|
||||||
config.h.win32
|
config.h.win32
|
||||||
gtk-zip.sh
|
gtk-zip.sh
|
||||||
Makefile
|
Makefile
|
||||||
@@ -1921,7 +1870,6 @@ testsuite/css/parser/Makefile
|
|||||||
testsuite/gdk/Makefile
|
testsuite/gdk/Makefile
|
||||||
testsuite/gtk/Makefile
|
testsuite/gtk/Makefile
|
||||||
testsuite/reftests/Makefile
|
testsuite/reftests/Makefile
|
||||||
testsuite/tools/Makefile
|
|
||||||
docs/Makefile
|
docs/Makefile
|
||||||
docs/reference/Makefile
|
docs/reference/Makefile
|
||||||
docs/reference/gdk/Makefile
|
docs/reference/gdk/Makefile
|
||||||
@@ -1950,13 +1898,15 @@ gdk/win32/rc/Makefile
|
|||||||
gdk/win32/rc/gdk.rc
|
gdk/win32/rc/gdk.rc
|
||||||
gdk/quartz/Makefile
|
gdk/quartz/Makefile
|
||||||
gdk/wayland/Makefile
|
gdk/wayland/Makefile
|
||||||
gdk/mir/Makefile
|
|
||||||
gdk/gdkversionmacros.h
|
gdk/gdkversionmacros.h
|
||||||
gtk/Makefile
|
gtk/Makefile
|
||||||
gtk/makefile.msc
|
gtk/makefile.msc
|
||||||
gtk/gtkversion.h
|
gtk/gtkversion.h
|
||||||
gtk/gtk-win32.rc
|
gtk/gtk-win32.rc
|
||||||
gtk/libgtk3.manifest
|
gtk/libgtk3.manifest
|
||||||
|
gtk/inspector/Makefile
|
||||||
|
gtk/native/Makefile
|
||||||
|
util/Makefile
|
||||||
libgail-util/Makefile
|
libgail-util/Makefile
|
||||||
modules/Makefile
|
modules/Makefile
|
||||||
modules/input/Makefile
|
modules/input/Makefile
|
||||||
@@ -1987,7 +1937,6 @@ echo " Print backends: $PRINT_BACKENDS"
|
|||||||
echo " Dynamic modules: $build_dynamic_modules"
|
echo " Dynamic modules: $build_dynamic_modules"
|
||||||
echo " Included immodules: $included_immodules"
|
echo " Included immodules: $included_immodules"
|
||||||
echo " colord support: $have_colord"
|
echo " colord support: $have_colord"
|
||||||
echo " libcanberra support: $have_libcanberra"
|
|
||||||
echo " Introspection: $found_introspection"
|
echo " Introspection: $found_introspection"
|
||||||
echo " Debugging: $enable_debug"
|
echo " Debugging: $enable_debug"
|
||||||
echo " Documentation: $enable_gtk_doc"
|
echo " Documentation: $enable_gtk_doc"
|
||||||
|
@@ -3,7 +3,7 @@ include $(top_srcdir)/Makefile.decl
|
|||||||
|
|
||||||
## These should be in the order you want them to appear in the
|
## These should be in the order you want them to appear in the
|
||||||
## demo app, which means alphabetized by demo title, not filename
|
## demo app, which means alphabetized by demo title, not filename
|
||||||
demos_base = \
|
demos = \
|
||||||
application.c \
|
application.c \
|
||||||
assistant.c \
|
assistant.c \
|
||||||
builder.c \
|
builder.c \
|
||||||
@@ -17,7 +17,6 @@ demos_base = \
|
|||||||
css_multiplebgs.c \
|
css_multiplebgs.c \
|
||||||
css_pixbufs.c \
|
css_pixbufs.c \
|
||||||
css_shadows.c \
|
css_shadows.c \
|
||||||
cursors.c \
|
|
||||||
dialog.c \
|
dialog.c \
|
||||||
drawingarea.c \
|
drawingarea.c \
|
||||||
editable_cells.c \
|
editable_cells.c \
|
||||||
@@ -25,10 +24,7 @@ demos_base = \
|
|||||||
entry_completion.c \
|
entry_completion.c \
|
||||||
event_axes.c \
|
event_axes.c \
|
||||||
expander.c \
|
expander.c \
|
||||||
filtermodel.c \
|
|
||||||
font_features.c \
|
|
||||||
gestures.c \
|
gestures.c \
|
||||||
glarea.c \
|
|
||||||
headerbar.c \
|
headerbar.c \
|
||||||
hypertext.c \
|
hypertext.c \
|
||||||
iconview.c \
|
iconview.c \
|
||||||
@@ -39,12 +35,10 @@ demos_base = \
|
|||||||
listbox.c \
|
listbox.c \
|
||||||
flowbox.c \
|
flowbox.c \
|
||||||
list_store.c \
|
list_store.c \
|
||||||
markup.c \
|
|
||||||
menus.c \
|
menus.c \
|
||||||
offscreen_window.c \
|
offscreen_window.c \
|
||||||
offscreen_window2.c \
|
offscreen_window2.c \
|
||||||
overlay.c \
|
overlay.c \
|
||||||
overlay2.c \
|
|
||||||
panes.c \
|
panes.c \
|
||||||
pickers.c \
|
pickers.c \
|
||||||
pixbufs.c \
|
pixbufs.c \
|
||||||
@@ -54,12 +48,9 @@ demos_base = \
|
|||||||
rotated_text.c \
|
rotated_text.c \
|
||||||
search_entry.c \
|
search_entry.c \
|
||||||
search_entry2.c \
|
search_entry2.c \
|
||||||
sidebar.c \
|
|
||||||
sizegroup.c \
|
sizegroup.c \
|
||||||
spinbutton.c \
|
|
||||||
spinner.c \
|
spinner.c \
|
||||||
stack.c \
|
stack.c \
|
||||||
textmask.c \
|
|
||||||
textview.c \
|
textview.c \
|
||||||
textscroll.c \
|
textscroll.c \
|
||||||
theming_style_classes.c \
|
theming_style_classes.c \
|
||||||
@@ -67,12 +58,6 @@ demos_base = \
|
|||||||
transparent.c \
|
transparent.c \
|
||||||
tree_store.c
|
tree_store.c
|
||||||
|
|
||||||
if OS_UNIX
|
|
||||||
demos = $(demos_base) pagesetup.c
|
|
||||||
else
|
|
||||||
demos = $(demos_base)
|
|
||||||
endif
|
|
||||||
|
|
||||||
AM_CPPFLAGS = \
|
AM_CPPFLAGS = \
|
||||||
-I$(top_srcdir) \
|
-I$(top_srcdir) \
|
||||||
-I$(top_builddir)/gdk \
|
-I$(top_builddir)/gdk \
|
||||||
@@ -85,10 +70,9 @@ DEPS = \
|
|||||||
$(top_builddir)/gtk/libgtk-3.la
|
$(top_builddir)/gtk/libgtk-3.la
|
||||||
|
|
||||||
LDADDS = \
|
LDADDS = \
|
||||||
$(top_builddir)/gtk/libgtk-3.la \
|
$(top_builddir)/gtk/libgtk-3.la \
|
||||||
$(top_builddir)/gdk/libgdk-3.la \
|
$(top_builddir)/gdk/libgdk-3.la \
|
||||||
$(GTK_DEP_LIBS) \
|
$(GTK_DEP_LIBS) \
|
||||||
$(GDK_DEP_LIBS) \
|
|
||||||
-lm
|
-lm
|
||||||
|
|
||||||
bin_PROGRAMS = gtk3-demo gtk3-demo-application
|
bin_PROGRAMS = gtk3-demo gtk3-demo-application
|
||||||
@@ -99,12 +83,10 @@ dist_desktop_DATA = gtk3-demo.desktop
|
|||||||
BUILT_SOURCES = demos.h demo_resources.c
|
BUILT_SOURCES = demos.h demo_resources.c
|
||||||
|
|
||||||
EXTRA_DIST += \
|
EXTRA_DIST += \
|
||||||
data/source.svg \
|
$(IMAGEFILES) \
|
||||||
data/symbolic-source.svg \
|
|
||||||
demo.gresource.xml \
|
demo.gresource.xml \
|
||||||
$(resource_files) \
|
$(RESOURCES) \
|
||||||
org.gtk.Demo.gschema.xml \
|
org.gtk.Demo.gschema.xml
|
||||||
demos.h.win32
|
|
||||||
|
|
||||||
gsettings_SCHEMAS = \
|
gsettings_SCHEMAS = \
|
||||||
org.gtk.Demo.gschema.xml
|
org.gtk.Demo.gschema.xml
|
||||||
@@ -114,15 +96,11 @@ gsettings_SCHEMAS = \
|
|||||||
demos.h: $(demos) geninclude.pl
|
demos.h: $(demos) geninclude.pl
|
||||||
$(AM_V_GEN) (here=`pwd` ; cd $(srcdir) && $(PERL) $$here/geninclude.pl $(demos)) > demos.h
|
$(AM_V_GEN) (here=`pwd` ; cd $(srcdir) && $(PERL) $$here/geninclude.pl $(demos)) > demos.h
|
||||||
|
|
||||||
demos.h.win32: $(demos_base) geninclude.pl
|
|
||||||
$(AM_V_GEN) (here=`pwd` ; cd $(srcdir) && $(PERL) $$here/geninclude.pl $(demos_base)) > demos.h.win32
|
|
||||||
|
|
||||||
nodist_gtk3_demo_SOURCES = demos.h
|
|
||||||
|
|
||||||
gtk3_demo_SOURCES = \
|
gtk3_demo_SOURCES = \
|
||||||
$(demos) \
|
$(demos) \
|
||||||
demo_resources.c \
|
demo_resources.c \
|
||||||
main.c
|
main.c \
|
||||||
|
demos.h
|
||||||
|
|
||||||
gtk3_demo_DEPENDENCIES = $(DEPS)
|
gtk3_demo_DEPENDENCIES = $(DEPS)
|
||||||
gtk3_demo_LDADD = $(LDADDS)
|
gtk3_demo_LDADD = $(LDADDS)
|
||||||
@@ -134,11 +112,43 @@ gtk3_demo_application_SOURCES = \
|
|||||||
|
|
||||||
gtk3_demo_application_LDADD = $(LDADDS)
|
gtk3_demo_application_LDADD = $(LDADDS)
|
||||||
|
|
||||||
resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(builddir)/demo.gresource.xml)
|
demo_resources.c: demo.gresource.xml $(RESOURCES)
|
||||||
|
|
||||||
demo_resources.c: demo.gresource.xml $(resource_files)
|
|
||||||
$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate-source $(srcdir)/demo.gresource.xml
|
$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate-source $(srcdir)/demo.gresource.xml
|
||||||
|
|
||||||
|
RESOURCES= $(demos) \
|
||||||
|
main.ui \
|
||||||
|
application.ui \
|
||||||
|
demo.ui \
|
||||||
|
menus.ui \
|
||||||
|
stack.ui \
|
||||||
|
revealer.ui \
|
||||||
|
theming.ui \
|
||||||
|
listbox.ui \
|
||||||
|
popover.ui \
|
||||||
|
alphatest.png \
|
||||||
|
apple-red.png \
|
||||||
|
brick.png \
|
||||||
|
brick2.png \
|
||||||
|
background.jpg \
|
||||||
|
floppybuddy.gif \
|
||||||
|
gnome-applets.png \
|
||||||
|
gnome-calendar.png \
|
||||||
|
gnome-foot.png \
|
||||||
|
gnome-fs-directory.png \
|
||||||
|
gnome-fs-regular.png \
|
||||||
|
gnome-gimp.png \
|
||||||
|
gnome-gmush.png \
|
||||||
|
gnome-gsame.png \
|
||||||
|
gnu-keys.png \
|
||||||
|
messages.txt \
|
||||||
|
css_accordion.css \
|
||||||
|
css_basics.css \
|
||||||
|
css_multiplebgs.css \
|
||||||
|
css_pixbufs.css \
|
||||||
|
css_shadows.css \
|
||||||
|
cssview.css \
|
||||||
|
reset.css
|
||||||
|
|
||||||
iconthemedir = $(datadir)/icons/hicolor
|
iconthemedir = $(datadir)/icons/hicolor
|
||||||
|
|
||||||
appsicon16dir = $(iconthemedir)/16x16/apps
|
appsicon16dir = $(iconthemedir)/16x16/apps
|
||||||
@@ -147,16 +157,15 @@ appsicon24dir = $(iconthemedir)/24x24/apps
|
|||||||
appsicon32dir = $(iconthemedir)/32x32/apps
|
appsicon32dir = $(iconthemedir)/32x32/apps
|
||||||
appsicon48dir = $(iconthemedir)/48x48/apps
|
appsicon48dir = $(iconthemedir)/48x48/apps
|
||||||
appsicon256dir = $(iconthemedir)/256x256/apps
|
appsicon256dir = $(iconthemedir)/256x256/apps
|
||||||
appsiconscalabledir = $(iconthemedir)/scalable/apps
|
|
||||||
|
|
||||||
dist_appsicon16_DATA = data/16x16/gtk3-demo.png data/16x16/gtk3-demo-symbolic.symbolic.png
|
dist_appsicon16_DATA = data/16x16/gtk3-demo.png
|
||||||
dist_appsicon22_DATA = data/22x22/gtk3-demo.png data/22x22/gtk3-demo-symbolic.symbolic.png
|
dist_appsicon22_DATA = data/22x22/gtk3-demo.png
|
||||||
dist_appsicon24_DATA = data/24x24/gtk3-demo.png data/24x24/gtk3-demo-symbolic.symbolic.png
|
dist_appsicon24_DATA = data/24x24/gtk3-demo.png
|
||||||
dist_appsicon32_DATA = data/32x32/gtk3-demo.png data/32x32/gtk3-demo-symbolic.symbolic.png
|
dist_appsicon32_DATA = data/32x32/gtk3-demo.png
|
||||||
dist_appsicon48_DATA = data/48x48/gtk3-demo.png data/48x48/gtk3-demo-symbolic.symbolic.png
|
dist_appsicon48_DATA = data/48x48/gtk3-demo.png
|
||||||
dist_appsicon256_DATA = data/256x256/gtk3-demo.png data/256x256/gtk3-demo-symbolic.symbolic.png
|
dist_appsicon256_DATA = data/256x256/gtk3-demo.png
|
||||||
|
|
||||||
update_icon_cache = $(top_builddir)/gtk/gtk-update-icon-cache --ignore-theme-index --force
|
update_icon_cache = $(GTK_UPDATE_ICON_CACHE) --ignore-theme-index --force
|
||||||
|
|
||||||
install-data-hook: install-update-icon-cache
|
install-data-hook: install-update-icon-cache
|
||||||
uninstall-hook: uninstall-update-icon-cache
|
uninstall-hook: uninstall-update-icon-cache
|
||||||
@@ -169,6 +178,6 @@ uninstall-update-icon-cache:
|
|||||||
$(AM_V_at)$(POST_UNINSTALL)
|
$(AM_V_at)$(POST_UNINSTALL)
|
||||||
test -n "$(DESTDIR)" || $(update_icon_cache) "$(iconthemedir)"
|
test -n "$(DESTDIR)" || $(update_icon_cache) "$(iconthemedir)"
|
||||||
|
|
||||||
DISTCLEANFILES = demos.h demos.h.win32
|
DISTCLEANFILES = demos.h
|
||||||
|
|
||||||
-include $(top_srcdir)/git.mk
|
-include $(top_srcdir)/git.mk
|
||||||
|
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.7 KiB |
@@ -168,7 +168,7 @@ do_assistant (GtkWidget *do_widget)
|
|||||||
{
|
{
|
||||||
assistant = gtk_assistant_new ();
|
assistant = gtk_assistant_new ();
|
||||||
|
|
||||||
gtk_window_set_default_size (GTK_WINDOW (assistant), -1, 300);
|
gtk_window_set_default_size (GTK_WINDOW (assistant), -1, 300);
|
||||||
|
|
||||||
gtk_window_set_screen (GTK_WINDOW (assistant),
|
gtk_window_set_screen (GTK_WINDOW (assistant),
|
||||||
gtk_widget_get_screen (do_widget));
|
gtk_widget_get_screen (do_widget));
|
||||||
|
@@ -2,63 +2,52 @@
|
|||||||
*
|
*
|
||||||
* Demonstrates an interface loaded from a XML description.
|
* Demonstrates an interface loaded from a XML description.
|
||||||
*/
|
*/
|
||||||
|
#undef GTK_DISABLE_DEPRECATED
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
static void
|
static GtkBuilder *builder;
|
||||||
quit_activate (GSimpleAction *action,
|
|
||||||
GVariant *parameter,
|
|
||||||
gpointer user_data)
|
|
||||||
{
|
|
||||||
GtkWidget *window = user_data;
|
|
||||||
|
|
||||||
|
G_MODULE_EXPORT void
|
||||||
|
quit_activate (GtkAction *action)
|
||||||
|
{
|
||||||
|
GtkWidget *window;
|
||||||
|
|
||||||
|
window = GTK_WIDGET (gtk_builder_get_object (builder, "window1"));
|
||||||
gtk_widget_destroy (window);
|
gtk_widget_destroy (window);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
G_MODULE_EXPORT void
|
||||||
about_activate (GSimpleAction *action,
|
about_activate (GtkAction *action)
|
||||||
GVariant *parameter,
|
|
||||||
gpointer user_data)
|
|
||||||
{
|
{
|
||||||
GtkWidget *window = user_data;
|
|
||||||
GtkBuilder *builder;
|
|
||||||
GtkWidget *about_dlg;
|
GtkWidget *about_dlg;
|
||||||
|
|
||||||
builder = g_object_get_data (G_OBJECT (window), "builder");
|
|
||||||
about_dlg = GTK_WIDGET (gtk_builder_get_object (builder, "aboutdialog1"));
|
about_dlg = GTK_WIDGET (gtk_builder_get_object (builder, "aboutdialog1"));
|
||||||
gtk_dialog_run (GTK_DIALOG (about_dlg));
|
gtk_dialog_run (GTK_DIALOG (about_dlg));
|
||||||
gtk_widget_hide (about_dlg);
|
gtk_widget_hide (about_dlg);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
G_MODULE_EXPORT void
|
||||||
help_activate (GSimpleAction *action,
|
help_activate (GtkAction *action)
|
||||||
GVariant *parameter,
|
|
||||||
gpointer user_data)
|
|
||||||
{
|
{
|
||||||
g_print ("Help not available\n");
|
g_print ("Help not available\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
static GActionEntry win_entries[] = {
|
|
||||||
{ "quit", quit_activate, NULL, NULL, NULL },
|
|
||||||
{ "about", about_activate, NULL, NULL, NULL },
|
|
||||||
{ "help", help_activate, NULL, NULL, NULL }
|
|
||||||
};
|
|
||||||
|
|
||||||
GtkWidget *
|
GtkWidget *
|
||||||
do_builder (GtkWidget *do_widget)
|
do_builder (GtkWidget *do_widget)
|
||||||
{
|
{
|
||||||
static GtkWidget *window = NULL;
|
static GtkWidget *window = NULL;
|
||||||
|
GError *err = NULL;
|
||||||
GtkWidget *toolbar;
|
GtkWidget *toolbar;
|
||||||
GActionGroup *actions;
|
|
||||||
GtkAccelGroup *accel_group;
|
|
||||||
GtkWidget *item;
|
|
||||||
|
|
||||||
if (!window)
|
if (!window)
|
||||||
{
|
{
|
||||||
GtkBuilder *builder;
|
builder = gtk_builder_new ();
|
||||||
|
gtk_builder_add_from_resource (builder, "/builder/demo.ui", &err);
|
||||||
builder = gtk_builder_new_from_resource ("/builder/demo.ui");
|
if (err)
|
||||||
|
{
|
||||||
|
g_error ("ERROR: %s\n", err->message);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
gtk_builder_connect_signals (builder, NULL);
|
gtk_builder_connect_signals (builder, NULL);
|
||||||
window = GTK_WIDGET (gtk_builder_get_object (builder, "window1"));
|
window = GTK_WIDGET (gtk_builder_get_object (builder, "window1"));
|
||||||
gtk_window_set_screen (GTK_WINDOW (window),
|
gtk_window_set_screen (GTK_WINDOW (window),
|
||||||
@@ -68,57 +57,18 @@ do_builder (GtkWidget *do_widget)
|
|||||||
toolbar = GTK_WIDGET (gtk_builder_get_object (builder, "toolbar1"));
|
toolbar = GTK_WIDGET (gtk_builder_get_object (builder, "toolbar1"));
|
||||||
gtk_style_context_add_class (gtk_widget_get_style_context (toolbar),
|
gtk_style_context_add_class (gtk_widget_get_style_context (toolbar),
|
||||||
"primary-toolbar");
|
"primary-toolbar");
|
||||||
actions = (GActionGroup*)g_simple_action_group_new ();
|
|
||||||
g_action_map_add_action_entries (G_ACTION_MAP (actions),
|
|
||||||
win_entries, G_N_ELEMENTS (win_entries),
|
|
||||||
window);
|
|
||||||
gtk_widget_insert_action_group (window, "win", actions);
|
|
||||||
accel_group = gtk_accel_group_new ();
|
|
||||||
gtk_window_add_accel_group (GTK_WINDOW (window), accel_group);
|
|
||||||
|
|
||||||
item = (GtkWidget*)gtk_builder_get_object (builder, "new_item");
|
|
||||||
gtk_widget_add_accelerator (item, "activate", accel_group,
|
|
||||||
GDK_KEY_n, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE);
|
|
||||||
|
|
||||||
item = (GtkWidget*)gtk_builder_get_object (builder, "open_item");
|
|
||||||
gtk_widget_add_accelerator (item, "activate", accel_group,
|
|
||||||
GDK_KEY_o, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE);
|
|
||||||
|
|
||||||
item = (GtkWidget*)gtk_builder_get_object (builder, "save_item");
|
|
||||||
gtk_widget_add_accelerator (item, "activate", accel_group,
|
|
||||||
GDK_KEY_s, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE);
|
|
||||||
|
|
||||||
item = (GtkWidget*)gtk_builder_get_object (builder, "quit_item");
|
|
||||||
gtk_widget_add_accelerator (item, "activate", accel_group,
|
|
||||||
GDK_KEY_q, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE);
|
|
||||||
|
|
||||||
item = (GtkWidget*)gtk_builder_get_object (builder, "copy_item");
|
|
||||||
gtk_widget_add_accelerator (item, "activate", accel_group,
|
|
||||||
GDK_KEY_c, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE);
|
|
||||||
|
|
||||||
item = (GtkWidget*)gtk_builder_get_object (builder, "cut_item");
|
|
||||||
gtk_widget_add_accelerator (item, "activate", accel_group,
|
|
||||||
GDK_KEY_x, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE);
|
|
||||||
|
|
||||||
item = (GtkWidget*)gtk_builder_get_object (builder, "paste_item");
|
|
||||||
gtk_widget_add_accelerator (item, "activate", accel_group,
|
|
||||||
GDK_KEY_v, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE);
|
|
||||||
|
|
||||||
item = (GtkWidget*)gtk_builder_get_object (builder, "help_item");
|
|
||||||
gtk_widget_add_accelerator (item, "activate", accel_group,
|
|
||||||
GDK_KEY_F1, 0, GTK_ACCEL_VISIBLE);
|
|
||||||
|
|
||||||
item = (GtkWidget*)gtk_builder_get_object (builder, "about_item");
|
|
||||||
gtk_widget_add_accelerator (item, "activate", accel_group,
|
|
||||||
GDK_KEY_F7, 0, GTK_ACCEL_VISIBLE);
|
|
||||||
|
|
||||||
g_object_set_data_full (G_OBJECT(window), "builder", builder, g_object_unref);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!gtk_widget_get_visible (window))
|
if (!gtk_widget_get_visible (window))
|
||||||
gtk_widget_show_all (window);
|
{
|
||||||
|
gtk_widget_show_all (window);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
gtk_widget_destroy (window);
|
{
|
||||||
|
gtk_widget_destroy (window);
|
||||||
|
window = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return window;
|
return window;
|
||||||
}
|
}
|
||||||
|
@@ -129,9 +129,14 @@ do_button_box (GtkWidget *do_widget)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!gtk_widget_get_visible (window))
|
if (!gtk_widget_get_visible (window))
|
||||||
gtk_widget_show_all (window);
|
{
|
||||||
|
gtk_widget_show_all (window);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
gtk_widget_destroy (window);
|
{
|
||||||
|
gtk_widget_destroy (window);
|
||||||
|
window = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return window;
|
return window;
|
||||||
}
|
}
|
||||||
|
Before Width: | Height: | Size: 1.1 KiB |
@@ -2,7 +2,7 @@
|
|||||||
*
|
*
|
||||||
* Demonstrates migrating a window between different displays.
|
* Demonstrates migrating a window between different displays.
|
||||||
* A display is a mouse and keyboard with some number of
|
* A display is a mouse and keyboard with some number of
|
||||||
* associated monitors. The neat thing about having multiple
|
* associated monitors. The neat thing about having multiple
|
||||||
* displays is that they can be on a completely separate
|
* displays is that they can be on a completely separate
|
||||||
* computers, as long as there is a network connection to the
|
* computers, as long as there is a network connection to the
|
||||||
* computer where the application is running.
|
* computer where the application is running.
|
||||||
@@ -26,6 +26,9 @@
|
|||||||
* - Using GtkDialog
|
* - Using GtkDialog
|
||||||
*/
|
*/
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#undef GDK_DISABLE_DEPRECATED
|
||||||
|
|
||||||
#include <glib/gi18n.h>
|
#include <glib/gi18n.h>
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
@@ -123,7 +126,7 @@ query_for_toplevel (GdkScreen *screen,
|
|||||||
gtk_container_add (GTK_CONTAINER (frame), label);
|
gtk_container_add (GTK_CONTAINER (frame), label);
|
||||||
|
|
||||||
gtk_widget_show_all (popup);
|
gtk_widget_show_all (popup);
|
||||||
cursor = gdk_cursor_new_from_name (display, "crosshair");
|
cursor = gdk_cursor_new_for_display (display, GDK_CROSSHAIR);
|
||||||
|
|
||||||
if (gdk_device_grab (gtk_get_current_event_device (),
|
if (gdk_device_grab (gtk_get_current_event_device (),
|
||||||
gtk_widget_get_window (popup),
|
gtk_widget_get_window (popup),
|
||||||
@@ -242,7 +245,7 @@ open_display_cb (GtkWidget *button,
|
|||||||
if (!result)
|
if (!result)
|
||||||
{
|
{
|
||||||
gchar *error_msg =
|
gchar *error_msg =
|
||||||
g_strdup_printf ("Can't open display:\n\t%s\nplease try another one\n",
|
g_strdup_printf ("Can't open display :\n\t%s\nplease try another one\n",
|
||||||
new_screen_name);
|
new_screen_name);
|
||||||
gtk_label_set_text (GTK_LABEL (dialog_label), error_msg);
|
gtk_label_set_text (GTK_LABEL (dialog_label), error_msg);
|
||||||
g_free (error_msg);
|
g_free (error_msg);
|
||||||
@@ -523,12 +526,12 @@ do_changedisplay (GtkWidget *do_widget)
|
|||||||
|
|
||||||
info = g_new0 (ChangeDisplayInfo, 1);
|
info = g_new0 (ChangeDisplayInfo, 1);
|
||||||
|
|
||||||
info->window = gtk_dialog_new_with_buttons ("Change Display",
|
info->window = gtk_dialog_new_with_buttons ("Change Screen or display",
|
||||||
GTK_WINDOW (do_widget),
|
GTK_WINDOW (do_widget),
|
||||||
0,
|
0,
|
||||||
"Close", GTK_RESPONSE_CLOSE,
|
_("_Close"), GTK_RESPONSE_CLOSE,
|
||||||
"Change", GTK_RESPONSE_OK,
|
"Change", GTK_RESPONSE_OK,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
gtk_window_set_default_size (GTK_WINDOW (info->window), 300, 400);
|
gtk_window_set_default_size (GTK_WINDOW (info->window), 300, 400);
|
||||||
|
|
||||||
|
@@ -13,6 +13,8 @@
|
|||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
static GtkWidget *window = NULL;
|
||||||
|
|
||||||
void
|
void
|
||||||
copy_button_clicked (GtkWidget *button,
|
copy_button_clicked (GtkWidget *button,
|
||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
@@ -105,12 +107,12 @@ drag_begin (GtkWidget *widget,
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
drag_data_get (GtkWidget *widget,
|
drag_data_get (GtkWidget *widget,
|
||||||
GdkDragContext *context,
|
GdkDragContext *context,
|
||||||
GtkSelectionData *selection_data,
|
GtkSelectionData *selection_data,
|
||||||
guint info,
|
guint info,
|
||||||
guint time,
|
guint time,
|
||||||
gpointer data)
|
gpointer data)
|
||||||
{
|
{
|
||||||
GdkPixbuf *pixbuf;
|
GdkPixbuf *pixbuf;
|
||||||
|
|
||||||
@@ -200,8 +202,6 @@ button_press (GtkWidget *widget,
|
|||||||
GtkWidget *
|
GtkWidget *
|
||||||
do_clipboard (GtkWidget *do_widget)
|
do_clipboard (GtkWidget *do_widget)
|
||||||
{
|
{
|
||||||
static GtkWidget *window = NULL;
|
|
||||||
|
|
||||||
if (!window)
|
if (!window)
|
||||||
{
|
{
|
||||||
GtkWidget *vbox, *hbox;
|
GtkWidget *vbox, *hbox;
|
||||||
@@ -213,7 +213,7 @@ do_clipboard (GtkWidget *do_widget)
|
|||||||
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
||||||
gtk_window_set_screen (GTK_WINDOW (window),
|
gtk_window_set_screen (GTK_WINDOW (window),
|
||||||
gtk_widget_get_screen (do_widget));
|
gtk_widget_get_screen (do_widget));
|
||||||
gtk_window_set_title (GTK_WINDOW (window), "Clipboard");
|
gtk_window_set_title (GTK_WINDOW (window), "Clipboard demo");
|
||||||
|
|
||||||
g_signal_connect (window, "destroy",
|
g_signal_connect (window, "destroy",
|
||||||
G_CALLBACK (gtk_widget_destroyed), &window);
|
G_CALLBACK (gtk_widget_destroyed), &window);
|
||||||
@@ -325,7 +325,10 @@ do_clipboard (GtkWidget *do_widget)
|
|||||||
if (!gtk_widget_get_visible (window))
|
if (!gtk_widget_get_visible (window))
|
||||||
gtk_widget_show_all (window);
|
gtk_widget_show_all (window);
|
||||||
else
|
else
|
||||||
gtk_widget_destroy (window);
|
{
|
||||||
|
gtk_widget_destroy (window);
|
||||||
|
window = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return window;
|
return window;
|
||||||
}
|
}
|
||||||
|
Before Width: | Height: | Size: 1.4 KiB |
@@ -20,7 +20,12 @@ draw_callback (GtkWidget *widget,
|
|||||||
cairo_t *cr,
|
cairo_t *cr,
|
||||||
gpointer data)
|
gpointer data)
|
||||||
{
|
{
|
||||||
gdk_cairo_set_source_rgba (cr, &color);
|
GtkStyleContext *context;
|
||||||
|
GdkRGBA rgba;
|
||||||
|
|
||||||
|
context = gtk_widget_get_style_context (widget);
|
||||||
|
gtk_style_context_get_background_color (context, GTK_STATE_FLAG_NORMAL, &rgba);
|
||||||
|
gdk_cairo_set_source_rgba (cr, &rgba);
|
||||||
cairo_paint (cr);
|
cairo_paint (cr);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
@@ -32,7 +37,10 @@ response_cb (GtkDialog *dialog,
|
|||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
{
|
{
|
||||||
if (response_id == GTK_RESPONSE_OK)
|
if (response_id == GTK_RESPONSE_OK)
|
||||||
gtk_color_chooser_get_rgba (GTK_COLOR_CHOOSER (dialog), &color);
|
{
|
||||||
|
gtk_color_chooser_get_rgba (GTK_COLOR_CHOOSER (dialog), &color);
|
||||||
|
gtk_widget_override_background_color (da, 0, &color);
|
||||||
|
}
|
||||||
|
|
||||||
gtk_widget_destroy (GTK_WIDGET (dialog));
|
gtk_widget_destroy (GTK_WIDGET (dialog));
|
||||||
}
|
}
|
||||||
@@ -47,8 +55,10 @@ change_color_callback (GtkWidget *button,
|
|||||||
gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
|
gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
|
||||||
gtk_color_chooser_set_rgba (GTK_COLOR_CHOOSER (dialog), &color);
|
gtk_color_chooser_set_rgba (GTK_COLOR_CHOOSER (dialog), &color);
|
||||||
|
|
||||||
g_signal_connect (dialog, "response",
|
g_signal_connect (dialog,
|
||||||
G_CALLBACK (response_cb), NULL);
|
"response",
|
||||||
|
G_CALLBACK (response_cb),
|
||||||
|
NULL);
|
||||||
|
|
||||||
gtk_widget_show_all (dialog);
|
gtk_widget_show_all (dialog);
|
||||||
}
|
}
|
||||||
@@ -84,6 +94,7 @@ do_colorsel (GtkWidget *do_widget)
|
|||||||
* Create the color swatch area
|
* Create the color swatch area
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
frame = gtk_frame_new (NULL);
|
frame = gtk_frame_new (NULL);
|
||||||
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
|
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
|
||||||
gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE, 0);
|
gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE, 0);
|
||||||
@@ -94,6 +105,8 @@ do_colorsel (GtkWidget *do_widget)
|
|||||||
|
|
||||||
/* set a minimum size */
|
/* set a minimum size */
|
||||||
gtk_widget_set_size_request (da, 200, 200);
|
gtk_widget_set_size_request (da, 200, 200);
|
||||||
|
/* set the color */
|
||||||
|
gtk_widget_override_background_color (da, 0, &color);
|
||||||
|
|
||||||
gtk_container_add (GTK_CONTAINER (frame), da);
|
gtk_container_add (GTK_CONTAINER (frame), da);
|
||||||
|
|
||||||
@@ -108,9 +121,14 @@ do_colorsel (GtkWidget *do_widget)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!gtk_widget_get_visible (window))
|
if (!gtk_widget_get_visible (window))
|
||||||
gtk_widget_show_all (window);
|
{
|
||||||
|
gtk_widget_show_all (window);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
gtk_widget_destroy (window);
|
{
|
||||||
|
gtk_widget_destroy (window);
|
||||||
|
window = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return window;
|
return window;
|
||||||
}
|
}
|
||||||
|
@@ -259,21 +259,18 @@ G_DEFINE_TYPE_WITH_CODE (MaskEntry, mask_entry, GTK_TYPE_ENTRY,
|
|||||||
static void
|
static void
|
||||||
mask_entry_set_background (MaskEntry *entry)
|
mask_entry_set_background (MaskEntry *entry)
|
||||||
{
|
{
|
||||||
|
static const GdkRGBA error_color = { 1.0, 0.9, 0.9, 1.0 };
|
||||||
|
|
||||||
if (entry->mask)
|
if (entry->mask)
|
||||||
{
|
{
|
||||||
if (!g_regex_match_simple (entry->mask, gtk_entry_get_text (GTK_ENTRY (entry)), 0, 0))
|
if (!g_regex_match_simple (entry->mask, gtk_entry_get_text (GTK_ENTRY (entry)), 0, 0))
|
||||||
{
|
{
|
||||||
PangoAttrList *attrs;
|
gtk_widget_override_color (GTK_WIDGET (entry), 0, &error_color);
|
||||||
|
|
||||||
attrs = pango_attr_list_new ();
|
|
||||||
pango_attr_list_insert (attrs, pango_attr_foreground_new (65535, 32767, 32767));
|
|
||||||
gtk_entry_set_attributes (GTK_ENTRY (entry), attrs);
|
|
||||||
pango_attr_list_unref (attrs);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gtk_entry_set_attributes (GTK_ENTRY (entry), NULL);
|
gtk_widget_override_color (GTK_WIDGET (entry), 0, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -318,10 +315,11 @@ do_combobox (GtkWidget *do_widget)
|
|||||||
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
||||||
gtk_window_set_screen (GTK_WINDOW (window),
|
gtk_window_set_screen (GTK_WINDOW (window),
|
||||||
gtk_widget_get_screen (do_widget));
|
gtk_widget_get_screen (do_widget));
|
||||||
gtk_window_set_title (GTK_WINDOW (window), "Combo Boxes");
|
gtk_window_set_title (GTK_WINDOW (window), "Combo boxes");
|
||||||
|
|
||||||
g_signal_connect (window, "destroy",
|
g_signal_connect (window, "destroy",
|
||||||
G_CALLBACK (gtk_widget_destroyed), &window);
|
G_CALLBACK (gtk_widget_destroyed),
|
||||||
|
&window);
|
||||||
|
|
||||||
gtk_container_set_border_width (GTK_CONTAINER (window), 10);
|
gtk_container_set_border_width (GTK_CONTAINER (window), 10);
|
||||||
|
|
||||||
@@ -399,7 +397,8 @@ do_combobox (GtkWidget *do_widget)
|
|||||||
gtk_tree_path_free (path);
|
gtk_tree_path_free (path);
|
||||||
gtk_combo_box_set_active_iter (GTK_COMBO_BOX (combo), &iter);
|
gtk_combo_box_set_active_iter (GTK_COMBO_BOX (combo), &iter);
|
||||||
|
|
||||||
/* A GtkComboBoxEntry with validation */
|
/* A GtkComboBoxEntry with validation.
|
||||||
|
*/
|
||||||
frame = gtk_frame_new ("Editable");
|
frame = gtk_frame_new ("Editable");
|
||||||
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
|
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
|
||||||
|
|
||||||
@@ -439,9 +438,14 @@ do_combobox (GtkWidget *do_widget)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!gtk_widget_get_visible (window))
|
if (!gtk_widget_get_visible (window))
|
||||||
gtk_widget_show_all (window);
|
{
|
||||||
|
gtk_widget_show_all (window);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
gtk_widget_destroy (window);
|
{
|
||||||
|
gtk_widget_destroy (window);
|
||||||
|
window = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return window;
|
return window;
|
||||||
}
|
}
|
||||||
|
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 985 B |
@@ -6,6 +6,8 @@
|
|||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
static GtkWidget *window = NULL;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
apply_css (GtkWidget *widget, GtkStyleProvider *provider)
|
apply_css (GtkWidget *widget, GtkStyleProvider *provider)
|
||||||
{
|
{
|
||||||
@@ -17,20 +19,20 @@ apply_css (GtkWidget *widget, GtkStyleProvider *provider)
|
|||||||
GtkWidget *
|
GtkWidget *
|
||||||
do_css_accordion (GtkWidget *do_widget)
|
do_css_accordion (GtkWidget *do_widget)
|
||||||
{
|
{
|
||||||
static GtkWidget *window = NULL;
|
|
||||||
|
|
||||||
if (!window)
|
if (!window)
|
||||||
{
|
{
|
||||||
GtkWidget *container, *child;
|
GtkWidget *container, *child;
|
||||||
GtkStyleProvider *provider;
|
GtkStyleProvider *provider;
|
||||||
|
GBytes *bytes;
|
||||||
|
gsize data_size;
|
||||||
|
const guint8 *data;
|
||||||
|
|
||||||
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
||||||
gtk_window_set_title (GTK_WINDOW (window), "CSS Accordion");
|
|
||||||
gtk_window_set_transient_for (GTK_WINDOW (window), GTK_WINDOW (do_widget));
|
gtk_window_set_transient_for (GTK_WINDOW (window), GTK_WINDOW (do_widget));
|
||||||
gtk_window_set_default_size (GTK_WINDOW (window), 600, 300);
|
gtk_window_set_default_size (GTK_WINDOW (window), 600, 300);
|
||||||
g_signal_connect (window, "destroy",
|
g_signal_connect (window, "destroy",
|
||||||
G_CALLBACK (gtk_widget_destroyed), &window);
|
G_CALLBACK (gtk_widget_destroyed), &window);
|
||||||
|
|
||||||
container = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
|
container = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
|
||||||
gtk_widget_set_halign (container, GTK_ALIGN_CENTER);
|
gtk_widget_set_halign (container, GTK_ALIGN_CENTER);
|
||||||
gtk_widget_set_valign (container, GTK_ALIGN_CENTER);
|
gtk_widget_set_valign (container, GTK_ALIGN_CENTER);
|
||||||
@@ -55,7 +57,11 @@ do_css_accordion (GtkWidget *do_widget)
|
|||||||
gtk_container_add (GTK_CONTAINER (container), child);
|
gtk_container_add (GTK_CONTAINER (container), child);
|
||||||
|
|
||||||
provider = GTK_STYLE_PROVIDER (gtk_css_provider_new ());
|
provider = GTK_STYLE_PROVIDER (gtk_css_provider_new ());
|
||||||
gtk_css_provider_load_from_resource (GTK_CSS_PROVIDER (provider), "/css_accordion/css_accordion.css");
|
bytes = g_resources_lookup_data ("/css_accordion/css_accordion.css", 0, NULL);
|
||||||
|
data = g_bytes_get_data (bytes, &data_size);
|
||||||
|
|
||||||
|
gtk_css_provider_load_from_data (GTK_CSS_PROVIDER (provider), (gchar *)data, data_size, NULL);
|
||||||
|
g_bytes_unref (bytes);
|
||||||
|
|
||||||
apply_css (window, provider);
|
apply_css (window, provider);
|
||||||
}
|
}
|
||||||
@@ -63,7 +69,10 @@ do_css_accordion (GtkWidget *do_widget)
|
|||||||
if (!gtk_widget_get_visible (window))
|
if (!gtk_widget_get_visible (window))
|
||||||
gtk_widget_show_all (window);
|
gtk_widget_show_all (window);
|
||||||
else
|
else
|
||||||
gtk_widget_destroy (window);
|
{
|
||||||
|
gtk_widget_destroy (window);
|
||||||
|
window = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return window;
|
return window;
|
||||||
}
|
}
|
||||||
|
@@ -7,6 +7,8 @@
|
|||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
static GtkWidget *window = NULL;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
show_parsing_error (GtkCssProvider *provider,
|
show_parsing_error (GtkCssProvider *provider,
|
||||||
GtkCssSection *section,
|
GtkCssSection *section,
|
||||||
@@ -32,7 +34,7 @@ show_parsing_error (GtkCssProvider *provider,
|
|||||||
|
|
||||||
gtk_text_buffer_apply_tag_by_name (buffer, tag_name, &start, &end);
|
gtk_text_buffer_apply_tag_by_name (buffer, tag_name, &start, &end);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
css_text_changed (GtkTextBuffer *buffer,
|
css_text_changed (GtkTextBuffer *buffer,
|
||||||
GtkCssProvider *provider)
|
GtkCssProvider *provider)
|
||||||
@@ -62,17 +64,14 @@ apply_css (GtkWidget *widget, GtkStyleProvider *provider)
|
|||||||
GtkWidget *
|
GtkWidget *
|
||||||
do_css_basics (GtkWidget *do_widget)
|
do_css_basics (GtkWidget *do_widget)
|
||||||
{
|
{
|
||||||
static GtkWidget *window = NULL;
|
|
||||||
|
|
||||||
if (!window)
|
if (!window)
|
||||||
{
|
{
|
||||||
GtkWidget *container, *child;
|
GtkWidget *container, *child;
|
||||||
GtkStyleProvider *provider;
|
GtkStyleProvider *provider;
|
||||||
GtkTextBuffer *text;
|
GtkTextBuffer *text;
|
||||||
GBytes *bytes;
|
GBytes *bytes;
|
||||||
|
|
||||||
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
||||||
gtk_window_set_title (GTK_WINDOW (window), "CSS Basics");
|
|
||||||
gtk_window_set_transient_for (GTK_WINDOW (window), GTK_WINDOW (do_widget));
|
gtk_window_set_transient_for (GTK_WINDOW (window), GTK_WINDOW (do_widget));
|
||||||
gtk_window_set_default_size (GTK_WINDOW (window), 400, 300);
|
gtk_window_set_default_size (GTK_WINDOW (window), 400, 300);
|
||||||
g_signal_connect (window, "destroy",
|
g_signal_connect (window, "destroy",
|
||||||
@@ -89,13 +88,15 @@ do_css_basics (GtkWidget *do_widget)
|
|||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
provider = GTK_STYLE_PROVIDER (gtk_css_provider_new ());
|
provider = GTK_STYLE_PROVIDER (gtk_css_provider_new ());
|
||||||
|
|
||||||
container = gtk_scrolled_window_new (NULL, NULL);
|
container = gtk_scrolled_window_new (NULL, NULL);
|
||||||
gtk_container_add (GTK_CONTAINER (window), container);
|
gtk_container_add (GTK_CONTAINER (window), container);
|
||||||
child = gtk_text_view_new_with_buffer (text);
|
child = gtk_text_view_new_with_buffer (text);
|
||||||
gtk_container_add (GTK_CONTAINER (container), child);
|
gtk_container_add (GTK_CONTAINER (container), child);
|
||||||
g_signal_connect (text, "changed",
|
g_signal_connect (text,
|
||||||
G_CALLBACK (css_text_changed), provider);
|
"changed",
|
||||||
|
G_CALLBACK (css_text_changed),
|
||||||
|
provider);
|
||||||
|
|
||||||
bytes = g_resources_lookup_data ("/css_basics/css_basics.css", 0, NULL);
|
bytes = g_resources_lookup_data ("/css_basics/css_basics.css", 0, NULL);
|
||||||
gtk_text_buffer_set_text (text, g_bytes_get_data (bytes, NULL), g_bytes_get_size (bytes));
|
gtk_text_buffer_set_text (text, g_bytes_get_data (bytes, NULL), g_bytes_get_size (bytes));
|
||||||
@@ -112,7 +113,10 @@ do_css_basics (GtkWidget *do_widget)
|
|||||||
if (!gtk_widget_get_visible (window))
|
if (!gtk_widget_get_visible (window))
|
||||||
gtk_widget_show_all (window);
|
gtk_widget_show_all (window);
|
||||||
else
|
else
|
||||||
gtk_widget_destroy (window);
|
{
|
||||||
|
gtk_widget_destroy (window);
|
||||||
|
window = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return window;
|
return window;
|
||||||
}
|
}
|
||||||
|
@@ -7,6 +7,8 @@
|
|||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
static GtkWidget *window = NULL;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
show_parsing_error (GtkCssProvider *provider,
|
show_parsing_error (GtkCssProvider *provider,
|
||||||
GtkCssSection *section,
|
GtkCssSection *section,
|
||||||
@@ -32,7 +34,7 @@ show_parsing_error (GtkCssProvider *provider,
|
|||||||
|
|
||||||
gtk_text_buffer_apply_tag_by_name (buffer, tag_name, &start, &end);
|
gtk_text_buffer_apply_tag_by_name (buffer, tag_name, &start, &end);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
css_text_changed (GtkTextBuffer *buffer,
|
css_text_changed (GtkTextBuffer *buffer,
|
||||||
GtkCssProvider *provider)
|
GtkCssProvider *provider)
|
||||||
@@ -80,8 +82,6 @@ apply_css (GtkWidget *widget, GtkStyleProvider *provider)
|
|||||||
GtkWidget *
|
GtkWidget *
|
||||||
do_css_multiplebgs (GtkWidget *do_widget)
|
do_css_multiplebgs (GtkWidget *do_widget)
|
||||||
{
|
{
|
||||||
static GtkWidget *window = NULL;
|
|
||||||
|
|
||||||
if (!window)
|
if (!window)
|
||||||
{
|
{
|
||||||
GtkWidget *paned, *container, *child;
|
GtkWidget *paned, *container, *child;
|
||||||
@@ -90,7 +90,6 @@ do_css_multiplebgs (GtkWidget *do_widget)
|
|||||||
GBytes *bytes;
|
GBytes *bytes;
|
||||||
|
|
||||||
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
||||||
gtk_window_set_title (GTK_WINDOW (window), "Multiple Backgrounds");
|
|
||||||
gtk_window_set_transient_for (GTK_WINDOW (window), GTK_WINDOW (do_widget));
|
gtk_window_set_transient_for (GTK_WINDOW (window), GTK_WINDOW (do_widget));
|
||||||
gtk_window_set_default_size (GTK_WINDOW (window), 400, 300);
|
gtk_window_set_default_size (GTK_WINDOW (window), 400, 300);
|
||||||
g_signal_connect (window, "destroy",
|
g_signal_connect (window, "destroy",
|
||||||
@@ -163,7 +162,10 @@ do_css_multiplebgs (GtkWidget *do_widget)
|
|||||||
if (!gtk_widget_get_visible (window))
|
if (!gtk_widget_get_visible (window))
|
||||||
gtk_widget_show_all (window);
|
gtk_widget_show_all (window);
|
||||||
else
|
else
|
||||||
gtk_widget_destroy (window);
|
{
|
||||||
|
gtk_widget_destroy (window);
|
||||||
|
window = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return window;
|
return window;
|
||||||
}
|
}
|
||||||
|
@@ -6,6 +6,8 @@
|
|||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
static GtkWidget *window = NULL;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
show_parsing_error (GtkCssProvider *provider,
|
show_parsing_error (GtkCssProvider *provider,
|
||||||
GtkCssSection *section,
|
GtkCssSection *section,
|
||||||
@@ -31,7 +33,7 @@ show_parsing_error (GtkCssProvider *provider,
|
|||||||
|
|
||||||
gtk_text_buffer_apply_tag_by_name (buffer, tag_name, &start, &end);
|
gtk_text_buffer_apply_tag_by_name (buffer, tag_name, &start, &end);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
css_text_changed (GtkTextBuffer *buffer,
|
css_text_changed (GtkTextBuffer *buffer,
|
||||||
GtkCssProvider *provider)
|
GtkCssProvider *provider)
|
||||||
@@ -61,17 +63,14 @@ apply_css (GtkWidget *widget, GtkStyleProvider *provider)
|
|||||||
GtkWidget *
|
GtkWidget *
|
||||||
do_css_pixbufs (GtkWidget *do_widget)
|
do_css_pixbufs (GtkWidget *do_widget)
|
||||||
{
|
{
|
||||||
static GtkWidget *window = NULL;
|
|
||||||
|
|
||||||
if (!window)
|
if (!window)
|
||||||
{
|
{
|
||||||
GtkWidget *paned, *container, *child;
|
GtkWidget *paned, *container, *child;
|
||||||
GtkStyleProvider *provider;
|
GtkStyleProvider *provider;
|
||||||
GtkTextBuffer *text;
|
GtkTextBuffer *text;
|
||||||
GBytes *bytes;
|
GBytes *bytes;
|
||||||
|
|
||||||
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
||||||
gtk_window_set_title (GTK_WINDOW (window), "Animated Backgrounds");
|
|
||||||
gtk_window_set_transient_for (GTK_WINDOW (window), GTK_WINDOW (do_widget));
|
gtk_window_set_transient_for (GTK_WINDOW (window), GTK_WINDOW (do_widget));
|
||||||
gtk_window_set_default_size (GTK_WINDOW (window), 400, 300);
|
gtk_window_set_default_size (GTK_WINDOW (window), 400, 300);
|
||||||
g_signal_connect (window, "destroy",
|
g_signal_connect (window, "destroy",
|
||||||
@@ -95,13 +94,15 @@ do_css_pixbufs (GtkWidget *do_widget)
|
|||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
provider = GTK_STYLE_PROVIDER (gtk_css_provider_new ());
|
provider = GTK_STYLE_PROVIDER (gtk_css_provider_new ());
|
||||||
|
|
||||||
container = gtk_scrolled_window_new (NULL, NULL);
|
container = gtk_scrolled_window_new (NULL, NULL);
|
||||||
gtk_container_add (GTK_CONTAINER (paned), container);
|
gtk_container_add (GTK_CONTAINER (paned), container);
|
||||||
child = gtk_text_view_new_with_buffer (text);
|
child = gtk_text_view_new_with_buffer (text);
|
||||||
gtk_container_add (GTK_CONTAINER (container), child);
|
gtk_container_add (GTK_CONTAINER (container), child);
|
||||||
g_signal_connect (text, "changed",
|
g_signal_connect (text,
|
||||||
G_CALLBACK (css_text_changed), provider);
|
"changed",
|
||||||
|
G_CALLBACK (css_text_changed),
|
||||||
|
provider);
|
||||||
|
|
||||||
bytes = g_resources_lookup_data ("/css_pixbufs/gtk.css", 0, NULL);
|
bytes = g_resources_lookup_data ("/css_pixbufs/gtk.css", 0, NULL);
|
||||||
gtk_text_buffer_set_text (text, g_bytes_get_data (bytes, NULL), g_bytes_get_size (bytes));
|
gtk_text_buffer_set_text (text, g_bytes_get_data (bytes, NULL), g_bytes_get_size (bytes));
|
||||||
@@ -118,7 +119,10 @@ do_css_pixbufs (GtkWidget *do_widget)
|
|||||||
if (!gtk_widget_get_visible (window))
|
if (!gtk_widget_get_visible (window))
|
||||||
gtk_widget_show_all (window);
|
gtk_widget_show_all (window);
|
||||||
else
|
else
|
||||||
gtk_widget_destroy (window);
|
{
|
||||||
|
gtk_widget_destroy (window);
|
||||||
|
window = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return window;
|
return window;
|
||||||
}
|
}
|
||||||
|
@@ -5,6 +5,8 @@
|
|||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
static GtkWidget *window = NULL;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
show_parsing_error (GtkCssProvider *provider,
|
show_parsing_error (GtkCssProvider *provider,
|
||||||
GtkCssSection *section,
|
GtkCssSection *section,
|
||||||
@@ -30,7 +32,7 @@ show_parsing_error (GtkCssProvider *provider,
|
|||||||
|
|
||||||
gtk_text_buffer_apply_tag_by_name (buffer, tag_name, &start, &end);
|
gtk_text_buffer_apply_tag_by_name (buffer, tag_name, &start, &end);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
css_text_changed (GtkTextBuffer *buffer,
|
css_text_changed (GtkTextBuffer *buffer,
|
||||||
GtkCssProvider *provider)
|
GtkCssProvider *provider)
|
||||||
@@ -84,17 +86,14 @@ create_toolbar (void)
|
|||||||
GtkWidget *
|
GtkWidget *
|
||||||
do_css_shadows (GtkWidget *do_widget)
|
do_css_shadows (GtkWidget *do_widget)
|
||||||
{
|
{
|
||||||
static GtkWidget *window = NULL;
|
|
||||||
|
|
||||||
if (!window)
|
if (!window)
|
||||||
{
|
{
|
||||||
GtkWidget *paned, *container, *child;
|
GtkWidget *paned, *container, *child;
|
||||||
GtkStyleProvider *provider;
|
GtkStyleProvider *provider;
|
||||||
GtkTextBuffer *text;
|
GtkTextBuffer *text;
|
||||||
GBytes *bytes;
|
GBytes *bytes;
|
||||||
|
|
||||||
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
||||||
gtk_window_set_title (GTK_WINDOW (window), "Shadows");
|
|
||||||
gtk_window_set_transient_for (GTK_WINDOW (window), GTK_WINDOW (do_widget));
|
gtk_window_set_transient_for (GTK_WINDOW (window), GTK_WINDOW (do_widget));
|
||||||
gtk_window_set_default_size (GTK_WINDOW (window), 400, 300);
|
gtk_window_set_default_size (GTK_WINDOW (window), 400, 300);
|
||||||
g_signal_connect (window, "destroy",
|
g_signal_connect (window, "destroy",
|
||||||
@@ -117,13 +116,15 @@ do_css_shadows (GtkWidget *do_widget)
|
|||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
provider = GTK_STYLE_PROVIDER (gtk_css_provider_new ());
|
provider = GTK_STYLE_PROVIDER (gtk_css_provider_new ());
|
||||||
|
|
||||||
container = gtk_scrolled_window_new (NULL, NULL);
|
container = gtk_scrolled_window_new (NULL, NULL);
|
||||||
gtk_container_add (GTK_CONTAINER (paned), container);
|
gtk_container_add (GTK_CONTAINER (paned), container);
|
||||||
child = gtk_text_view_new_with_buffer (text);
|
child = gtk_text_view_new_with_buffer (text);
|
||||||
gtk_container_add (GTK_CONTAINER (container), child);
|
gtk_container_add (GTK_CONTAINER (container), child);
|
||||||
g_signal_connect (text, "changed",
|
g_signal_connect (text,
|
||||||
G_CALLBACK (css_text_changed), provider);
|
"changed",
|
||||||
|
G_CALLBACK (css_text_changed),
|
||||||
|
provider);
|
||||||
|
|
||||||
bytes = g_resources_lookup_data ("/css_shadows/gtk.css", 0, NULL);
|
bytes = g_resources_lookup_data ("/css_shadows/gtk.css", 0, NULL);
|
||||||
gtk_text_buffer_set_text (text, g_bytes_get_data (bytes, NULL), g_bytes_get_size (bytes));
|
gtk_text_buffer_set_text (text, g_bytes_get_data (bytes, NULL), g_bytes_get_size (bytes));
|
||||||
@@ -140,7 +141,10 @@ do_css_shadows (GtkWidget *do_widget)
|
|||||||
if (!gtk_widget_get_visible (window))
|
if (!gtk_widget_get_visible (window))
|
||||||
gtk_widget_show_all (window);
|
gtk_widget_show_all (window);
|
||||||
else
|
else
|
||||||
gtk_widget_destroy (window);
|
{
|
||||||
|
gtk_widget_destroy (window);
|
||||||
|
window = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return window;
|
return window;
|
||||||
}
|
}
|
||||||
|
@@ -1,161 +0,0 @@
|
|||||||
/* Cursors
|
|
||||||
*
|
|
||||||
* Demonstrates a useful set of available cursors.
|
|
||||||
*/
|
|
||||||
#include <gtk/gtk.h>
|
|
||||||
|
|
||||||
static void
|
|
||||||
set_cursor (GtkWidget *button, gpointer data)
|
|
||||||
{
|
|
||||||
GtkWidget *toplevel;
|
|
||||||
GdkCursor *cursor = data;
|
|
||||||
GdkWindow *window;
|
|
||||||
|
|
||||||
toplevel = gtk_widget_get_toplevel (button);
|
|
||||||
window = gtk_widget_get_window (toplevel);
|
|
||||||
gdk_window_set_cursor (window, cursor);
|
|
||||||
}
|
|
||||||
|
|
||||||
static GtkWidget *
|
|
||||||
add_section (GtkWidget *box,
|
|
||||||
const gchar *heading)
|
|
||||||
{
|
|
||||||
GtkWidget *label;
|
|
||||||
GtkWidget *section;
|
|
||||||
|
|
||||||
label = gtk_label_new (heading);
|
|
||||||
gtk_label_set_xalign (GTK_LABEL (label), 0.0);
|
|
||||||
gtk_widget_set_margin_top (label, 10);
|
|
||||||
gtk_widget_set_margin_bottom (label, 10);
|
|
||||||
gtk_box_pack_start (GTK_BOX (box), label, FALSE, TRUE, 0);
|
|
||||||
section = gtk_flow_box_new ();
|
|
||||||
gtk_widget_set_halign (section, GTK_ALIGN_START);
|
|
||||||
gtk_flow_box_set_selection_mode (GTK_FLOW_BOX (section), GTK_SELECTION_NONE);
|
|
||||||
gtk_flow_box_set_min_children_per_line (GTK_FLOW_BOX (section), 2);
|
|
||||||
gtk_flow_box_set_max_children_per_line (GTK_FLOW_BOX (section), 20);
|
|
||||||
gtk_box_pack_start (GTK_BOX (box), section, FALSE, TRUE, 0);
|
|
||||||
|
|
||||||
return section;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
add_button (GtkWidget *section,
|
|
||||||
const gchar *css_name)
|
|
||||||
{
|
|
||||||
GtkWidget *image, *button;
|
|
||||||
GdkDisplay *display;
|
|
||||||
GdkCursor *cursor;
|
|
||||||
|
|
||||||
display = gtk_widget_get_display (section);
|
|
||||||
cursor = gdk_cursor_new_from_name (display, css_name);
|
|
||||||
if (cursor == NULL)
|
|
||||||
image = gtk_image_new_from_icon_name ("image-missing", GTK_ICON_SIZE_MENU);
|
|
||||||
else
|
|
||||||
{
|
|
||||||
gchar *path;
|
|
||||||
|
|
||||||
path = g_strdup_printf ("/cursors/%s_cursor.png", css_name);
|
|
||||||
g_strdelimit (path, "-", '_');
|
|
||||||
image = gtk_image_new_from_resource (path);
|
|
||||||
g_free (path);
|
|
||||||
}
|
|
||||||
gtk_widget_set_size_request (image, 32, 32);
|
|
||||||
button = gtk_button_new ();
|
|
||||||
gtk_container_add (GTK_CONTAINER (button), image);
|
|
||||||
gtk_style_context_add_class (gtk_widget_get_style_context (button), "image-button");
|
|
||||||
g_signal_connect (button, "clicked", G_CALLBACK (set_cursor), cursor);
|
|
||||||
|
|
||||||
gtk_widget_set_tooltip_text (button, css_name);
|
|
||||||
gtk_container_add (GTK_CONTAINER (section), button);
|
|
||||||
}
|
|
||||||
|
|
||||||
GtkWidget *
|
|
||||||
do_cursors (GtkWidget *do_widget)
|
|
||||||
{
|
|
||||||
static GtkWidget *window = NULL;
|
|
||||||
|
|
||||||
if (!window)
|
|
||||||
{
|
|
||||||
GtkWidget *sw;
|
|
||||||
GtkWidget *box;
|
|
||||||
GtkWidget *section;
|
|
||||||
|
|
||||||
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
|
||||||
gtk_window_set_screen (GTK_WINDOW (window),
|
|
||||||
gtk_widget_get_screen (do_widget));
|
|
||||||
gtk_window_set_title (GTK_WINDOW (window), "Cursors");
|
|
||||||
gtk_window_set_default_size (GTK_WINDOW (window), 500, 500);
|
|
||||||
|
|
||||||
g_signal_connect (window, "destroy",
|
|
||||||
G_CALLBACK (gtk_widget_destroyed),
|
|
||||||
&window);
|
|
||||||
|
|
||||||
sw = gtk_scrolled_window_new (NULL, NULL);
|
|
||||||
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw),
|
|
||||||
GTK_POLICY_NEVER,
|
|
||||||
GTK_POLICY_AUTOMATIC);
|
|
||||||
gtk_container_add (GTK_CONTAINER (window), sw);
|
|
||||||
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
|
|
||||||
g_object_set (box,
|
|
||||||
"margin-start", 20,
|
|
||||||
"margin-end", 20,
|
|
||||||
"margin-bottom", 10,
|
|
||||||
NULL);
|
|
||||||
gtk_container_add (GTK_CONTAINER (sw), box);
|
|
||||||
|
|
||||||
section = add_section (box, "General");
|
|
||||||
add_button (section, "default");
|
|
||||||
add_button (section, "none");
|
|
||||||
|
|
||||||
section = add_section (box, "Link & Status");
|
|
||||||
add_button (section, "context-menu");
|
|
||||||
add_button (section, "help");
|
|
||||||
add_button (section, "pointer");
|
|
||||||
add_button (section, "progress");
|
|
||||||
add_button (section, "wait");
|
|
||||||
|
|
||||||
section = add_section (box, "Selection");
|
|
||||||
add_button (section, "cell");
|
|
||||||
add_button (section, "crosshair");
|
|
||||||
add_button (section, "text");
|
|
||||||
add_button (section, "vertical-text");
|
|
||||||
|
|
||||||
section = add_section (box, "Drag & Drop");
|
|
||||||
add_button (section, "alias");
|
|
||||||
add_button (section, "copy");
|
|
||||||
add_button (section, "move");
|
|
||||||
add_button (section, "no-drop");
|
|
||||||
add_button (section, "not-allowed");
|
|
||||||
add_button (section, "grab");
|
|
||||||
add_button (section, "grabbing");
|
|
||||||
|
|
||||||
section = add_section (box, "Resize & Scrolling");
|
|
||||||
add_button (section, "all-scroll");
|
|
||||||
add_button (section, "col-resize");
|
|
||||||
add_button (section, "row-resize");
|
|
||||||
add_button (section, "n-resize");
|
|
||||||
add_button (section, "e-resize");
|
|
||||||
add_button (section, "s-resize");
|
|
||||||
add_button (section, "w-resize");
|
|
||||||
add_button (section, "ne-resize");
|
|
||||||
add_button (section, "nw-resize");
|
|
||||||
add_button (section, "se-resize");
|
|
||||||
add_button (section, "sw-resize");
|
|
||||||
add_button (section, "ew-resize");
|
|
||||||
add_button (section, "ns-resize");
|
|
||||||
add_button (section, "nesw-resize");
|
|
||||||
add_button (section, "nwse-resize");
|
|
||||||
|
|
||||||
section = add_section (box, "Zoom");
|
|
||||||
add_button (section, "zoom-in");
|
|
||||||
add_button (section, "zoom-out");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!gtk_widget_get_visible (window))
|
|
||||||
gtk_widget_show_all (window);
|
|
||||||
else
|
|
||||||
gtk_widget_destroy (window);
|
|
||||||
|
|
||||||
|
|
||||||
return window;
|
|
||||||
}
|
|
Before Width: | Height: | Size: 324 B |
Before Width: | Height: | Size: 437 B |
Before Width: | Height: | Size: 465 B |
Before Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 581 B |
Before Width: | Height: | Size: 854 B |
Before Width: | Height: | Size: 7.4 KiB |
@@ -1,29 +0,0 @@
|
|||||||
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
|
|
||||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
|
||||||
|
|
||||||
<svg xmlns:cc='http://creativecommons.org/ns#' xmlns:dc='http://purl.org/dc/elements/1.1/' sodipodi:docname='gtk3-demo-symbolic.svg' height='16.000015' id='svg7384' xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape' xmlns:osb='http://www.openswatchbook.org/uri/2009/osb' xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd' xmlns:svg='http://www.w3.org/2000/svg' inkscape:version='0.48.5 r10040' version='1.1' width='16' xmlns='http://www.w3.org/2000/svg'>
|
|
||||||
<metadata id='metadata90'>
|
|
||||||
<rdf:RDF>
|
|
||||||
<cc:Work rdf:about=''>
|
|
||||||
<dc:format>image/svg+xml</dc:format>
|
|
||||||
<dc:type rdf:resource='http://purl.org/dc/dcmitype/StillImage'/>
|
|
||||||
<dc:title>Gnome Symbolic Icon Theme</dc:title>
|
|
||||||
</cc:Work>
|
|
||||||
</rdf:RDF>
|
|
||||||
</metadata>
|
|
||||||
<sodipodi:namedview inkscape:bbox-paths='true' bordercolor='#666666' borderopacity='1' inkscape:current-layer='layer9' inkscape:cx='-12.5126' inkscape:cy='-0.73412416' gridtolerance='10' inkscape:guide-bbox='true' guidetolerance='10' id='namedview88' inkscape:object-nodes='false' inkscape:object-paths='false' objecttolerance='10' pagecolor='#555753' inkscape:pageopacity='1' inkscape:pageshadow='2' showborder='false' showgrid='false' showguides='true' inkscape:snap-bbox='true' inkscape:snap-bbox-midpoints='false' inkscape:snap-global='true' inkscape:snap-grids='true' inkscape:snap-nodes='true' inkscape:snap-others='false' inkscape:snap-to-guides='true' inkscape:window-height='1375' inkscape:window-maximized='1' inkscape:window-width='2560' inkscape:window-x='0' inkscape:window-y='27' inkscape:zoom='5.6568542'>
|
|
||||||
<inkscape:grid empspacing='2' enabled='true' id='grid4866' originx='-182.99998px' originy='-251.99998px' snapvisiblegridlinesonly='true' spacingx='1px' spacingy='1px' type='xygrid' visible='true'/>
|
|
||||||
</sodipodi:namedview>
|
|
||||||
<title id='title9167'>Gnome Symbolic Icon Theme</title>
|
|
||||||
<defs id='defs7386'>
|
|
||||||
<linearGradient id='linearGradient7212' osb:paint='solid'>
|
|
||||||
<stop id='stop7214' offset='0' style='stop-color:#000000;stop-opacity:1;'/>
|
|
||||||
</linearGradient>
|
|
||||||
</defs>
|
|
||||||
<g inkscape:groupmode='layer' id='layer9' inkscape:label='apps' style='display:inline' transform='translate(-424.00018,35)'>
|
|
||||||
|
|
||||||
<rect height='8.0000048' id='rect7866' style='opacity:0.3;color:#000000;fill:#bebebe;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.39999998;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:new' transform='matrix(0.83205029,0.5547002,0,1,0,0)' width='7.2111053' x='510.78668' y='-314.33347'/>
|
|
||||||
<rect height='8.0000086' id='rect7868' style='opacity:0.5;color:#000000;fill:#bebebe;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.39999998;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:new' transform='matrix(-0.86824295,0.49613928,0,1,0,0)' width='8.0622425' x='-505.61908' y='219.8575'/>
|
|
||||||
<path inkscape:connector-curvature='0' d='m 431.53145,-28 -5.875,-3.65625 6.8125,-3.34375 6.03125,3 z' id='path7870' sodipodi:nodetypes='ccccc' style='color:#000000;fill:#bebebe;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.39999998;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:new'/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 1.2 KiB |
@@ -47,43 +47,6 @@
|
|||||||
<file>cssview.css</file>
|
<file>cssview.css</file>
|
||||||
<file>reset.css</file>
|
<file>reset.css</file>
|
||||||
</gresource>
|
</gresource>
|
||||||
<gresource prefix="/cursors">
|
|
||||||
<file>alias_cursor.png</file>
|
|
||||||
<file>all_scroll_cursor.png</file>
|
|
||||||
<file>cell_cursor.png</file>
|
|
||||||
<file>col_resize_cursor.png</file>
|
|
||||||
<file>copy_cursor.png</file>
|
|
||||||
<file>crosshair_cursor.png</file>
|
|
||||||
<file>default_cursor.png</file>
|
|
||||||
<file>e_resize_cursor.png</file>
|
|
||||||
<file>ew_resize_cursor.png</file>
|
|
||||||
<file>grabbing_cursor.png</file>
|
|
||||||
<file>grab_cursor.png</file>
|
|
||||||
<file>hand_cursor.png</file>
|
|
||||||
<file>help_cursor.png</file>
|
|
||||||
<file>move_cursor.png</file>
|
|
||||||
<file>ne_resize_cursor.png</file>
|
|
||||||
<file>nesw_resize_cursor.png</file>
|
|
||||||
<file>no_drop_cursor.png</file>
|
|
||||||
<file>none_cursor.png</file>
|
|
||||||
<file>not_allowed_cursor.png</file>
|
|
||||||
<file>n_resize_cursor.png</file>
|
|
||||||
<file>ns_resize_cursor.png</file>
|
|
||||||
<file>nw_resize_cursor.png</file>
|
|
||||||
<file>nwse_resize_cursor.png</file>
|
|
||||||
<file>pointer_cursor.png</file>
|
|
||||||
<file>progress_cursor.png</file>
|
|
||||||
<file>row_resize_cursor.png</file>
|
|
||||||
<file>se_resize_cursor.png</file>
|
|
||||||
<file>s_resize_cursor.png</file>
|
|
||||||
<file>sw_resize_cursor.png</file>
|
|
||||||
<file>text_cursor.png</file>
|
|
||||||
<file>vertical_text_cursor.png</file>
|
|
||||||
<file>wait_cursor.png</file>
|
|
||||||
<file>w_resize_cursor.png</file>
|
|
||||||
<file>zoom_in_cursor.png</file>
|
|
||||||
<file>zoom_out_cursor.png</file>
|
|
||||||
</gresource>
|
|
||||||
<gresource prefix="/iconview">
|
<gresource prefix="/iconview">
|
||||||
<file preprocess="to-pixdata">gnome-fs-directory.png</file>
|
<file preprocess="to-pixdata">gnome-fs-directory.png</file>
|
||||||
<file preprocess="to-pixdata">gnome-fs-regular.png</file>
|
<file preprocess="to-pixdata">gnome-fs-regular.png</file>
|
||||||
@@ -123,7 +86,6 @@
|
|||||||
<file>css_multiplebgs.c</file>
|
<file>css_multiplebgs.c</file>
|
||||||
<file>css_pixbufs.c</file>
|
<file>css_pixbufs.c</file>
|
||||||
<file>css_shadows.c</file>
|
<file>css_shadows.c</file>
|
||||||
<file>cursors.c</file>
|
|
||||||
<file>dialog.c</file>
|
<file>dialog.c</file>
|
||||||
<file>drawingarea.c</file>
|
<file>drawingarea.c</file>
|
||||||
<file>editable_cells.c</file>
|
<file>editable_cells.c</file>
|
||||||
@@ -131,11 +93,8 @@
|
|||||||
<file>entry_completion.c</file>
|
<file>entry_completion.c</file>
|
||||||
<file>event_axes.c</file>
|
<file>event_axes.c</file>
|
||||||
<file>expander.c</file>
|
<file>expander.c</file>
|
||||||
<file>filtermodel.c</file>
|
|
||||||
<file>flowbox.c</file>
|
<file>flowbox.c</file>
|
||||||
<file>font_features.c</file>
|
|
||||||
<file>gestures.c</file>
|
<file>gestures.c</file>
|
||||||
<file>glarea.c</file>
|
|
||||||
<file>headerbar.c</file>
|
<file>headerbar.c</file>
|
||||||
<file>hypertext.c</file>
|
<file>hypertext.c</file>
|
||||||
<file>iconview.c</file>
|
<file>iconview.c</file>
|
||||||
@@ -145,13 +104,10 @@
|
|||||||
<file>links.c</file>
|
<file>links.c</file>
|
||||||
<file>listbox.c</file>
|
<file>listbox.c</file>
|
||||||
<file>list_store.c</file>
|
<file>list_store.c</file>
|
||||||
<file>markup.c</file>
|
|
||||||
<file>menus.c</file>
|
<file>menus.c</file>
|
||||||
<file>offscreen_window.c</file>
|
<file>offscreen_window.c</file>
|
||||||
<file>offscreen_window2.c</file>
|
<file>offscreen_window2.c</file>
|
||||||
<file>overlay.c</file>
|
<file>overlay.c</file>
|
||||||
<file>overlay2.c</file>
|
|
||||||
<file>pagesetup.c</file>
|
|
||||||
<file>panes.c</file>
|
<file>panes.c</file>
|
||||||
<file>pickers.c</file>
|
<file>pickers.c</file>
|
||||||
<file>pixbufs.c</file>
|
<file>pixbufs.c</file>
|
||||||
@@ -162,9 +118,7 @@
|
|||||||
<file>search_entry.c</file>
|
<file>search_entry.c</file>
|
||||||
<file>search_entry2.c</file>
|
<file>search_entry2.c</file>
|
||||||
<file>sizegroup.c</file>
|
<file>sizegroup.c</file>
|
||||||
<file>sidebar.c</file>
|
|
||||||
<file>stack.c</file>
|
<file>stack.c</file>
|
||||||
<file>spinbutton.c</file>
|
|
||||||
<file>spinner.c</file>
|
<file>spinner.c</file>
|
||||||
<file>textview.c</file>
|
<file>textview.c</file>
|
||||||
<file>textscroll.c</file>
|
<file>textscroll.c</file>
|
||||||
@@ -172,7 +126,6 @@
|
|||||||
<file>toolpalette.c</file>
|
<file>toolpalette.c</file>
|
||||||
<file>transparent.c</file>
|
<file>transparent.c</file>
|
||||||
<file>tree_store.c</file>
|
<file>tree_store.c</file>
|
||||||
<file>textmask.c</file>
|
|
||||||
</gresource>
|
</gresource>
|
||||||
<gresource prefix="/textview">
|
<gresource prefix="/textview">
|
||||||
<file>floppybuddy.gif</file>
|
<file>floppybuddy.gif</file>
|
||||||
@@ -185,24 +138,4 @@
|
|||||||
<gresource prefix="/popover">
|
<gresource prefix="/popover">
|
||||||
<file>popover.ui</file>
|
<file>popover.ui</file>
|
||||||
</gresource>
|
</gresource>
|
||||||
<gresource prefix="/glarea">
|
|
||||||
<file>glarea-fragment.glsl</file>
|
|
||||||
<file>glarea-vertex.glsl</file>
|
|
||||||
</gresource>
|
|
||||||
<gresource prefix="/font-features">
|
|
||||||
<file>font-features.ui</file>
|
|
||||||
</gresource>
|
|
||||||
<gresource prefix="/spinbutton">
|
|
||||||
<file>spinbutton.ui</file>
|
|
||||||
</gresource>
|
|
||||||
<gresource prefix="/filtermodel">
|
|
||||||
<file>filtermodel.ui</file>
|
|
||||||
</gresource>
|
|
||||||
<gresource prefix="/overlay2">
|
|
||||||
<file>decor1.png</file>
|
|
||||||
<file>decor2.png</file>
|
|
||||||
</gresource>
|
|
||||||
<gresource prefix="/markup">
|
|
||||||
<file>markup.txt</file>
|
|
||||||
</gresource>
|
|
||||||
</gresources>
|
</gresources>
|
||||||
|
@@ -1,302 +1,264 @@
|
|||||||
<?xml version="1.0" standalone="no"?>
|
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
|
||||||
<!--*- mode: xml -*-->
|
|
||||||
<interface>
|
<interface>
|
||||||
<object class="GtkListStore" id="liststore1">
|
<object class="GtkListStore" id="liststore1">
|
||||||
<columns>
|
<columns>
|
||||||
<column type="gchararray"/>
|
<column type="gchararray"/>
|
||||||
<column type="gchararray"/>
|
<column type="gchararray"/>
|
||||||
<column type="gint"/>
|
<column type="gint"/>
|
||||||
<column type="gchararray"/>
|
<column type="gchararray"/>
|
||||||
</columns>
|
</columns>
|
||||||
<data>
|
<data>
|
||||||
<row>
|
<row>
|
||||||
<col id="0" translatable="yes">John</col>
|
<col id="0" translatable="yes">John</col>
|
||||||
<col id="1" translatable="yes">Doe</col>
|
<col id="1" translatable="yes">Doe</col>
|
||||||
<col id="2">25</col>
|
<col id="2">25</col>
|
||||||
<col id="3" translatable="yes">This is the John Doe row</col>
|
<col id="3" translatable="yes">This is the John Doe row</col>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<col id="0" translatable="yes">Mary</col>
|
<col id="0" translatable="yes">Mary</col>
|
||||||
<col id="1" translatable="yes">Unknown</col>
|
<col id="1" translatable="yes">Unknown</col>
|
||||||
<col id="2">50</col>
|
<col id="2">50</col>
|
||||||
<col id="3" translatable="yes">This is the Mary Unknown row</col>
|
<col id="3" translatable="yes">This is the Mary Unknown row</col>
|
||||||
</row>
|
</row>
|
||||||
</data>
|
</data>
|
||||||
</object>
|
</object>
|
||||||
<object class="GtkAboutDialog" id="aboutdialog1">
|
<object class="GtkUIManager" id="uimanager">
|
||||||
<property name="program-name" translatable="yes">Builder demo</property>
|
|
||||||
<property name="logo-icon-name" translatable="yes">gtk3-demo</property>
|
|
||||||
<accessibility>
|
|
||||||
<relation target="window1" type="subwindow-of"/>
|
|
||||||
</accessibility>
|
|
||||||
</object>
|
|
||||||
<object class="GtkWindow" id="window1">
|
|
||||||
<property name="default_height">250</property>
|
|
||||||
<property name="default_width">440</property>
|
|
||||||
<property name="title" translatable="yes">Builder</property>
|
|
||||||
<child>
|
|
||||||
<object class="GtkVBox" id="vbox1">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkMenuBar" id="menubar1">
|
<object class="GtkActionGroup" id="DefaultActions">
|
||||||
<property name="visible">True</property>
|
<child>
|
||||||
<child internal-child="accessible">
|
<object class="GtkAction" id="Copy">
|
||||||
<object class="AtkObject" id="a11y-menubar">
|
<property name="name">Copy</property>
|
||||||
<property name="AtkObject::accessible-name">The menubar</property>
|
<property name="tooltip" translatable="yes">Copy selected object into the clipboard</property>
|
||||||
</object>
|
<property name="stock_id">gtk-copy</property>
|
||||||
</child>
|
</object>
|
||||||
<child>
|
|
||||||
<object class="GtkMenuItem">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="label" translatable="yes">_File</property>
|
|
||||||
<property name="use-underline">True</property>
|
|
||||||
<child type="submenu">
|
|
||||||
<object class="GtkMenu">
|
|
||||||
<child>
|
|
||||||
<object class="GtkMenuItem" id="new_item">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="label" translatable="yes">_New</property>
|
|
||||||
<property name="use-underline">True</property>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkMenuItem" id="open_item">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="label" translatable="yes">_Open</property>
|
|
||||||
<property name="use-underline">True</property>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkMenuItem" id="save_item">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="label" translatable="yes">_Save</property>
|
|
||||||
<property name="use-underline">True</property>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkMenuItem" id="save_as_item">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="label" translatable="yes">Save _As</property>
|
|
||||||
<property name="use-underline">True</property>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkSeparatorMenuItem">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkMenuItem" id="quit_item">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="label" translatable="yes">_Quit</property>
|
|
||||||
<property name="use-underline">True</property>
|
|
||||||
<property name="action-name">win.quit</property>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
</object>
|
|
||||||
</child>
|
</child>
|
||||||
</object>
|
<child>
|
||||||
</child>
|
<object class="GtkAction" id="Cut">
|
||||||
<child>
|
<property name="name">Cut</property>
|
||||||
<object class="GtkMenuItem">
|
<property name="tooltip" translatable="yes">Cut selected object into the clipboard</property>
|
||||||
<property name="visible">True</property>
|
<property name="stock_id">gtk-cut</property>
|
||||||
<property name="label" translatable="yes">_Edit</property>
|
</object>
|
||||||
<property name="use-underline">True</property>
|
|
||||||
<child type="submenu">
|
|
||||||
<object class="GtkMenu">
|
|
||||||
<child>
|
|
||||||
<object class="GtkMenuItem" id="copy_item">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="label" translatable="yes">_Copy</property>
|
|
||||||
<property name="use-underline">True</property>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkMenuItem" id="cut_item">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="label" translatable="yes">_Cut</property>
|
|
||||||
<property name="use-underline">True</property>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkMenuItem" id="paste_item">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="label" translatable="yes">_Paste</property>
|
|
||||||
<property name="use-underline">True</property>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
</object>
|
|
||||||
</child>
|
</child>
|
||||||
</object>
|
<child>
|
||||||
</child>
|
<object class="GtkAction" id="EditMenu">
|
||||||
<child>
|
<property name="name">EditMenu</property>
|
||||||
<object class="GtkMenuItem">
|
<property name="label" translatable="yes">_Edit</property>
|
||||||
<property name="visible">True</property>
|
</object>
|
||||||
<property name="label" translatable="yes">_Help</property>
|
</child>
|
||||||
<property name="use-underline">True</property>
|
<child>
|
||||||
<child type="submenu">
|
<object class="GtkAction" id="FileMenu">
|
||||||
<object class="GtkMenu">
|
<property name="name">FileMenu</property>
|
||||||
<child>
|
<property name="label" translatable="yes">_File</property>
|
||||||
<object class="GtkMenuItem" id="help_item">
|
</object>
|
||||||
<property name="visible">True</property>
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkAction" id="New">
|
||||||
|
<property name="name">New</property>
|
||||||
|
<property name="tooltip" translatable="yes">Create a new file</property>
|
||||||
|
<property name="stock_id">gtk-new</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkAction" id="Open">
|
||||||
|
<property name="name">Open</property>
|
||||||
|
<property name="tooltip" translatable="yes">Open a file</property>
|
||||||
|
<property name="stock_id">gtk-open</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkAction" id="Paste">
|
||||||
|
<property name="name">Paste</property>
|
||||||
|
<property name="tooltip" translatable="yes">Paste object from the Clipboard</property>
|
||||||
|
<property name="stock_id">gtk-paste</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkAction" id="Quit">
|
||||||
|
<property name="name">Quit</property>
|
||||||
|
<property name="tooltip" translatable="yes">Quit the program</property>
|
||||||
|
<property name="stock_id">gtk-quit</property>
|
||||||
|
<signal handler="quit_activate" name="activate"/>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkAction" id="Save">
|
||||||
|
<property name="name">Save</property>
|
||||||
|
<property name="is_important">True</property>
|
||||||
|
<property name="tooltip" translatable="yes">Save a file</property>
|
||||||
|
<property name="stock_id">gtk-save</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkAction" id="SaveAs">
|
||||||
|
<property name="name">SaveAs</property>
|
||||||
|
<property name="tooltip" translatable="yes">Save with a different name</property>
|
||||||
|
<property name="stock_id">gtk-save-as</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkAction" id="HelpMenu">
|
||||||
|
<property name="name">HelpMenu</property>
|
||||||
<property name="label" translatable="yes">_Help</property>
|
<property name="label" translatable="yes">_Help</property>
|
||||||
<property name="use-underline">True</property>
|
</object>
|
||||||
<property name="action-name">win.help</property>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkMenuItem" id="about_item">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="label" translatable="yes">_About</property>
|
|
||||||
<property name="use-underline">True</property>
|
|
||||||
<property name="action-name">win.about</property>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
</object>
|
|
||||||
</child>
|
</child>
|
||||||
</object>
|
<child>
|
||||||
</child>
|
<object class="GtkAction" id="About">
|
||||||
</object>
|
<property name="name">About</property>
|
||||||
<packing>
|
<property name="stock_id">gtk-about</property>
|
||||||
<property name="expand">False</property>
|
<signal handler="about_activate" name="activate"/>
|
||||||
</packing>
|
</object>
|
||||||
|
<accelerator key="F7"/>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkAction" id="Help">
|
||||||
|
<property name="name">Help</property>
|
||||||
|
<property name="stock_id">gtk-help</property>
|
||||||
|
<signal handler="help_activate" name="activate"/>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
</child>
|
</child>
|
||||||
|
<ui>
|
||||||
|
<menubar name="menubar1">
|
||||||
|
<menu action="FileMenu" name="FileMenu">
|
||||||
|
<menuitem action="New" name="New"/>
|
||||||
|
<menuitem action="Open" name="Open"/>
|
||||||
|
<menuitem action="Save" name="Save"/>
|
||||||
|
<menuitem action="SaveAs" name="SaveAs"/>
|
||||||
|
<separator/>
|
||||||
|
<menuitem action="Quit" name="Quit"/>
|
||||||
|
</menu>
|
||||||
|
<menu action="EditMenu">
|
||||||
|
<menuitem action="Copy" name="Copy"/>
|
||||||
|
<menuitem action="Cut" name="Cut"/>
|
||||||
|
<menuitem action="Paste" name="Paste"/>
|
||||||
|
</menu>
|
||||||
|
<menu action="HelpMenu" name="HelpMenu">
|
||||||
|
<menuitem action="Help" name="Help"/>
|
||||||
|
<menuitem action="About" name="About"/>
|
||||||
|
</menu>
|
||||||
|
</menubar>
|
||||||
|
<toolbar name="toolbar1">
|
||||||
|
<toolitem action="New" name="New"/>
|
||||||
|
<toolitem action="Open" name="Open"/>
|
||||||
|
<toolitem action="Save" name="Save"/>
|
||||||
|
<separator/>
|
||||||
|
<toolitem action="Copy" name="Copy"/>
|
||||||
|
<toolitem action="Cut" name="Cut"/>
|
||||||
|
<toolitem action="Paste" name="Paste"/>
|
||||||
|
</toolbar>
|
||||||
|
</ui>
|
||||||
|
</object>
|
||||||
|
<object class="GtkAboutDialog" id="aboutdialog1">
|
||||||
|
<property name="program-name" translatable="yes">GtkBuilder demo</property>
|
||||||
|
<property name="logo-icon-name" translatable="yes">gtk3-demo</property>
|
||||||
|
<accessibility>
|
||||||
|
<relation target="window1" type="subwindow-of"/>
|
||||||
|
</accessibility>
|
||||||
|
</object>
|
||||||
|
<object class="GtkWindow" id="window1">
|
||||||
|
<property name="default_height">250</property>
|
||||||
|
<property name="default_width">440</property>
|
||||||
|
<property name="title">GtkBuilder demo</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkToolbar" id="toolbar1">
|
<object class="GtkVBox" id="vbox1">
|
||||||
<property name="visible">True</property>
|
|
||||||
<child internal-child="accessible">
|
|
||||||
<object class="AtkObject" id="a11y-toolbar">
|
|
||||||
<property name="AtkObject::accessible-name">The toolbar</property>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkToolButton">
|
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="label" translatable="yes">New</property>
|
<child>
|
||||||
<property name="tooltip-text" translatable="yes">Create a new file</property>
|
<object constructor="uimanager" class="GtkMenuBar" id="menubar1">
|
||||||
<property name="icon-name">document-new</property>
|
<property name="visible">True</property>
|
||||||
</object>
|
<child internal-child="accessible">
|
||||||
</child>
|
<object class="AtkObject" id="a11y-menubar">
|
||||||
<child>
|
<property name="AtkObject::accessible-name">The menubar</property>
|
||||||
<object class="GtkToolButton">
|
</object>
|
||||||
<property name="visible">True</property>
|
</child>
|
||||||
<property name="label" translatable="yes">Open</property>
|
</object>
|
||||||
<property name="tooltip-text" translatable="yes">Open a file</property>
|
<packing>
|
||||||
<property name="icon-name">document-open</property>
|
<property name="expand">False</property>
|
||||||
</object>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkToolButton">
|
<object constructor="uimanager" class="GtkToolbar" id="toolbar1">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="label" translatable="yes">Save</property>
|
<child internal-child="accessible">
|
||||||
<property name="tooltip-text" translatable="yes">Save a file</property>
|
<object class="AtkObject" id="a11y-toolbar">
|
||||||
<property name="icon-name">document-save</property>
|
<property name="AtkObject::accessible-name">The toolbar</property>
|
||||||
<property name="is-important">True</property>
|
</object>
|
||||||
</object>
|
</child>
|
||||||
</child>
|
</object>
|
||||||
<child>
|
<packing>
|
||||||
<object class="GtkSeparatorToolItem">
|
<property name="expand">False</property>
|
||||||
<property name="visible">True</property>
|
<property name="position">1</property>
|
||||||
</object>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkToolButton">
|
<object class="GtkScrolledWindow" id="scrolledwindow1">
|
||||||
<property name="visible">True</property>
|
<property name="hscrollbar_policy">automatic</property>
|
||||||
<property name="label" translatable="yes">Copy</property>
|
<property name="shadow_type">in</property>
|
||||||
<property name="tooltip-text" translatable="yes">Copy selected object into the clipboard</property>
|
<property name="visible">True</property>
|
||||||
<property name="icon-name">edit-copy</property>
|
<property name="vscrollbar_policy">automatic</property>
|
||||||
</object>
|
<child>
|
||||||
</child>
|
<object class="GtkTreeView" id="treeview1">
|
||||||
<child>
|
<property name="visible">True</property>
|
||||||
<object class="GtkToolButton">
|
<property name="model">liststore1</property>
|
||||||
<property name="visible">True</property>
|
<property name="tooltip-column">3</property>
|
||||||
<property name="label" translatable="yes">Cut</property>
|
<child internal-child="accessible">
|
||||||
<property name="tooltip-text" translatable="yes">Cut selected object into the clipboard</property>
|
<object class="AtkObject" id="a11y-treeview">
|
||||||
<property name="icon-name">edit-cut</property>
|
<property name="AtkObject::accessible-name">Name list</property>
|
||||||
</object>
|
<property name="AtkObject::accessible-description">
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkToolButton">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="label" translatable="yes">Paste</property>
|
|
||||||
<property name="tooltip-text" translatable="yes">Paste object from the clipboard</property>
|
|
||||||
<property name="icon-name">edit-paste</property>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="position">1</property>
|
|
||||||
<property name="expand">False</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkScrolledWindow" id="scrolledwindow1">
|
|
||||||
<property name="shadow_type">in</property>
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<child>
|
|
||||||
<object class="GtkTreeView" id="treeview1">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="model">liststore1</property>
|
|
||||||
<property name="tooltip-column">3</property>
|
|
||||||
<child internal-child="accessible">
|
|
||||||
<object class="AtkObject" id="a11y-treeview">
|
|
||||||
<property name="AtkObject::accessible-name">Name list</property>
|
|
||||||
<property name="AtkObject::accessible-description">
|
|
||||||
A list of person with name, surname and age columns
|
A list of person with name, surname and age columns
|
||||||
</property>
|
</property>
|
||||||
</object>
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkTreeViewColumn" id="column1">
|
||||||
|
<property name="title">Name</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkCellRendererText" id="renderer1"/>
|
||||||
|
<attributes>
|
||||||
|
<attribute name="text">0</attribute>
|
||||||
|
</attributes>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkTreeViewColumn" id="column2">
|
||||||
|
<property name="title">Surname</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkCellRendererText" id="renderer2"/>
|
||||||
|
<attributes>
|
||||||
|
<attribute name="text">1</attribute>
|
||||||
|
</attributes>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkTreeViewColumn" id="column3">
|
||||||
|
<property name="title">Age</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkCellRendererText" id="renderer3"/>
|
||||||
|
<attributes>
|
||||||
|
<attribute name="text">2</attribute>
|
||||||
|
</attributes>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="position">2</property>
|
||||||
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkTreeViewColumn" id="column1">
|
<object class="GtkStatusbar" id="statusbar1">
|
||||||
<property name="title">Name</property>
|
<property name="visible">True</property>
|
||||||
<child>
|
</object>
|
||||||
<object class="GtkCellRendererText" id="renderer1"/>
|
<packing>
|
||||||
<attributes>
|
<property name="expand">False</property>
|
||||||
<attribute name="text">0</attribute>
|
<property name="position">3</property>
|
||||||
</attributes>
|
</packing>
|
||||||
</child>
|
|
||||||
</object>
|
|
||||||
</child>
|
</child>
|
||||||
<child>
|
</object>
|
||||||
<object class="GtkTreeViewColumn" id="column2">
|
|
||||||
<property name="title">Surname</property>
|
|
||||||
<child>
|
|
||||||
<object class="GtkCellRendererText" id="renderer2"/>
|
|
||||||
<attributes>
|
|
||||||
<attribute name="text">1</attribute>
|
|
||||||
</attributes>
|
|
||||||
</child>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkTreeViewColumn" id="column3">
|
|
||||||
<property name="title">Age</property>
|
|
||||||
<child>
|
|
||||||
<object class="GtkCellRendererText" id="renderer3"/>
|
|
||||||
<attributes>
|
|
||||||
<attribute name="text">2</attribute>
|
|
||||||
</attributes>
|
|
||||||
</child>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="position">2</property>
|
|
||||||
<property name="expand">True</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
</child>
|
||||||
<child>
|
</object>
|
||||||
<object class="GtkStatusbar" id="statusbar1">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="position">3</property>
|
|
||||||
<property name="expand">False</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
</object>
|
|
||||||
</interface>
|
</interface>
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
/* Dialogs and Message Boxes
|
/* Dialog and Message Boxes
|
||||||
*
|
*
|
||||||
* Dialog widgets are used to pop up a transient window for user feedback.
|
* Dialog widgets are used to pop up a transient window for user feedback.
|
||||||
*/
|
*/
|
||||||
@@ -109,11 +109,9 @@ do_dialog (GtkWidget *do_widget)
|
|||||||
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
||||||
gtk_window_set_screen (GTK_WINDOW (window),
|
gtk_window_set_screen (GTK_WINDOW (window),
|
||||||
gtk_widget_get_screen (do_widget));
|
gtk_widget_get_screen (do_widget));
|
||||||
gtk_window_set_title (GTK_WINDOW (window), "Dialogs and Message Boxes");
|
gtk_window_set_title (GTK_WINDOW (window), "Dialogs");
|
||||||
|
|
||||||
g_signal_connect (window, "destroy",
|
|
||||||
G_CALLBACK (gtk_widget_destroyed), &window);
|
|
||||||
|
|
||||||
|
g_signal_connect (window, "destroy", G_CALLBACK (gtk_widget_destroyed), &window);
|
||||||
gtk_container_set_border_width (GTK_CONTAINER (window), 8);
|
gtk_container_set_border_width (GTK_CONTAINER (window), 8);
|
||||||
|
|
||||||
frame = gtk_frame_new ("Dialogs");
|
frame = gtk_frame_new ("Dialogs");
|
||||||
@@ -165,9 +163,14 @@ do_dialog (GtkWidget *do_widget)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!gtk_widget_get_visible (window))
|
if (!gtk_widget_get_visible (window))
|
||||||
gtk_widget_show_all (window);
|
{
|
||||||
|
gtk_widget_show_all (window);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
gtk_widget_destroy (window);
|
{
|
||||||
|
gtk_widget_destroy (window);
|
||||||
|
window = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return window;
|
return window;
|
||||||
}
|
}
|
||||||
|
@@ -212,8 +212,7 @@ do_drawingarea (GtkWidget *do_widget)
|
|||||||
gtk_widget_get_screen (do_widget));
|
gtk_widget_get_screen (do_widget));
|
||||||
gtk_window_set_title (GTK_WINDOW (window), "Drawing Area");
|
gtk_window_set_title (GTK_WINDOW (window), "Drawing Area");
|
||||||
|
|
||||||
g_signal_connect (window, "destroy",
|
g_signal_connect (window, "destroy", G_CALLBACK (close_window), NULL);
|
||||||
G_CALLBACK (close_window), NULL);
|
|
||||||
|
|
||||||
gtk_container_set_border_width (GTK_CONTAINER (window), 8);
|
gtk_container_set_border_width (GTK_CONTAINER (window), 8);
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 1.3 KiB |
@@ -14,6 +14,8 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
static GtkWidget *window = NULL;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
gint number;
|
gint number;
|
||||||
@@ -156,18 +158,11 @@ add_item (GtkWidget *button, gpointer data)
|
|||||||
/* Insert a new row below the current one */
|
/* Insert a new row below the current one */
|
||||||
gtk_tree_view_get_cursor (treeview, &path, NULL);
|
gtk_tree_view_get_cursor (treeview, &path, NULL);
|
||||||
model = gtk_tree_view_get_model (treeview);
|
model = gtk_tree_view_get_model (treeview);
|
||||||
if (path)
|
gtk_tree_model_get_iter (model, ¤t, path);
|
||||||
{
|
gtk_tree_path_free (path);
|
||||||
gtk_tree_model_get_iter (model, ¤t, path);
|
|
||||||
gtk_tree_path_free (path);
|
|
||||||
gtk_list_store_insert_after (GTK_LIST_STORE (model), &iter, ¤t);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
gtk_list_store_insert (GTK_LIST_STORE (model), &iter, -1);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Set the data for the new row */
|
/* Set the data for the new row */
|
||||||
|
gtk_list_store_insert_after (GTK_LIST_STORE (model), &iter, ¤t);
|
||||||
gtk_list_store_set (GTK_LIST_STORE (model), &iter,
|
gtk_list_store_set (GTK_LIST_STORE (model), &iter,
|
||||||
COLUMN_ITEM_NUMBER, foo.number,
|
COLUMN_ITEM_NUMBER, foo.number,
|
||||||
COLUMN_ITEM_PRODUCT, foo.product,
|
COLUMN_ITEM_PRODUCT, foo.product,
|
||||||
@@ -333,8 +328,6 @@ add_columns (GtkTreeView *treeview,
|
|||||||
GtkWidget *
|
GtkWidget *
|
||||||
do_editable_cells (GtkWidget *do_widget)
|
do_editable_cells (GtkWidget *do_widget)
|
||||||
{
|
{
|
||||||
static GtkWidget *window = NULL;
|
|
||||||
|
|
||||||
if (!window)
|
if (!window)
|
||||||
{
|
{
|
||||||
GtkWidget *vbox;
|
GtkWidget *vbox;
|
||||||
@@ -345,10 +338,11 @@ do_editable_cells (GtkWidget *do_widget)
|
|||||||
GtkTreeModel *items_model;
|
GtkTreeModel *items_model;
|
||||||
GtkTreeModel *numbers_model;
|
GtkTreeModel *numbers_model;
|
||||||
|
|
||||||
|
/* create window, etc */
|
||||||
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
||||||
gtk_window_set_screen (GTK_WINDOW (window),
|
gtk_window_set_screen (GTK_WINDOW (window),
|
||||||
gtk_widget_get_screen (do_widget));
|
gtk_widget_get_screen (do_widget));
|
||||||
gtk_window_set_title (GTK_WINDOW (window), "Editable Cells");
|
gtk_window_set_title (GTK_WINDOW (window), "Shopping list");
|
||||||
gtk_container_set_border_width (GTK_CONTAINER (window), 5);
|
gtk_container_set_border_width (GTK_CONTAINER (window), 5);
|
||||||
g_signal_connect (window, "destroy",
|
g_signal_connect (window, "destroy",
|
||||||
G_CALLBACK (gtk_widget_destroyed), &window);
|
G_CALLBACK (gtk_widget_destroyed), &window);
|
||||||
@@ -405,7 +399,10 @@ do_editable_cells (GtkWidget *do_widget)
|
|||||||
if (!gtk_widget_get_visible (window))
|
if (!gtk_widget_get_visible (window))
|
||||||
gtk_widget_show_all (window);
|
gtk_widget_show_all (window);
|
||||||
else
|
else
|
||||||
gtk_widget_destroy (window);
|
{
|
||||||
|
gtk_widget_destroy (window);
|
||||||
|
window = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return window;
|
return window;
|
||||||
}
|
}
|
||||||
|
@@ -1,55 +1,62 @@
|
|||||||
/* Entry/Entry Buffer
|
/* Entry/Entry Buffer
|
||||||
*
|
*
|
||||||
* GtkEntryBuffer provides the text content in a GtkEntry.
|
* GtkEntryBuffer provides the text content in a GtkEntry.
|
||||||
* Applications can provide their own buffer implementation,
|
*
|
||||||
* e.g. to provide secure handling for passwords in memory.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <glib/gi18n.h>
|
#include <glib/gi18n.h>
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
static GtkWidget *window = NULL;
|
||||||
|
|
||||||
GtkWidget *
|
GtkWidget *
|
||||||
do_entry_buffer (GtkWidget *do_widget)
|
do_entry_buffer (GtkWidget *do_widget)
|
||||||
{
|
{
|
||||||
static GtkWidget *window = NULL;
|
GtkWidget *content_area;
|
||||||
GtkWidget *vbox;
|
GtkWidget *vbox;
|
||||||
GtkWidget *label;
|
GtkWidget *label;
|
||||||
GtkWidget *entry;
|
GtkWidget *entry;
|
||||||
GtkEntryBuffer *buffer;
|
GtkEntryBuffer *buffer;
|
||||||
|
|
||||||
if (!window)
|
if (!window)
|
||||||
{
|
{
|
||||||
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
window = gtk_dialog_new_with_buttons ("GtkEntryBuffer",
|
||||||
gtk_window_set_screen (GTK_WINDOW (window),
|
GTK_WINDOW (do_widget),
|
||||||
gtk_widget_get_screen (do_widget));
|
0,
|
||||||
gtk_window_set_title (GTK_WINDOW (window), "Entry Buffer");
|
_("_Close"),
|
||||||
gtk_window_set_resizable (GTK_WINDOW (window), FALSE);
|
GTK_RESPONSE_NONE,
|
||||||
g_signal_connect (window, "destroy",
|
NULL);
|
||||||
G_CALLBACK (gtk_widget_destroyed), &window);
|
gtk_window_set_resizable (GTK_WINDOW (window), FALSE);
|
||||||
|
|
||||||
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
|
g_signal_connect (window, "response",
|
||||||
gtk_container_add (GTK_CONTAINER (window), vbox);
|
G_CALLBACK (gtk_widget_destroy), NULL);
|
||||||
gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
|
g_signal_connect (window, "destroy",
|
||||||
|
G_CALLBACK (gtk_widget_destroyed), &window);
|
||||||
|
|
||||||
label = gtk_label_new (NULL);
|
content_area = gtk_dialog_get_content_area (GTK_DIALOG (window));
|
||||||
gtk_label_set_markup (GTK_LABEL (label),
|
|
||||||
"Entries share a buffer. Typing in one is reflected in the other.");
|
|
||||||
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
|
|
||||||
|
|
||||||
/* Create a buffer */
|
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
|
||||||
buffer = gtk_entry_buffer_new (NULL, 0);
|
gtk_box_pack_start (GTK_BOX (content_area), vbox, TRUE, TRUE, 0);
|
||||||
|
gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
|
||||||
|
|
||||||
/* Create our first entry */
|
label = gtk_label_new (NULL);
|
||||||
entry = gtk_entry_new_with_buffer (buffer);
|
gtk_label_set_markup (GTK_LABEL (label), "Entries share a buffer. Typing in one is reflected in the other.");
|
||||||
gtk_box_pack_start (GTK_BOX (vbox), entry, FALSE, FALSE, 0);
|
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
|
||||||
|
|
||||||
/* Create the second entry */
|
/* Create a buffer */
|
||||||
entry = gtk_entry_new_with_buffer (buffer);
|
buffer = gtk_entry_buffer_new (NULL, 0);
|
||||||
gtk_entry_set_visibility (GTK_ENTRY (entry), FALSE);
|
|
||||||
gtk_box_pack_start (GTK_BOX (vbox), entry, FALSE, FALSE, 0);
|
|
||||||
|
|
||||||
g_object_unref (buffer);
|
/* Create our first entry */
|
||||||
}
|
entry = gtk_entry_new_with_buffer (buffer);
|
||||||
|
gtk_box_pack_start (GTK_BOX (vbox), entry, FALSE, FALSE, 0);
|
||||||
|
|
||||||
|
/* Create the second entry */
|
||||||
|
entry = gtk_entry_new_with_buffer (buffer);
|
||||||
|
gtk_entry_set_visibility (GTK_ENTRY (entry), FALSE);
|
||||||
|
gtk_box_pack_start (GTK_BOX (vbox), entry, FALSE, FALSE, 0);
|
||||||
|
|
||||||
|
g_object_unref (buffer);
|
||||||
|
}
|
||||||
|
|
||||||
if (!gtk_widget_get_visible (window))
|
if (!gtk_widget_get_visible (window))
|
||||||
gtk_widget_show_all (window);
|
gtk_widget_show_all (window);
|
||||||
|
@@ -8,6 +8,8 @@
|
|||||||
#include <glib/gi18n.h>
|
#include <glib/gi18n.h>
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
static GtkWidget *window = NULL;
|
||||||
|
|
||||||
/* Creates a tree model containing the completions */
|
/* Creates a tree model containing the completions */
|
||||||
GtkTreeModel *
|
GtkTreeModel *
|
||||||
create_completion_model (void)
|
create_completion_model (void)
|
||||||
@@ -36,7 +38,7 @@ create_completion_model (void)
|
|||||||
GtkWidget *
|
GtkWidget *
|
||||||
do_entry_completion (GtkWidget *do_widget)
|
do_entry_completion (GtkWidget *do_widget)
|
||||||
{
|
{
|
||||||
static GtkWidget *window = NULL;
|
GtkWidget *content_area;
|
||||||
GtkWidget *vbox;
|
GtkWidget *vbox;
|
||||||
GtkWidget *label;
|
GtkWidget *label;
|
||||||
GtkWidget *entry;
|
GtkWidget *entry;
|
||||||
@@ -45,17 +47,23 @@ do_entry_completion (GtkWidget *do_widget)
|
|||||||
|
|
||||||
if (!window)
|
if (!window)
|
||||||
{
|
{
|
||||||
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
window = gtk_dialog_new_with_buttons ("GtkEntryCompletion",
|
||||||
gtk_window_set_screen (GTK_WINDOW (window),
|
GTK_WINDOW (do_widget),
|
||||||
gtk_widget_get_screen (do_widget));
|
0,
|
||||||
gtk_window_set_title (GTK_WINDOW (window), "Entry Completion");
|
_("_Close"),
|
||||||
|
GTK_RESPONSE_NONE,
|
||||||
|
NULL);
|
||||||
gtk_window_set_resizable (GTK_WINDOW (window), FALSE);
|
gtk_window_set_resizable (GTK_WINDOW (window), FALSE);
|
||||||
|
|
||||||
|
g_signal_connect (window, "response",
|
||||||
|
G_CALLBACK (gtk_widget_destroy), NULL);
|
||||||
g_signal_connect (window, "destroy",
|
g_signal_connect (window, "destroy",
|
||||||
G_CALLBACK (gtk_widget_destroyed), &window);
|
G_CALLBACK (gtk_widget_destroyed), &window);
|
||||||
|
|
||||||
|
content_area = gtk_dialog_get_content_area (GTK_DIALOG (window));
|
||||||
|
|
||||||
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
|
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
|
||||||
gtk_container_add (GTK_CONTAINER (window), vbox);
|
gtk_box_pack_start (GTK_BOX (content_area), vbox, TRUE, TRUE, 0);
|
||||||
gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
|
gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
|
||||||
|
|
||||||
label = gtk_label_new (NULL);
|
label = gtk_label_new (NULL);
|
||||||
|
@@ -384,7 +384,6 @@ do_event_axes (GtkWidget *toplevel)
|
|||||||
if (!window)
|
if (!window)
|
||||||
{
|
{
|
||||||
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
||||||
gtk_window_set_title (GTK_WINDOW (window), "Event Axes");
|
|
||||||
gtk_window_set_default_size (GTK_WINDOW (window), 400, 400);
|
gtk_window_set_default_size (GTK_WINDOW (window), 400, 400);
|
||||||
|
|
||||||
g_signal_connect (window, "destroy",
|
g_signal_connect (window, "destroy",
|
||||||
@@ -412,7 +411,10 @@ do_event_axes (GtkWidget *toplevel)
|
|||||||
if (!gtk_widget_get_visible (window))
|
if (!gtk_widget_get_visible (window))
|
||||||
gtk_widget_show_all (window);
|
gtk_widget_show_all (window);
|
||||||
else
|
else
|
||||||
gtk_widget_destroy (window);
|
{
|
||||||
|
gtk_widget_destroy (window);
|
||||||
|
window = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return window;
|
return window;
|
||||||
}
|
}
|
||||||
|
Before Width: | Height: | Size: 1.4 KiB |
@@ -3,8 +3,6 @@
|
|||||||
* GtkExpander allows to provide additional content that is initially hidden.
|
* GtkExpander allows to provide additional content that is initially hidden.
|
||||||
* This is also known as "disclosure triangle".
|
* This is also known as "disclosure triangle".
|
||||||
*
|
*
|
||||||
* This example also shows how to make the window resizable only if the expander
|
|
||||||
* is expanded.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <glib/gi18n.h>
|
#include <glib/gi18n.h>
|
||||||
@@ -12,85 +10,45 @@
|
|||||||
|
|
||||||
static GtkWidget *window = NULL;
|
static GtkWidget *window = NULL;
|
||||||
|
|
||||||
static void
|
|
||||||
response_cb (GtkDialog *dialog, gint response_id)
|
|
||||||
{
|
|
||||||
gtk_widget_destroy (window);
|
|
||||||
window = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
expander_cb (GtkExpander *expander, GParamSpec *pspec, GtkWindow *dialog)
|
|
||||||
{
|
|
||||||
gtk_window_set_resizable (dialog, gtk_expander_get_expanded (expander));
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
do_not_expand (GtkWidget *child, gpointer data)
|
|
||||||
{
|
|
||||||
gtk_container_child_set (GTK_CONTAINER (gtk_widget_get_parent (child)), child,
|
|
||||||
"expand", FALSE, "fill", FALSE, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
GtkWidget *
|
GtkWidget *
|
||||||
do_expander (GtkWidget *do_widget)
|
do_expander (GtkWidget *do_widget)
|
||||||
{
|
{
|
||||||
GtkWidget *toplevel;
|
GtkWidget *content_area;
|
||||||
GtkWidget *area;
|
GtkWidget *vbox;
|
||||||
GtkWidget *box;
|
GtkWidget *label;
|
||||||
GtkWidget *expander;
|
GtkWidget *expander;
|
||||||
GtkWidget *sw;
|
|
||||||
GtkWidget *tv;
|
|
||||||
GtkTextBuffer *buffer;
|
|
||||||
|
|
||||||
if (!window)
|
if (!window)
|
||||||
{
|
{
|
||||||
toplevel = gtk_widget_get_toplevel (do_widget);
|
window = gtk_dialog_new_with_buttons ("GtkExpander",
|
||||||
window = gtk_message_dialog_new_with_markup (GTK_WINDOW (toplevel),
|
GTK_WINDOW (do_widget),
|
||||||
0,
|
0,
|
||||||
GTK_MESSAGE_ERROR,
|
_("_Close"),
|
||||||
GTK_BUTTONS_CLOSE,
|
GTK_RESPONSE_NONE,
|
||||||
"<big><b>%s</b></big>",
|
NULL);
|
||||||
"Something went wrong");
|
gtk_window_set_resizable (GTK_WINDOW (window), FALSE);
|
||||||
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (window),
|
|
||||||
"Here are some more details "
|
|
||||||
"but not the full story.");
|
|
||||||
|
|
||||||
area = gtk_message_dialog_get_message_area (GTK_MESSAGE_DIALOG (window));
|
g_signal_connect (window, "response",
|
||||||
box = gtk_widget_get_parent (area);
|
G_CALLBACK (gtk_widget_destroy), NULL);
|
||||||
gtk_container_child_set (GTK_CONTAINER (gtk_widget_get_parent (box)), box,
|
g_signal_connect (window, "destroy",
|
||||||
"expand", TRUE, "fill", TRUE, NULL);
|
G_CALLBACK (gtk_widget_destroyed), &window);
|
||||||
gtk_container_foreach (GTK_CONTAINER (area), do_not_expand, NULL);
|
|
||||||
|
|
||||||
expander = gtk_expander_new ("Details:");
|
content_area = gtk_dialog_get_content_area (GTK_DIALOG (window));
|
||||||
sw = gtk_scrolled_window_new (NULL, NULL);
|
|
||||||
gtk_scrolled_window_set_min_content_height (GTK_SCROLLED_WINDOW (sw), 100);
|
|
||||||
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (sw), GTK_SHADOW_IN);
|
|
||||||
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw),
|
|
||||||
GTK_POLICY_NEVER,
|
|
||||||
GTK_POLICY_AUTOMATIC);
|
|
||||||
|
|
||||||
tv = gtk_text_view_new ();
|
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
|
||||||
buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (tv));
|
gtk_box_pack_start (GTK_BOX (content_area), vbox, TRUE, TRUE, 0);
|
||||||
gtk_text_view_set_editable (GTK_TEXT_VIEW (tv), FALSE);
|
gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
|
||||||
gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (tv), GTK_WRAP_WORD);
|
|
||||||
gtk_text_buffer_set_text (GTK_TEXT_BUFFER (buffer),
|
|
||||||
"Finally, the full story with all details. "
|
|
||||||
"And all the inside information, including "
|
|
||||||
"error codes, etc etc. Pages of information, "
|
|
||||||
"you might have to scroll down to read it all, "
|
|
||||||
"or even resize the window - it works !\n"
|
|
||||||
"A second paragraph will contain even more "
|
|
||||||
"innuendo, just to make you scroll down or "
|
|
||||||
"resize the window. Do it already !", -1);
|
|
||||||
gtk_container_add (GTK_CONTAINER (sw), tv);
|
|
||||||
gtk_container_add (GTK_CONTAINER (expander), sw);
|
|
||||||
gtk_box_pack_end (GTK_BOX (area), expander, TRUE, TRUE, 0);
|
|
||||||
gtk_widget_show_all (expander);
|
|
||||||
g_signal_connect (expander, "notify::expanded",
|
|
||||||
G_CALLBACK (expander_cb), window);
|
|
||||||
|
|
||||||
g_signal_connect (window, "response", G_CALLBACK (response_cb), NULL);
|
label = gtk_label_new ("Expander demo. Click on the triangle for details.");
|
||||||
|
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
|
||||||
|
|
||||||
|
/* Create the expander */
|
||||||
|
expander = gtk_expander_new ("Details");
|
||||||
|
gtk_box_pack_start (GTK_BOX (vbox), expander, FALSE, FALSE, 0);
|
||||||
|
|
||||||
|
label = gtk_label_new ("Details can be shown or hidden.");
|
||||||
|
gtk_container_add (GTK_CONTAINER (expander), label);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!gtk_widget_get_visible (window))
|
if (!gtk_widget_get_visible (window))
|
||||||
|
@@ -1,178 +0,0 @@
|
|||||||
/* Tree View/Filter Model
|
|
||||||
*
|
|
||||||
* This example demonstrates how GtkTreeModelFilter can be used not
|
|
||||||
* just to show a subset of the rows, but also to compute columns
|
|
||||||
* that are not actually present in the underlying model.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <gtk/gtk.h>
|
|
||||||
|
|
||||||
enum {
|
|
||||||
WIDTH_COLUMN,
|
|
||||||
HEIGHT_COLUMN,
|
|
||||||
AREA_COLUMN,
|
|
||||||
SQUARE_COLUMN
|
|
||||||
};
|
|
||||||
|
|
||||||
static void
|
|
||||||
format_number (GtkTreeViewColumn *col,
|
|
||||||
GtkCellRenderer *cell,
|
|
||||||
GtkTreeModel *model,
|
|
||||||
GtkTreeIter *iter,
|
|
||||||
gpointer data)
|
|
||||||
{
|
|
||||||
gint num;
|
|
||||||
gchar *text;
|
|
||||||
|
|
||||||
gtk_tree_model_get (model, iter, GPOINTER_TO_INT (data), &num, -1);
|
|
||||||
text = g_strdup_printf ("%d", num);
|
|
||||||
g_object_set (cell, "text", text, NULL);
|
|
||||||
g_free (text);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
filter_modify_func (GtkTreeModel *model,
|
|
||||||
GtkTreeIter *iter,
|
|
||||||
GValue *value,
|
|
||||||
gint column,
|
|
||||||
gpointer data)
|
|
||||||
{
|
|
||||||
GtkTreeModelFilter *filter_model = GTK_TREE_MODEL_FILTER (model);
|
|
||||||
gint width, height;
|
|
||||||
GtkTreeModel *child_model;
|
|
||||||
GtkTreeIter child_iter;
|
|
||||||
|
|
||||||
child_model = gtk_tree_model_filter_get_model (filter_model);
|
|
||||||
gtk_tree_model_filter_convert_iter_to_child_iter (filter_model, &child_iter, iter);
|
|
||||||
|
|
||||||
gtk_tree_model_get (child_model, &child_iter,
|
|
||||||
WIDTH_COLUMN, &width,
|
|
||||||
HEIGHT_COLUMN, &height,
|
|
||||||
-1);
|
|
||||||
|
|
||||||
switch (column)
|
|
||||||
{
|
|
||||||
case WIDTH_COLUMN:
|
|
||||||
g_value_set_int (value, width);
|
|
||||||
break;
|
|
||||||
case HEIGHT_COLUMN:
|
|
||||||
g_value_set_int (value, height);
|
|
||||||
break;
|
|
||||||
case AREA_COLUMN:
|
|
||||||
g_value_set_int (value, width * height);
|
|
||||||
break;
|
|
||||||
case SQUARE_COLUMN:
|
|
||||||
g_value_set_boolean (value, width == height);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
g_assert_not_reached ();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static gboolean
|
|
||||||
visible_func (GtkTreeModel *model,
|
|
||||||
GtkTreeIter *iter,
|
|
||||||
gpointer data)
|
|
||||||
{
|
|
||||||
gint width;
|
|
||||||
|
|
||||||
gtk_tree_model_get (model, iter,
|
|
||||||
WIDTH_COLUMN, &width,
|
|
||||||
-1);
|
|
||||||
|
|
||||||
return width < 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
GtkWidget *
|
|
||||||
do_filtermodel (GtkWidget *do_widget)
|
|
||||||
{
|
|
||||||
static GtkWidget *window;
|
|
||||||
GtkWidget *tree;
|
|
||||||
GtkListStore *store;
|
|
||||||
GtkTreeModel *model;
|
|
||||||
GtkTreeViewColumn *column;
|
|
||||||
GtkCellRenderer *cell;
|
|
||||||
GType types[4];
|
|
||||||
|
|
||||||
if (!window)
|
|
||||||
{
|
|
||||||
GtkBuilder *builder;
|
|
||||||
|
|
||||||
builder = gtk_builder_new_from_resource ("/filtermodel/filtermodel.ui");
|
|
||||||
gtk_builder_connect_signals (builder, NULL);
|
|
||||||
window = GTK_WIDGET (gtk_builder_get_object (builder, "window1"));
|
|
||||||
gtk_window_set_screen (GTK_WINDOW (window),
|
|
||||||
gtk_widget_get_screen (do_widget));
|
|
||||||
g_signal_connect (window, "destroy",
|
|
||||||
G_CALLBACK (gtk_widget_destroyed), &window);
|
|
||||||
|
|
||||||
column = (GtkTreeViewColumn*)gtk_builder_get_object (builder, "treeviewcolumn1");
|
|
||||||
cell = (GtkCellRenderer*)gtk_builder_get_object (builder, "cellrenderertext1");
|
|
||||||
gtk_tree_view_column_set_cell_data_func (column, cell,
|
|
||||||
format_number, GINT_TO_POINTER (WIDTH_COLUMN), NULL);
|
|
||||||
|
|
||||||
column = (GtkTreeViewColumn*)gtk_builder_get_object (builder, "treeviewcolumn2");
|
|
||||||
cell = (GtkCellRenderer*)gtk_builder_get_object (builder, "cellrenderertext2");
|
|
||||||
gtk_tree_view_column_set_cell_data_func (column, cell,
|
|
||||||
format_number, GINT_TO_POINTER (HEIGHT_COLUMN), NULL);
|
|
||||||
|
|
||||||
column = (GtkTreeViewColumn*)gtk_builder_get_object (builder, "treeviewcolumn3");
|
|
||||||
cell = (GtkCellRenderer*)gtk_builder_get_object (builder, "cellrenderertext3");
|
|
||||||
gtk_tree_view_column_set_cell_data_func (column, cell,
|
|
||||||
format_number, GINT_TO_POINTER (WIDTH_COLUMN), NULL);
|
|
||||||
|
|
||||||
column = (GtkTreeViewColumn*)gtk_builder_get_object (builder, "treeviewcolumn4");
|
|
||||||
cell = (GtkCellRenderer*)gtk_builder_get_object (builder, "cellrenderertext4");
|
|
||||||
gtk_tree_view_column_set_cell_data_func (column, cell,
|
|
||||||
format_number, GINT_TO_POINTER (HEIGHT_COLUMN), NULL);
|
|
||||||
|
|
||||||
column = (GtkTreeViewColumn*)gtk_builder_get_object (builder, "treeviewcolumn5");
|
|
||||||
cell = (GtkCellRenderer*)gtk_builder_get_object (builder, "cellrenderertext5");
|
|
||||||
gtk_tree_view_column_set_cell_data_func (column, cell,
|
|
||||||
format_number, GINT_TO_POINTER (AREA_COLUMN), NULL);
|
|
||||||
|
|
||||||
column = (GtkTreeViewColumn*)gtk_builder_get_object (builder, "treeviewcolumn6");
|
|
||||||
cell = (GtkCellRenderer*)gtk_builder_get_object (builder, "cellrendererpixbuf1");
|
|
||||||
gtk_tree_view_column_add_attribute (column, cell, "visible", SQUARE_COLUMN);
|
|
||||||
|
|
||||||
store = (GtkListStore*)gtk_builder_get_object (builder, "liststore1");
|
|
||||||
tree = (GtkWidget*)gtk_builder_get_object (builder, "treeview2");
|
|
||||||
|
|
||||||
types[WIDTH_COLUMN] = G_TYPE_INT;
|
|
||||||
types[HEIGHT_COLUMN] = G_TYPE_INT;
|
|
||||||
types[AREA_COLUMN] = G_TYPE_INT;
|
|
||||||
types[SQUARE_COLUMN] = G_TYPE_BOOLEAN;
|
|
||||||
model = gtk_tree_model_filter_new (GTK_TREE_MODEL (store), NULL);
|
|
||||||
gtk_tree_model_filter_set_modify_func (GTK_TREE_MODEL_FILTER (model),
|
|
||||||
G_N_ELEMENTS (types), types,
|
|
||||||
filter_modify_func, NULL, NULL);
|
|
||||||
|
|
||||||
gtk_tree_view_set_model (GTK_TREE_VIEW (tree), model);
|
|
||||||
|
|
||||||
column = (GtkTreeViewColumn*)gtk_builder_get_object (builder, "treeviewcolumn7");
|
|
||||||
cell = (GtkCellRenderer*)gtk_builder_get_object (builder, "cellrenderertext6");
|
|
||||||
gtk_tree_view_column_set_cell_data_func (column, cell,
|
|
||||||
format_number, GINT_TO_POINTER (WIDTH_COLUMN), NULL);
|
|
||||||
|
|
||||||
column = (GtkTreeViewColumn*)gtk_builder_get_object (builder, "treeviewcolumn8");
|
|
||||||
cell = (GtkCellRenderer*)gtk_builder_get_object (builder, "cellrenderertext7");
|
|
||||||
gtk_tree_view_column_set_cell_data_func (column, cell,
|
|
||||||
format_number, GINT_TO_POINTER (HEIGHT_COLUMN), NULL);
|
|
||||||
|
|
||||||
tree = (GtkWidget*)gtk_builder_get_object (builder, "treeview3");
|
|
||||||
|
|
||||||
model = gtk_tree_model_filter_new (GTK_TREE_MODEL (store), NULL);
|
|
||||||
gtk_tree_model_filter_set_visible_func (GTK_TREE_MODEL_FILTER (model),
|
|
||||||
visible_func, NULL, NULL);
|
|
||||||
gtk_tree_view_set_model (GTK_TREE_VIEW (tree), model);
|
|
||||||
|
|
||||||
g_object_unref (builder);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!gtk_widget_get_visible (window))
|
|
||||||
gtk_widget_show_all (window);
|
|
||||||
else
|
|
||||||
gtk_widget_destroy (window);
|
|
||||||
|
|
||||||
return window;
|
|
||||||
}
|
|
@@ -1,206 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!-- Generated with glade 3.18.1 -->
|
|
||||||
<interface>
|
|
||||||
<requires lib="gtk+" version="3.16"/>
|
|
||||||
<object class="GtkListStore" id="liststore1">
|
|
||||||
<columns>
|
|
||||||
<!-- column-name width -->
|
|
||||||
<column type="gint"/>
|
|
||||||
<!-- column-name height -->
|
|
||||||
<column type="gint"/>
|
|
||||||
</columns>
|
|
||||||
<data>
|
|
||||||
<row>
|
|
||||||
<col id="0">10</col>
|
|
||||||
<col id="1">20</col>
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<col id="0">5</col>
|
|
||||||
<col id="1">25</col>
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<col id="0">15</col>
|
|
||||||
<col id="1">15</col>
|
|
||||||
</row>
|
|
||||||
</data>
|
|
||||||
</object>
|
|
||||||
<object class="GtkWindow" id="window1">
|
|
||||||
<property name="can_focus">False</property>
|
|
||||||
<property name="title" translatable="yes">Filter Model</property>
|
|
||||||
<child>
|
|
||||||
<object class="GtkGrid" id="grid1">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="can_focus">False</property>
|
|
||||||
<property name="margin_left">10</property>
|
|
||||||
<property name="margin_right">10</property>
|
|
||||||
<property name="margin_top">10</property>
|
|
||||||
<property name="margin_bottom">10</property>
|
|
||||||
<property name="row_spacing">10</property>
|
|
||||||
<property name="column_spacing">10</property>
|
|
||||||
<property name="column_homogeneous">True</property>
|
|
||||||
<child>
|
|
||||||
<object class="GtkLabel" id="label1">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="can_focus">False</property>
|
|
||||||
<property name="label" translatable="yes">Original</property>
|
|
||||||
<property name="xalign">0</property>
|
|
||||||
<attributes>
|
|
||||||
<attribute name="weight" value="bold"/>
|
|
||||||
</attributes>
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="left_attach">0</property>
|
|
||||||
<property name="top_attach">0</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkTreeView" id="treeview1">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="can_focus">True</property>
|
|
||||||
<property name="model">liststore1</property>
|
|
||||||
<property name="headers_clickable">False</property>
|
|
||||||
<child internal-child="selection">
|
|
||||||
<object class="GtkTreeSelection" id="treeview-selection1"/>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkTreeViewColumn" id="treeviewcolumn1">
|
|
||||||
<property name="title" translatable="yes">Width</property>
|
|
||||||
<child>
|
|
||||||
<object class="GtkCellRendererText" id="cellrenderertext1"/>
|
|
||||||
</child>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkTreeViewColumn" id="treeviewcolumn2">
|
|
||||||
<property name="title" translatable="yes">Height</property>
|
|
||||||
<child>
|
|
||||||
<object class="GtkCellRendererText" id="cellrenderertext2"/>
|
|
||||||
</child>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="left_attach">0</property>
|
|
||||||
<property name="top_attach">1</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkTreeView" id="treeview2">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="can_focus">True</property>
|
|
||||||
<property name="headers_clickable">False</property>
|
|
||||||
<property name="search_column">0</property>
|
|
||||||
<child internal-child="selection">
|
|
||||||
<object class="GtkTreeSelection" id="treeview-selection3"/>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkTreeViewColumn" id="treeviewcolumn3">
|
|
||||||
<property name="title" translatable="yes">Width</property>
|
|
||||||
<child>
|
|
||||||
<object class="GtkCellRendererText" id="cellrenderertext3"/>
|
|
||||||
</child>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkTreeViewColumn" id="treeviewcolumn4">
|
|
||||||
<property name="title" translatable="yes">Height</property>
|
|
||||||
<child>
|
|
||||||
<object class="GtkCellRendererText" id="cellrenderertext4"/>
|
|
||||||
</child>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkTreeViewColumn" id="treeviewcolumn5">
|
|
||||||
<property name="title" translatable="yes">Area</property>
|
|
||||||
<child>
|
|
||||||
<object class="GtkCellRendererText" id="cellrenderertext5"/>
|
|
||||||
</child>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkTreeViewColumn" id="treeviewcolumn6">
|
|
||||||
<property name="title" translatable="yes">Square</property>
|
|
||||||
<child>
|
|
||||||
<object class="GtkCellRendererPixbuf" id="cellrendererpixbuf1">
|
|
||||||
<property name="icon-name">object-select-symbolic</property>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="left_attach">1</property>
|
|
||||||
<property name="top_attach">1</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkLabel" id="label2">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="can_focus">False</property>
|
|
||||||
<property name="label" translatable="yes">Computed Columns</property>
|
|
||||||
<property name="xalign">0</property>
|
|
||||||
<attributes>
|
|
||||||
<attribute name="weight" value="bold"/>
|
|
||||||
</attributes>
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="left_attach">1</property>
|
|
||||||
<property name="top_attach">0</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkLabel" id="label3">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="can_focus">False</property>
|
|
||||||
<property name="label" translatable="yes">Filtered</property>
|
|
||||||
<property name="xalign">0</property>
|
|
||||||
<attributes>
|
|
||||||
<attribute name="weight" value="bold"/>
|
|
||||||
</attributes>
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="left_attach">0</property>
|
|
||||||
<property name="top_attach">2</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkTreeView" id="treeview3">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="can_focus">True</property>
|
|
||||||
<property name="headers_clickable">False</property>
|
|
||||||
<property name="search_column">0</property>
|
|
||||||
<child internal-child="selection">
|
|
||||||
<object class="GtkTreeSelection" id="treeview-selection5"/>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkTreeViewColumn" id="treeviewcolumn7">
|
|
||||||
<property name="title" translatable="yes">Width</property>
|
|
||||||
<child>
|
|
||||||
<object class="GtkCellRendererText" id="cellrenderertext6"/>
|
|
||||||
</child>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkTreeViewColumn" id="treeviewcolumn8">
|
|
||||||
<property name="title" translatable="yes">Height</property>
|
|
||||||
<child>
|
|
||||||
<object class="GtkCellRendererText" id="cellrenderertext7"/>
|
|
||||||
</child>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="left_attach">0</property>
|
|
||||||
<property name="top_attach">3</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<placeholder/>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<placeholder/>
|
|
||||||
</child>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
</object>
|
|
||||||
</interface>
|
|
@@ -10,31 +10,20 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
static gboolean
|
static GtkWidget *window = NULL;
|
||||||
draw_color (GtkWidget *drawingarea,
|
|
||||||
cairo_t *cr,
|
|
||||||
const char *color_name)
|
|
||||||
{
|
|
||||||
GdkRGBA rgba;
|
|
||||||
|
|
||||||
if (gdk_rgba_parse (&rgba, color_name))
|
|
||||||
{
|
|
||||||
gdk_cairo_set_source_rgba (cr, &rgba);
|
|
||||||
cairo_paint (cr);
|
|
||||||
}
|
|
||||||
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
static GtkWidget *
|
static GtkWidget *
|
||||||
color_swatch_new (const gchar *color)
|
color_swatch_new (const gchar *color)
|
||||||
{
|
{
|
||||||
GtkWidget *button, *area;
|
GtkWidget *button, *area;
|
||||||
|
GdkRGBA rgba;
|
||||||
|
|
||||||
|
gdk_rgba_parse (&rgba, color);
|
||||||
|
|
||||||
button = gtk_button_new ();
|
button = gtk_button_new ();
|
||||||
area = gtk_drawing_area_new ();
|
area = gtk_drawing_area_new ();
|
||||||
g_signal_connect (area, "draw", G_CALLBACK (draw_color), (gpointer) color);
|
|
||||||
gtk_widget_set_size_request (area, 24, 24);
|
gtk_widget_set_size_request (area, 24, 24);
|
||||||
|
gtk_widget_override_background_color (area, 0, &rgba);
|
||||||
gtk_container_add (GTK_CONTAINER (button), area);
|
gtk_container_add (GTK_CONTAINER (button), area);
|
||||||
gtk_widget_show_all (button);
|
gtk_widget_show_all (button);
|
||||||
|
|
||||||
@@ -44,7 +33,6 @@ color_swatch_new (const gchar *color)
|
|||||||
GtkWidget *
|
GtkWidget *
|
||||||
do_flowbox (GtkWidget *do_widget)
|
do_flowbox (GtkWidget *do_widget)
|
||||||
{
|
{
|
||||||
static GtkWidget *window = NULL;
|
|
||||||
GtkWidget *scrolled, *flowbox;
|
GtkWidget *scrolled, *flowbox;
|
||||||
const gchar *colors[] = {
|
const gchar *colors[] = {
|
||||||
"AliceBlue",
|
"AliceBlue",
|
||||||
@@ -725,7 +713,8 @@ do_flowbox (GtkWidget *do_widget)
|
|||||||
gtk_window_set_default_size (GTK_WINDOW (window), 400, 600);
|
gtk_window_set_default_size (GTK_WINDOW (window), 400, 600);
|
||||||
|
|
||||||
g_signal_connect (window, "destroy",
|
g_signal_connect (window, "destroy",
|
||||||
G_CALLBACK (gtk_widget_destroyed), &window);
|
G_CALLBACK (gtk_widget_destroyed),
|
||||||
|
&window);
|
||||||
|
|
||||||
scrolled = gtk_scrolled_window_new (NULL, NULL);
|
scrolled = gtk_scrolled_window_new (NULL, NULL);
|
||||||
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
|
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
|
||||||
@@ -738,7 +727,9 @@ do_flowbox (GtkWidget *do_widget)
|
|||||||
gtk_container_add (GTK_CONTAINER (window), scrolled);
|
gtk_container_add (GTK_CONTAINER (window), scrolled);
|
||||||
|
|
||||||
for (i = 0; colors[i]; i++)
|
for (i = 0; colors[i]; i++)
|
||||||
gtk_container_add (GTK_CONTAINER (flowbox), color_swatch_new (colors[i]));
|
{
|
||||||
|
gtk_container_add (GTK_CONTAINER (flowbox), color_swatch_new (colors[i]));
|
||||||
|
}
|
||||||
|
|
||||||
gtk_widget_show_all (scrolled);
|
gtk_widget_show_all (scrolled);
|
||||||
}
|
}
|
||||||
|
@@ -1,202 +0,0 @@
|
|||||||
/* Pango/Font Features
|
|
||||||
*
|
|
||||||
* This demonstrates support for OpenType font features with
|
|
||||||
* Pango attributes. The attributes can be used manually or
|
|
||||||
* via Pango markup.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <gtk/gtk.h>
|
|
||||||
|
|
||||||
static GtkWidget *label;
|
|
||||||
static GtkWidget *settings;
|
|
||||||
static GtkWidget *font;
|
|
||||||
static GtkWidget *resetbutton;
|
|
||||||
static GtkWidget *numcasedefault;
|
|
||||||
static GtkWidget *numspacedefault;
|
|
||||||
static GtkWidget *fractiondefault;
|
|
||||||
static GtkWidget *stack;
|
|
||||||
static GtkWidget *entry;
|
|
||||||
|
|
||||||
static GtkWidget *toggle[24];
|
|
||||||
|
|
||||||
static void
|
|
||||||
update (void)
|
|
||||||
{
|
|
||||||
GString *s;
|
|
||||||
char *font_desc;
|
|
||||||
char *font_settings;
|
|
||||||
const char *text;
|
|
||||||
gboolean has_feature;
|
|
||||||
int i;
|
|
||||||
|
|
||||||
text = gtk_entry_get_text (GTK_ENTRY (entry));
|
|
||||||
|
|
||||||
font_desc = gtk_font_chooser_get_font (GTK_FONT_CHOOSER (font));
|
|
||||||
|
|
||||||
s = g_string_new ("");
|
|
||||||
|
|
||||||
has_feature = FALSE;
|
|
||||||
for (i = 0; i < 24; i++)
|
|
||||||
{
|
|
||||||
if (!gtk_widget_is_sensitive (toggle[i]))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if (GTK_IS_RADIO_BUTTON (toggle[i]))
|
|
||||||
{
|
|
||||||
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (toggle[i])))
|
|
||||||
{
|
|
||||||
if (has_feature)
|
|
||||||
g_string_append (s, ", ");
|
|
||||||
g_string_append (s, gtk_buildable_get_name (GTK_BUILDABLE (toggle[i])));
|
|
||||||
g_string_append (s, " 1");
|
|
||||||
has_feature = TRUE;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (has_feature)
|
|
||||||
g_string_append (s, ", ");
|
|
||||||
g_string_append (s, gtk_buildable_get_name (GTK_BUILDABLE (toggle[i])));
|
|
||||||
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (toggle[i])))
|
|
||||||
g_string_append (s, " 1");
|
|
||||||
else
|
|
||||||
g_string_append (s, " 0");
|
|
||||||
has_feature = TRUE;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
font_settings = g_string_free (s, FALSE);
|
|
||||||
|
|
||||||
gtk_label_set_text (GTK_LABEL (settings), font_settings);
|
|
||||||
|
|
||||||
s = g_string_new ("");
|
|
||||||
g_string_append_printf (s, "<span font_desc='%s' font_features='%s'>%s</span>", font_desc, font_settings, text);
|
|
||||||
|
|
||||||
gtk_label_set_markup (GTK_LABEL (label), s->str);
|
|
||||||
|
|
||||||
g_string_free (s, TRUE);
|
|
||||||
|
|
||||||
g_free (font_desc);
|
|
||||||
g_free (font_settings);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
reset (void)
|
|
||||||
{
|
|
||||||
int i;
|
|
||||||
|
|
||||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (numcasedefault), TRUE);
|
|
||||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (numspacedefault), TRUE);
|
|
||||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (fractiondefault), TRUE);
|
|
||||||
for (i = 0; i < 24; i++)
|
|
||||||
{
|
|
||||||
if (!GTK_IS_RADIO_BUTTON (toggle[i]))
|
|
||||||
{
|
|
||||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle[i]), FALSE);
|
|
||||||
gtk_widget_set_sensitive (toggle[i], FALSE);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static char *text;
|
|
||||||
|
|
||||||
static void
|
|
||||||
switch_to_entry (void)
|
|
||||||
{
|
|
||||||
text = g_strdup (gtk_entry_get_text (GTK_ENTRY (entry)));
|
|
||||||
gtk_stack_set_visible_child_name (GTK_STACK (stack), "entry");
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
switch_to_label (void)
|
|
||||||
{
|
|
||||||
g_free (text);
|
|
||||||
text = NULL;
|
|
||||||
gtk_stack_set_visible_child_name (GTK_STACK (stack), "label");
|
|
||||||
update ();
|
|
||||||
}
|
|
||||||
|
|
||||||
static gboolean
|
|
||||||
entry_key_press (GtkEntry *entry, GdkEventKey *event)
|
|
||||||
{
|
|
||||||
if (event->keyval == GDK_KEY_Escape)
|
|
||||||
{
|
|
||||||
gtk_entry_set_text (GTK_ENTRY (entry), text);
|
|
||||||
switch_to_label ();
|
|
||||||
return GDK_EVENT_STOP;
|
|
||||||
}
|
|
||||||
|
|
||||||
return GDK_EVENT_PROPAGATE;
|
|
||||||
}
|
|
||||||
|
|
||||||
GtkWidget *
|
|
||||||
do_font_features (GtkWidget *do_widget)
|
|
||||||
{
|
|
||||||
static GtkWidget *window = NULL;
|
|
||||||
|
|
||||||
if (!window)
|
|
||||||
{
|
|
||||||
GtkBuilder *builder;
|
|
||||||
int i;
|
|
||||||
|
|
||||||
builder = gtk_builder_new_from_resource ("/font-features/font-features.ui");
|
|
||||||
|
|
||||||
gtk_builder_add_callback_symbol (builder, "update", update);
|
|
||||||
gtk_builder_add_callback_symbol (builder, "reset", reset);
|
|
||||||
gtk_builder_add_callback_symbol (builder, "switch_to_entry", switch_to_entry);
|
|
||||||
gtk_builder_add_callback_symbol (builder, "switch_to_label", switch_to_label);
|
|
||||||
gtk_builder_add_callback_symbol (builder, "entry_key_press", G_CALLBACK (entry_key_press));
|
|
||||||
gtk_builder_connect_signals (builder, NULL);
|
|
||||||
|
|
||||||
window = GTK_WIDGET (gtk_builder_get_object (builder, "window"));
|
|
||||||
label = GTK_WIDGET (gtk_builder_get_object (builder, "label"));
|
|
||||||
settings = GTK_WIDGET (gtk_builder_get_object (builder, "settings"));
|
|
||||||
resetbutton = GTK_WIDGET (gtk_builder_get_object (builder, "reset"));
|
|
||||||
font = GTK_WIDGET (gtk_builder_get_object (builder, "font"));
|
|
||||||
numcasedefault = GTK_WIDGET (gtk_builder_get_object (builder, "numcasedefault"));
|
|
||||||
numspacedefault = GTK_WIDGET (gtk_builder_get_object (builder, "numspacedefault"));
|
|
||||||
fractiondefault = GTK_WIDGET (gtk_builder_get_object (builder, "fractiondefault"));
|
|
||||||
stack = GTK_WIDGET (gtk_builder_get_object (builder, "stack"));
|
|
||||||
entry = GTK_WIDGET (gtk_builder_get_object (builder, "entry"));
|
|
||||||
|
|
||||||
i = 0;
|
|
||||||
toggle[i++] = GTK_WIDGET (gtk_builder_get_object (builder, "kern"));
|
|
||||||
toggle[i++] = GTK_WIDGET (gtk_builder_get_object (builder, "liga"));
|
|
||||||
toggle[i++] = GTK_WIDGET (gtk_builder_get_object (builder, "dlig"));
|
|
||||||
toggle[i++] = GTK_WIDGET (gtk_builder_get_object (builder, "hlig"));
|
|
||||||
toggle[i++] = GTK_WIDGET (gtk_builder_get_object (builder, "clig"));
|
|
||||||
toggle[i++] = GTK_WIDGET (gtk_builder_get_object (builder, "smcp"));
|
|
||||||
toggle[i++] = GTK_WIDGET (gtk_builder_get_object (builder, "c2sc"));
|
|
||||||
toggle[i++] = GTK_WIDGET (gtk_builder_get_object (builder, "lnum"));
|
|
||||||
toggle[i++] = GTK_WIDGET (gtk_builder_get_object (builder, "onum"));
|
|
||||||
toggle[i++] = GTK_WIDGET (gtk_builder_get_object (builder, "pnum"));
|
|
||||||
toggle[i++] = GTK_WIDGET (gtk_builder_get_object (builder, "tnum"));
|
|
||||||
toggle[i++] = GTK_WIDGET (gtk_builder_get_object (builder, "frac"));
|
|
||||||
toggle[i++] = GTK_WIDGET (gtk_builder_get_object (builder, "afrc"));
|
|
||||||
toggle[i++] = GTK_WIDGET (gtk_builder_get_object (builder, "zero"));
|
|
||||||
toggle[i++] = GTK_WIDGET (gtk_builder_get_object (builder, "nalt"));
|
|
||||||
toggle[i++] = GTK_WIDGET (gtk_builder_get_object (builder, "swsh"));
|
|
||||||
toggle[i++] = GTK_WIDGET (gtk_builder_get_object (builder, "calt"));
|
|
||||||
toggle[i++] = GTK_WIDGET (gtk_builder_get_object (builder, "hist"));
|
|
||||||
toggle[i++] = GTK_WIDGET (gtk_builder_get_object (builder, "salt"));
|
|
||||||
toggle[i++] = GTK_WIDGET (gtk_builder_get_object (builder, "ss01"));
|
|
||||||
toggle[i++] = GTK_WIDGET (gtk_builder_get_object (builder, "ss02"));
|
|
||||||
toggle[i++] = GTK_WIDGET (gtk_builder_get_object (builder, "ss03"));
|
|
||||||
toggle[i++] = GTK_WIDGET (gtk_builder_get_object (builder, "ss04"));
|
|
||||||
toggle[i++] = GTK_WIDGET (gtk_builder_get_object (builder, "ss05"));
|
|
||||||
|
|
||||||
update ();
|
|
||||||
|
|
||||||
g_signal_connect (window, "destroy",
|
|
||||||
G_CALLBACK (gtk_widget_destroyed), &window);
|
|
||||||
|
|
||||||
g_object_unref (builder);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!gtk_widget_get_visible (window))
|
|
||||||
gtk_window_present (GTK_WINDOW (window));
|
|
||||||
else
|
|
||||||
gtk_widget_destroy (window);
|
|
||||||
|
|
||||||
return window;
|
|
||||||
}
|
|
@@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
static GtkWidget *window = NULL;
|
||||||
static GtkGesture *rotate = NULL;
|
static GtkGesture *rotate = NULL;
|
||||||
static GtkGesture *zoom = NULL;
|
static GtkGesture *zoom = NULL;
|
||||||
static gdouble swipe_x = 0;
|
static gdouble swipe_x = 0;
|
||||||
@@ -131,7 +132,6 @@ drawing_area_draw (GtkWidget *widget,
|
|||||||
GtkWidget *
|
GtkWidget *
|
||||||
do_gestures (GtkWidget *do_widget)
|
do_gestures (GtkWidget *do_widget)
|
||||||
{
|
{
|
||||||
static GtkWidget *window = NULL;
|
|
||||||
GtkWidget *drawing_area;
|
GtkWidget *drawing_area;
|
||||||
GtkGesture *gesture;
|
GtkGesture *gesture;
|
||||||
|
|
||||||
@@ -139,7 +139,7 @@ do_gestures (GtkWidget *do_widget)
|
|||||||
{
|
{
|
||||||
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
||||||
gtk_window_set_default_size (GTK_WINDOW (window), 400, 400);
|
gtk_window_set_default_size (GTK_WINDOW (window), 400, 400);
|
||||||
gtk_window_set_title (GTK_WINDOW (window), "Gestures");
|
gtk_window_set_title (GTK_WINDOW (window), "Gestures demo");
|
||||||
g_signal_connect (window, "destroy",
|
g_signal_connect (window, "destroy",
|
||||||
G_CALLBACK (gtk_widget_destroyed), &window);
|
G_CALLBACK (gtk_widget_destroyed), &window);
|
||||||
|
|
||||||
@@ -190,7 +190,10 @@ do_gestures (GtkWidget *do_widget)
|
|||||||
if (!gtk_widget_get_visible (window))
|
if (!gtk_widget_get_visible (window))
|
||||||
gtk_widget_show_all (window);
|
gtk_widget_show_all (window);
|
||||||
else
|
else
|
||||||
gtk_widget_destroy (window);
|
{
|
||||||
|
gtk_widget_destroy (window);
|
||||||
|
window = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return window;
|
return window;
|
||||||
}
|
}
|
||||||
|
@@ -1,9 +0,0 @@
|
|||||||
#version 330
|
|
||||||
|
|
||||||
out vec4 outputColor;
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
float lerpVal = gl_FragCoord.y / 500.0f;
|
|
||||||
|
|
||||||
outputColor = mix(vec4(1.0f, 0.85f, 0.35f, 1.0f), vec4(0.2f, 0.2f, 0.2f, 1.0f), lerpVal);
|
|
||||||
}
|
|
@@ -1,8 +0,0 @@
|
|||||||
#version 330
|
|
||||||
|
|
||||||
layout(location = 0) in vec4 position;
|
|
||||||
uniform mat4 mvp;
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
gl_Position = mvp * position;
|
|
||||||
}
|
|
@@ -1,426 +0,0 @@
|
|||||||
/* OpenGL Area
|
|
||||||
*
|
|
||||||
* GtkGLArea is a widget that allows custom drawing using OpenGL calls.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <math.h>
|
|
||||||
#include <gtk/gtk.h>
|
|
||||||
#include <epoxy/gl.h>
|
|
||||||
|
|
||||||
static GtkWidget *demo_window = NULL;
|
|
||||||
|
|
||||||
/* the GtkGLArea widget */
|
|
||||||
static GtkWidget *gl_area = NULL;
|
|
||||||
|
|
||||||
enum {
|
|
||||||
X_AXIS,
|
|
||||||
Y_AXIS,
|
|
||||||
Z_AXIS,
|
|
||||||
|
|
||||||
N_AXIS
|
|
||||||
};
|
|
||||||
|
|
||||||
/* Rotation angles on each axis */
|
|
||||||
static float rotation_angles[N_AXIS] = { 0.0 };
|
|
||||||
|
|
||||||
/* The object we are drawing */
|
|
||||||
static const GLfloat vertex_data[] = {
|
|
||||||
0.f, 0.5f, 0.f, 1.f,
|
|
||||||
0.5f, -0.366f, 0.f, 1.f,
|
|
||||||
-0.5f, -0.366f, 0.f, 1.f,
|
|
||||||
};
|
|
||||||
|
|
||||||
/* Initialize the GL buffers */
|
|
||||||
static void
|
|
||||||
init_buffers (GLuint *vao_out,
|
|
||||||
GLuint *buffer_out)
|
|
||||||
{
|
|
||||||
GLuint vao, buffer;
|
|
||||||
|
|
||||||
/* We only use one VAO, so we always keep it bound */
|
|
||||||
glGenVertexArrays (1, &vao);
|
|
||||||
glBindVertexArray (vao);
|
|
||||||
|
|
||||||
/* This is the buffer that holds the vertices */
|
|
||||||
glGenBuffers (1, &buffer);
|
|
||||||
glBindBuffer (GL_ARRAY_BUFFER, buffer);
|
|
||||||
glBufferData (GL_ARRAY_BUFFER, sizeof (vertex_data), vertex_data, GL_STATIC_DRAW);
|
|
||||||
glBindBuffer (GL_ARRAY_BUFFER, 0);
|
|
||||||
|
|
||||||
if (vao_out != NULL)
|
|
||||||
*vao_out = vao;
|
|
||||||
|
|
||||||
if (buffer_out != NULL)
|
|
||||||
*buffer_out = buffer;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Create and compile a shader */
|
|
||||||
static GLuint
|
|
||||||
create_shader (int type,
|
|
||||||
const char *src)
|
|
||||||
{
|
|
||||||
GLuint shader;
|
|
||||||
int status;
|
|
||||||
|
|
||||||
shader = glCreateShader (type);
|
|
||||||
glShaderSource (shader, 1, &src, NULL);
|
|
||||||
glCompileShader (shader);
|
|
||||||
|
|
||||||
glGetShaderiv (shader, GL_COMPILE_STATUS, &status);
|
|
||||||
if (status == GL_FALSE)
|
|
||||||
{
|
|
||||||
int log_len;
|
|
||||||
char *buffer;
|
|
||||||
|
|
||||||
glGetShaderiv (shader, GL_INFO_LOG_LENGTH, &log_len);
|
|
||||||
|
|
||||||
buffer = g_malloc (log_len + 1);
|
|
||||||
glGetShaderInfoLog (shader, log_len, NULL, buffer);
|
|
||||||
|
|
||||||
g_warning ("Compile failure in %s shader:\n%s\n",
|
|
||||||
type == GL_VERTEX_SHADER ? "vertex" : "fragment",
|
|
||||||
buffer);
|
|
||||||
|
|
||||||
g_free (buffer);
|
|
||||||
|
|
||||||
glDeleteShader (shader);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
return shader;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Initialize the shaders and link them into a program */
|
|
||||||
static void
|
|
||||||
init_shaders (GLuint *program_out,
|
|
||||||
GLuint *mvp_out)
|
|
||||||
{
|
|
||||||
GLuint vertex, fragment;
|
|
||||||
GLuint program = 0;
|
|
||||||
GLuint mvp = 0;
|
|
||||||
int status;
|
|
||||||
GBytes *source;
|
|
||||||
|
|
||||||
source = g_resources_lookup_data ("/glarea/glarea-vertex.glsl", 0, NULL);
|
|
||||||
vertex = create_shader (GL_VERTEX_SHADER, g_bytes_get_data (source, NULL));
|
|
||||||
g_bytes_unref (source);
|
|
||||||
|
|
||||||
if (vertex == 0)
|
|
||||||
{
|
|
||||||
*program_out = 0;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
source = g_resources_lookup_data ("/glarea/glarea-fragment.glsl", 0, NULL);
|
|
||||||
fragment = create_shader (GL_FRAGMENT_SHADER, g_bytes_get_data (source, NULL));
|
|
||||||
g_bytes_unref (source);
|
|
||||||
|
|
||||||
if (fragment == 0)
|
|
||||||
{
|
|
||||||
glDeleteShader (vertex);
|
|
||||||
*program_out = 0;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
program = glCreateProgram ();
|
|
||||||
glAttachShader (program, vertex);
|
|
||||||
glAttachShader (program, fragment);
|
|
||||||
|
|
||||||
glLinkProgram (program);
|
|
||||||
|
|
||||||
glGetProgramiv (program, GL_LINK_STATUS, &status);
|
|
||||||
if (status == GL_FALSE)
|
|
||||||
{
|
|
||||||
int log_len;
|
|
||||||
char *buffer;
|
|
||||||
|
|
||||||
glGetProgramiv (program, GL_INFO_LOG_LENGTH, &log_len);
|
|
||||||
|
|
||||||
buffer = g_malloc (log_len + 1);
|
|
||||||
glGetProgramInfoLog (program, log_len, NULL, buffer);
|
|
||||||
|
|
||||||
g_warning ("Linking failure:\n%s\n", buffer);
|
|
||||||
|
|
||||||
g_free (buffer);
|
|
||||||
|
|
||||||
glDeleteProgram (program);
|
|
||||||
program = 0;
|
|
||||||
|
|
||||||
goto out;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Get the location of the "mvp" uniform */
|
|
||||||
mvp = glGetUniformLocation (program, "mvp");
|
|
||||||
|
|
||||||
glDetachShader (program, vertex);
|
|
||||||
glDetachShader (program, fragment);
|
|
||||||
|
|
||||||
out:
|
|
||||||
glDeleteShader (vertex);
|
|
||||||
glDeleteShader (fragment);
|
|
||||||
|
|
||||||
if (program_out != NULL)
|
|
||||||
*program_out = program;
|
|
||||||
|
|
||||||
if (mvp_out != NULL)
|
|
||||||
*mvp_out = mvp;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
compute_mvp (float *res,
|
|
||||||
float phi,
|
|
||||||
float theta,
|
|
||||||
float psi)
|
|
||||||
{
|
|
||||||
float x = phi * (G_PI / 180.f);
|
|
||||||
float y = theta * (G_PI / 180.f);
|
|
||||||
float z = psi * (G_PI / 180.f);
|
|
||||||
float c1 = cosf (x), s1 = sinf (x);
|
|
||||||
float c2 = cosf (y), s2 = sinf (y);
|
|
||||||
float c3 = cosf (z), s3 = sinf (z);
|
|
||||||
float c3c2 = c3 * c2;
|
|
||||||
float s3c1 = s3 * c1;
|
|
||||||
float c3s2s1 = c3 * s2 * s1;
|
|
||||||
float s3s1 = s3 * s1;
|
|
||||||
float c3s2c1 = c3 * s2 * c1;
|
|
||||||
float s3c2 = s3 * c2;
|
|
||||||
float c3c1 = c3 * c1;
|
|
||||||
float s3s2s1 = s3 * s2 * s1;
|
|
||||||
float c3s1 = c3 * s1;
|
|
||||||
float s3s2c1 = s3 * s2 * c1;
|
|
||||||
float c2s1 = c2 * s1;
|
|
||||||
float c2c1 = c2 * c1;
|
|
||||||
|
|
||||||
/* initialize to the identity matrix */
|
|
||||||
res[0] = 1.f; res[4] = 0.f; res[8] = 0.f; res[12] = 0.f;
|
|
||||||
res[1] = 0.f; res[5] = 1.f; res[9] = 0.f; res[13] = 0.f;
|
|
||||||
res[2] = 0.f; res[6] = 0.f; res[10] = 1.f; res[14] = 0.f;
|
|
||||||
res[3] = 0.f; res[7] = 0.f; res[11] = 0.f; res[15] = 1.f;
|
|
||||||
|
|
||||||
/* apply all three rotations using the three matrices:
|
|
||||||
*
|
|
||||||
* ⎡ c3 s3 0 ⎤ ⎡ c2 0 -s2 ⎤ ⎡ 1 0 0 ⎤
|
|
||||||
* ⎢ -s3 c3 0 ⎥ ⎢ 0 1 0 ⎥ ⎢ 0 c1 s1 ⎥
|
|
||||||
* ⎣ 0 0 1 ⎦ ⎣ s2 0 c2 ⎦ ⎣ 0 -s1 c1 ⎦
|
|
||||||
*/
|
|
||||||
res[0] = c3c2; res[4] = s3c1 + c3s2s1; res[8] = s3s1 - c3s2c1; res[12] = 0.f;
|
|
||||||
res[1] = -s3c2; res[5] = c3c1 - s3s2s1; res[9] = c3s1 + s3s2c1; res[13] = 0.f;
|
|
||||||
res[2] = s2; res[6] = -c2s1; res[10] = c2c1; res[14] = 0.f;
|
|
||||||
res[3] = 0.f; res[7] = 0.f; res[11] = 0.f; res[15] = 1.f;
|
|
||||||
}
|
|
||||||
|
|
||||||
static GLuint position_buffer;
|
|
||||||
static GLuint program;
|
|
||||||
static GLuint mvp_location;
|
|
||||||
|
|
||||||
/* We need to set up our state when we realize the GtkGLArea widget */
|
|
||||||
static void
|
|
||||||
realize (GtkWidget *widget)
|
|
||||||
{
|
|
||||||
gtk_gl_area_make_current (GTK_GL_AREA (widget));
|
|
||||||
|
|
||||||
if (gtk_gl_area_get_error (GTK_GL_AREA (widget)) != NULL)
|
|
||||||
return;
|
|
||||||
|
|
||||||
init_buffers (&position_buffer, NULL);
|
|
||||||
init_shaders (&program, &mvp_location);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* We should tear down the state when unrealizing */
|
|
||||||
static void
|
|
||||||
unrealize (GtkWidget *widget)
|
|
||||||
{
|
|
||||||
gtk_gl_area_make_current (GTK_GL_AREA (widget));
|
|
||||||
|
|
||||||
if (gtk_gl_area_get_error (GTK_GL_AREA (widget)) != NULL)
|
|
||||||
return;
|
|
||||||
|
|
||||||
glDeleteBuffers (1, &position_buffer);
|
|
||||||
glDeleteProgram (program);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
draw_triangle (void)
|
|
||||||
{
|
|
||||||
float mvp[16];
|
|
||||||
|
|
||||||
/* Compute the model view projection matrix using the
|
|
||||||
* rotation angles specified through the GtkRange widgets
|
|
||||||
*/
|
|
||||||
compute_mvp (mvp,
|
|
||||||
rotation_angles[X_AXIS],
|
|
||||||
rotation_angles[Y_AXIS],
|
|
||||||
rotation_angles[Z_AXIS]);
|
|
||||||
|
|
||||||
/* Use our shaders */
|
|
||||||
glUseProgram (program);
|
|
||||||
|
|
||||||
/* Update the "mvp" matrix we use in the shader */
|
|
||||||
glUniformMatrix4fv (mvp_location, 1, GL_FALSE, &mvp[0]);
|
|
||||||
|
|
||||||
/* Use the vertices in our buffer */
|
|
||||||
glBindBuffer (GL_ARRAY_BUFFER, position_buffer);
|
|
||||||
glEnableVertexAttribArray (0);
|
|
||||||
glVertexAttribPointer (0, 4, GL_FLOAT, GL_FALSE, 0, 0);
|
|
||||||
|
|
||||||
/* Draw the three vertices as a triangle */
|
|
||||||
glDrawArrays (GL_TRIANGLES, 0, 3);
|
|
||||||
|
|
||||||
/* We finished using the buffers and program */
|
|
||||||
glDisableVertexAttribArray (0);
|
|
||||||
glBindBuffer (GL_ARRAY_BUFFER, 0);
|
|
||||||
glUseProgram (0);
|
|
||||||
}
|
|
||||||
|
|
||||||
static gboolean
|
|
||||||
render (GtkGLArea *area,
|
|
||||||
GdkGLContext *context)
|
|
||||||
{
|
|
||||||
if (gtk_gl_area_get_error (area) != NULL)
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
/* Clear the viewport */
|
|
||||||
glClearColor (0.5, 0.5, 0.5, 1.0);
|
|
||||||
glClear (GL_COLOR_BUFFER_BIT);
|
|
||||||
|
|
||||||
/* Draw our object */
|
|
||||||
draw_triangle ();
|
|
||||||
|
|
||||||
/* Flush the contents of the pipeline */
|
|
||||||
glFlush ();
|
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
on_axis_value_change (GtkAdjustment *adjustment,
|
|
||||||
gpointer data)
|
|
||||||
{
|
|
||||||
int axis = GPOINTER_TO_INT (data);
|
|
||||||
|
|
||||||
g_assert (axis >= 0 && axis < N_AXIS);
|
|
||||||
|
|
||||||
/* Update the rotation angle */
|
|
||||||
rotation_angles[axis] = gtk_adjustment_get_value (adjustment);
|
|
||||||
|
|
||||||
/* Update the contents of the GL drawing area */
|
|
||||||
gtk_widget_queue_draw (gl_area);
|
|
||||||
}
|
|
||||||
|
|
||||||
static GtkWidget *
|
|
||||||
create_axis_slider (int axis)
|
|
||||||
{
|
|
||||||
GtkWidget *box, *label, *slider;
|
|
||||||
GtkAdjustment *adj;
|
|
||||||
const char *text;
|
|
||||||
|
|
||||||
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE);
|
|
||||||
|
|
||||||
switch (axis)
|
|
||||||
{
|
|
||||||
case X_AXIS:
|
|
||||||
text = "X axis";
|
|
||||||
break;
|
|
||||||
|
|
||||||
case Y_AXIS:
|
|
||||||
text = "Y axis";
|
|
||||||
break;
|
|
||||||
|
|
||||||
case Z_AXIS:
|
|
||||||
text = "Z axis";
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
g_assert_not_reached ();
|
|
||||||
}
|
|
||||||
|
|
||||||
label = gtk_label_new (text);
|
|
||||||
gtk_container_add (GTK_CONTAINER (box), label);
|
|
||||||
gtk_widget_show (label);
|
|
||||||
|
|
||||||
adj = gtk_adjustment_new (0.0, 0.0, 360.0, 1.0, 12.0, 0.0);
|
|
||||||
g_signal_connect (adj, "value-changed",
|
|
||||||
G_CALLBACK (on_axis_value_change),
|
|
||||||
GINT_TO_POINTER (axis));
|
|
||||||
slider = gtk_scale_new (GTK_ORIENTATION_HORIZONTAL, adj);
|
|
||||||
gtk_container_add (GTK_CONTAINER (box), slider);
|
|
||||||
gtk_widget_set_hexpand (slider, TRUE);
|
|
||||||
gtk_widget_show (slider);
|
|
||||||
|
|
||||||
gtk_widget_show (box);
|
|
||||||
|
|
||||||
return box;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
close_window (GtkWidget *widget)
|
|
||||||
{
|
|
||||||
/* Reset the state */
|
|
||||||
demo_window = NULL;
|
|
||||||
gl_area = NULL;
|
|
||||||
|
|
||||||
rotation_angles[X_AXIS] = 0.0;
|
|
||||||
rotation_angles[Y_AXIS] = 0.0;
|
|
||||||
rotation_angles[Z_AXIS] = 0.0;
|
|
||||||
}
|
|
||||||
|
|
||||||
GtkWidget *
|
|
||||||
create_glarea_window (GtkWidget *do_widget)
|
|
||||||
{
|
|
||||||
GtkWidget *window, *box, *button, *controls;
|
|
||||||
int i;
|
|
||||||
|
|
||||||
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
|
||||||
gtk_window_set_screen (GTK_WINDOW (window), gtk_widget_get_screen (do_widget));
|
|
||||||
gtk_window_set_title (GTK_WINDOW (window), "OpenGL Area");
|
|
||||||
gtk_window_set_default_size (GTK_WINDOW (window), 400, 600);
|
|
||||||
gtk_container_set_border_width (GTK_CONTAINER (window), 12);
|
|
||||||
g_signal_connect (window, "destroy", G_CALLBACK (close_window), NULL);
|
|
||||||
|
|
||||||
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE);
|
|
||||||
gtk_box_set_spacing (GTK_BOX (box), 6);
|
|
||||||
gtk_container_add (GTK_CONTAINER (window), box);
|
|
||||||
|
|
||||||
gl_area = gtk_gl_area_new ();
|
|
||||||
gtk_widget_set_hexpand (gl_area, TRUE);
|
|
||||||
gtk_widget_set_vexpand (gl_area, TRUE);
|
|
||||||
gtk_container_add (GTK_CONTAINER (box), gl_area);
|
|
||||||
|
|
||||||
/* We need to initialize and free GL resources, so we use
|
|
||||||
* the realize and unrealize signals on the widget
|
|
||||||
*/
|
|
||||||
g_signal_connect (gl_area, "realize", G_CALLBACK (realize), NULL);
|
|
||||||
g_signal_connect (gl_area, "unrealize", G_CALLBACK (unrealize), NULL);
|
|
||||||
|
|
||||||
/* The main "draw" call for GtkGLArea */
|
|
||||||
g_signal_connect (gl_area, "render", G_CALLBACK (render), NULL);
|
|
||||||
|
|
||||||
controls = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE);
|
|
||||||
gtk_container_add (GTK_CONTAINER (box), controls);
|
|
||||||
gtk_widget_set_hexpand (controls, TRUE);
|
|
||||||
|
|
||||||
for (i = 0; i < N_AXIS; i++)
|
|
||||||
gtk_container_add (GTK_CONTAINER (controls), create_axis_slider (i));
|
|
||||||
|
|
||||||
button = gtk_button_new_with_label ("Quit");
|
|
||||||
gtk_widget_set_hexpand (button, TRUE);
|
|
||||||
gtk_container_add (GTK_CONTAINER (box), button);
|
|
||||||
g_signal_connect_swapped (button, "clicked", G_CALLBACK (gtk_widget_destroy), window);
|
|
||||||
|
|
||||||
return window;
|
|
||||||
}
|
|
||||||
|
|
||||||
GtkWidget*
|
|
||||||
do_glarea (GtkWidget *do_widget)
|
|
||||||
{
|
|
||||||
if (demo_window == NULL)
|
|
||||||
demo_window = create_glarea_window (do_widget);
|
|
||||||
|
|
||||||
if (!gtk_widget_get_visible (demo_window))
|
|
||||||
gtk_widget_show_all (demo_window);
|
|
||||||
else
|
|
||||||
gtk_widget_destroy (demo_window);
|
|
||||||
|
|
||||||
return demo_window;
|
|
||||||
}
|
|
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.2 KiB |
@@ -6,5 +6,5 @@ Icon=gtk3-demo
|
|||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
||||||
StartupNotify=true
|
StartupNotify=true
|
||||||
Categories=Development;GTK;
|
Categories=GTK;
|
||||||
NoDisplay=true
|
NoDisplay=true
|
||||||
|
Before Width: | Height: | Size: 1.4 KiB |
@@ -58,9 +58,14 @@ do_headerbar (GtkWidget *do_widget)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!gtk_widget_get_visible (window))
|
if (!gtk_widget_get_visible (window))
|
||||||
gtk_widget_show_all (window);
|
{
|
||||||
|
gtk_widget_show_all (window);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
gtk_widget_destroy (window);
|
{
|
||||||
|
gtk_widget_destroy (window);
|
||||||
|
window = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return window;
|
return window;
|
||||||
}
|
}
|
||||||
|
Before Width: | Height: | Size: 1.5 KiB |
@@ -1,4 +1,4 @@
|
|||||||
/* Text View/Hypertext
|
/* Text Widget/Hypertext
|
||||||
*
|
*
|
||||||
* Usually, tags modify the appearance of text in the view, e.g. making it
|
* Usually, tags modify the appearance of text in the view, e.g. making it
|
||||||
* bold or colored or underlined. But tags are not restricted to appearance.
|
* bold or colored or underlined. But tags are not restricted to appearance.
|
||||||
@@ -128,7 +128,7 @@ key_press_event (GtkWidget *text_view,
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Links can also be activated by clicking or tapping.
|
/* Links can also be activated by clicking.
|
||||||
*/
|
*/
|
||||||
static gboolean
|
static gboolean
|
||||||
event_after (GtkWidget *text_view,
|
event_after (GtkWidget *text_view,
|
||||||
@@ -136,30 +136,15 @@ event_after (GtkWidget *text_view,
|
|||||||
{
|
{
|
||||||
GtkTextIter start, end, iter;
|
GtkTextIter start, end, iter;
|
||||||
GtkTextBuffer *buffer;
|
GtkTextBuffer *buffer;
|
||||||
gdouble ex, ey;
|
GdkEventButton *event;
|
||||||
gint x, y;
|
gint x, y;
|
||||||
|
|
||||||
if (ev->type == GDK_BUTTON_RELEASE)
|
if (ev->type != GDK_BUTTON_RELEASE)
|
||||||
{
|
return FALSE;
|
||||||
GdkEventButton *event;
|
|
||||||
|
|
||||||
event = (GdkEventButton *)ev;
|
event = (GdkEventButton *)ev;
|
||||||
if (event->button != GDK_BUTTON_PRIMARY)
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
ex = event->x;
|
if (event->button != GDK_BUTTON_PRIMARY)
|
||||||
ey = event->y;
|
|
||||||
}
|
|
||||||
else if (ev->type == GDK_TOUCH_END)
|
|
||||||
{
|
|
||||||
GdkEventTouch *event;
|
|
||||||
|
|
||||||
event = (GdkEventTouch *)ev;
|
|
||||||
|
|
||||||
ex = event->x;
|
|
||||||
ey = event->y;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (text_view));
|
buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (text_view));
|
||||||
@@ -171,13 +156,13 @@ event_after (GtkWidget *text_view,
|
|||||||
|
|
||||||
gtk_text_view_window_to_buffer_coords (GTK_TEXT_VIEW (text_view),
|
gtk_text_view_window_to_buffer_coords (GTK_TEXT_VIEW (text_view),
|
||||||
GTK_TEXT_WINDOW_WIDGET,
|
GTK_TEXT_WINDOW_WIDGET,
|
||||||
ex, ey, &x, &y);
|
event->x, event->y, &x, &y);
|
||||||
|
|
||||||
gtk_text_view_get_iter_at_location (GTK_TEXT_VIEW (text_view), &iter, x, y);
|
gtk_text_view_get_iter_at_location (GTK_TEXT_VIEW (text_view), &iter, x, y);
|
||||||
|
|
||||||
follow_if_link (text_view, &iter);
|
follow_if_link (text_view, &iter);
|
||||||
|
|
||||||
return TRUE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean hovering_over_link = FALSE;
|
static gboolean hovering_over_link = FALSE;
|
||||||
@@ -253,21 +238,20 @@ do_hypertext (GtkWidget *do_widget)
|
|||||||
GtkWidget *view;
|
GtkWidget *view;
|
||||||
GtkWidget *sw;
|
GtkWidget *sw;
|
||||||
GtkTextBuffer *buffer;
|
GtkTextBuffer *buffer;
|
||||||
GdkDisplay *display;
|
|
||||||
|
|
||||||
display = gtk_widget_get_display (do_widget);
|
hand_cursor = gdk_cursor_new (GDK_HAND2);
|
||||||
hand_cursor = gdk_cursor_new_from_name (display, "pointer");
|
regular_cursor = gdk_cursor_new (GDK_XTERM);
|
||||||
regular_cursor = gdk_cursor_new_from_name (display, "text");
|
|
||||||
|
|
||||||
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
||||||
gtk_window_set_title (GTK_WINDOW (window), "Hypertext");
|
|
||||||
gtk_window_set_screen (GTK_WINDOW (window),
|
gtk_window_set_screen (GTK_WINDOW (window),
|
||||||
gtk_widget_get_screen (do_widget));
|
gtk_widget_get_screen (do_widget));
|
||||||
gtk_window_set_default_size (GTK_WINDOW (window), 450, 450);
|
gtk_window_set_default_size (GTK_WINDOW (window),
|
||||||
|
450, 450);
|
||||||
|
|
||||||
g_signal_connect (window, "destroy",
|
g_signal_connect (window, "destroy",
|
||||||
G_CALLBACK (gtk_widget_destroyed), &window);
|
G_CALLBACK (gtk_widget_destroyed), &window);
|
||||||
|
|
||||||
|
gtk_window_set_title (GTK_WINDOW (window), "Hypertext");
|
||||||
gtk_container_set_border_width (GTK_CONTAINER (window), 0);
|
gtk_container_set_border_width (GTK_CONTAINER (window), 0);
|
||||||
|
|
||||||
view = gtk_text_view_new ();
|
view = gtk_text_view_new ();
|
||||||
@@ -294,9 +278,14 @@ do_hypertext (GtkWidget *do_widget)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!gtk_widget_get_visible (window))
|
if (!gtk_widget_get_visible (window))
|
||||||
gtk_widget_show (window);
|
{
|
||||||
|
gtk_widget_show (window);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
gtk_widget_destroy (window);
|
{
|
||||||
|
gtk_widget_destroy (window);
|
||||||
|
window = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return window;
|
return window;
|
||||||
}
|
}
|
||||||
|
@@ -255,7 +255,7 @@ do_iconview (GtkWidget *do_widget)
|
|||||||
|
|
||||||
gtk_window_set_screen (GTK_WINDOW (window),
|
gtk_window_set_screen (GTK_WINDOW (window),
|
||||||
gtk_widget_get_screen (do_widget));
|
gtk_widget_get_screen (do_widget));
|
||||||
gtk_window_set_title (GTK_WINDOW (window), "Icon View Basics");
|
gtk_window_set_title (GTK_WINDOW (window), "GtkIconView demo");
|
||||||
|
|
||||||
g_signal_connect (window, "destroy",
|
g_signal_connect (window, "destroy",
|
||||||
G_CALLBACK (close_window), NULL);
|
G_CALLBACK (close_window), NULL);
|
||||||
@@ -328,7 +328,10 @@ do_iconview (GtkWidget *do_widget)
|
|||||||
if (!gtk_widget_get_visible (window))
|
if (!gtk_widget_get_visible (window))
|
||||||
gtk_widget_show_all (window);
|
gtk_widget_show_all (window);
|
||||||
else
|
else
|
||||||
gtk_widget_destroy (window);
|
{
|
||||||
|
gtk_widget_destroy (window);
|
||||||
|
window = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return window;
|
return window;
|
||||||
}
|
}
|
||||||
|
@@ -8,6 +8,8 @@
|
|||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
static GtkWidget *window = NULL;
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
COL_TEXT,
|
COL_TEXT,
|
||||||
@@ -98,8 +100,6 @@ edited (GtkCellRendererText *cell,
|
|||||||
GtkWidget *
|
GtkWidget *
|
||||||
do_iconview_edit (GtkWidget *do_widget)
|
do_iconview_edit (GtkWidget *do_widget)
|
||||||
{
|
{
|
||||||
static GtkWidget *window = NULL;
|
|
||||||
|
|
||||||
if (!window)
|
if (!window)
|
||||||
{
|
{
|
||||||
GtkWidget *icon_view;
|
GtkWidget *icon_view;
|
||||||
@@ -152,7 +152,10 @@ do_iconview_edit (GtkWidget *do_widget)
|
|||||||
if (!gtk_widget_get_visible (window))
|
if (!gtk_widget_get_visible (window))
|
||||||
gtk_widget_show_all (window);
|
gtk_widget_show_all (window);
|
||||||
else
|
else
|
||||||
gtk_widget_destroy (window);
|
{
|
||||||
|
gtk_widget_destroy (window);
|
||||||
|
window = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return window;
|
return window;
|
||||||
}
|
}
|
||||||
|
@@ -436,9 +436,14 @@ do_images (GtkWidget *do_widget)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!gtk_widget_get_visible (window))
|
if (!gtk_widget_get_visible (window))
|
||||||
gtk_widget_show_all (window);
|
{
|
||||||
|
gtk_widget_show_all (window);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
gtk_widget_destroy (window);
|
{
|
||||||
|
gtk_widget_destroy (window);
|
||||||
|
window = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return window;
|
return window;
|
||||||
}
|
}
|
||||||
|