diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..309b0cd --- /dev/null +++ b/.gitmodules @@ -0,0 +1,6 @@ +[submodule "cmake/backbone"] + path = cmake/backbone + url = git@git.backbone.ws:cmake/backbone.git +[submodule "util/backbone"] + path = util/backbone + url = git@git.backbone.ws:cmake/backbone-utils.git diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..609258d --- /dev/null +++ b/AUTHORS @@ -0,0 +1 @@ +Kolan Sh diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..4f58332 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,22 @@ +PROJECT (GResourceTest C) + +CMAKE_MINIMUM_REQUIRED (VERSION 2.8) + +SET (PROJECT_LOWERCASE_NAME "gresource-test") +SET (PROJECT_DESCRIPTION "GResource Test") + +SET (MAJOR 0) +SET (MINOR 0) +SET (PATCH 0) + +LIST (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/backbone) + +ADD_SUBDIRECTORY (config) +#ADD_SUBDIRECTORY (po) +ADD_SUBDIRECTORY (src) +ADD_SUBDIRECTORY (pkg-config) +ADD_SUBDIRECTORY (res) +ADD_SUBDIRECTORY (cpack) + +# enable testing +ENABLE_TESTING () diff --git a/COPYING b/COPYING new file mode 100644 index 0000000..65c5ca8 --- /dev/null +++ b/COPYING @@ -0,0 +1,165 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. + + 0. Additional Definitions. + + As used herein, "this License" refers to version 3 of the GNU Lesser +General Public License, and the "GNU GPL" refers to version 3 of the GNU +General Public License. + + "The Library" refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An "Application" is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A "Combined Work" is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the "Linked +Version". + + The "Minimal Corresponding Source" for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The "Corresponding Application Code" for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + + 1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + + 2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort to + ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + + 3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that the + Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this license + document. + + 4. Combined Works. + + You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this license + document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of this + License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (a) uses at run time + a copy of the Library already present on the user's computer + system, and (b) will operate properly with a modified version + of the Library that is interface-compatible with the Linked + Version. + + e) Provide Installation Information, but only if you would otherwise + be required to provide such information under section 6 of the + GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the + Application with a modified version of the Linked Version. (If + you use option 4d0, the Installation Information must accompany + the Minimal Corresponding Source and Corresponding Application + Code. If you use option 4d1, you must provide the Installation + Information in the manner specified by section 6 of the GNU GPL + for conveying Corresponding Source.) + + 5. Combined Libraries. + + You may place library facilities that are a work based on the +Library side by side in a single library together with other library +facilities that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work based + on the Library, uncombined with any other library facilities, + conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of it + is a work based on the Library, and explaining where to find the + accompanying uncombined form of the same work. + + 6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU Lesser General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. + + Each version is given a distinguishing version number. If the +Library as you received it specifies that a certain numbered version +of the GNU Lesser General Public License "or any later version" +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. + + If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. diff --git a/INSTALL b/INSTALL new file mode 100644 index 0000000..e165042 --- /dev/null +++ b/INSTALL @@ -0,0 +1,84 @@ + Requirements + ------------ + + Build-Time Dependencies + +Vala: https://wiki.gnome.org/Projects/Vala +CMake: http://www.cmake.org +NSIS (W32): http://nsis.sourceforge.net + + Run-Time Dependencies + +GLib: https://developer.gnome.org/glib + + + Operation Systems + + * GNU/Linux (Gentoo, Debian, etc.) + * MS Windows (Windows 5.1 aka XP) + * BSD-based (FreeBSD, OpenBSD, NetBSD, Mac OS X) + +If you need support of one more OS, be free in writing of patches and sending +pull-requests to the mainstream. + + + Compilation + ----------- + + Compilation under GNU/Linux + +$ mkdir build-gcc && cd build-gcc +$ cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr +$ make -j$((`getconf _NPROCESSORS_ONLN`+1)) + + Compilation under MS Windows + +$ mkdir build-mingw && cd build-mingw +$ cmake -G "MSYS Makefiles" .. -DCMAKE_BUILD_TYPE=Release +$ make -j$((NUMBER_OF_PROCESSORS + 1)) + + Compilation under BSD-based Systems. + +TODO: add description here. + + + Packing/Installation + -------------------- + + Packing/Installation under GNU/Linux + +$ cpack +Install using System Package Manager. + + Packing/Installation under MS Windows + +$ cpack +Install using generated by NSIS executable. + + Packing/Installation under BSD-based + +$ cpack +Install using System Package Manager. + + + Testing + ------- + + Testing under GNU/Linux + +$ ctest -j$((`getconf _NPROCESSORS_ONLN`+1)) + +Automated tests for memory leaks: +$ ctest -j$((NUMBER_OF_PROCESSORS + 1)) -D NightlyMemCheck && grep definitely Testing/Temporary/LastDynamicAnalysis_*.log + + Testing under MS Windows + +$ ctest -j$((NUMBER_OF_PROCESSORS + 1)) +Automated tests for memory leaks are not available as far as Valgrind not +present on this platform. + + Testing under BSD-based + +$ ctest +Automated tests for memory leaks are not available as far as Valgrind not +present on this platform. diff --git a/MAINTAINERS b/MAINTAINERS new file mode 100644 index 0000000..f2b408a --- /dev/null +++ b/MAINTAINERS @@ -0,0 +1,2 @@ +Kolan Sh +email: backbone@backbone.ws diff --git a/cmake/backbone b/cmake/backbone new file mode 160000 index 0000000..d54f2ba --- /dev/null +++ b/cmake/backbone @@ -0,0 +1 @@ +Subproject commit d54f2ba119bc25a9668b9a808b6ebb635ecd5d81 diff --git a/config/CMakeLists.txt b/config/CMakeLists.txt new file mode 100644 index 0000000..f5319ad --- /dev/null +++ b/config/CMakeLists.txt @@ -0,0 +1,2 @@ +CONFIGURE_FILE ("${CMAKE_CURRENT_SOURCE_DIR}/config.h.in" + "${CMAKE_CURRENT_BINARY_DIR}/config.h") diff --git a/config/Config.vapi b/config/Config.vapi new file mode 100644 index 0000000..24a890f --- /dev/null +++ b/config/Config.vapi @@ -0,0 +1,6 @@ +[CCode (cheader_filename = "config.h")] +namespace Config { + static const int VERSION_MAJOR; + static const int VERSION_MINOR; + static const int VERSION_PATCH; +} diff --git a/config/config.h.in b/config/config.h.in new file mode 100644 index 0000000..3c66f33 --- /dev/null +++ b/config/config.h.in @@ -0,0 +1,3 @@ +#define CONFIG_VERSION_MAJOR @MAJOR@ +#define CONFIG_VERSION_MINOR @MINOR@ +#define CONFIG_VERSION_PATCH @PATCH@ diff --git a/cpack/CMakeLists.txt b/cpack/CMakeLists.txt new file mode 100644 index 0000000..e38d511 --- /dev/null +++ b/cpack/CMakeLists.txt @@ -0,0 +1,9 @@ +SET (CONTACT "backbone@backbone.ws") +SET (DEBIAN_DEPENDENCIES "valac (>= 0.24)" ) +SET (DEBIAN_SECTION "Libraries") +SET (REDHAT_DEPENDENCIES "vala >= 0.24") +SET (REDHAT_SECTION "Applications/System") +SET (LICENSE "LGPLv3+") +SET (WIN32_UNINSTALL_NAME "GResTst") # <= 8 symbols for the name + +INCLUDE (CPackCommonRules) diff --git a/pkg-config/CMakeLists.txt b/pkg-config/CMakeLists.txt new file mode 100644 index 0000000..d349889 --- /dev/null +++ b/pkg-config/CMakeLists.txt @@ -0,0 +1,6 @@ +INCLUDE (PkgConfigCommonRules) + +CONFIGURE_FILE ( + "${CMAKE_SOURCE_DIR}/cmake/backbone/templates/pkg-config.pc.in" + "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_LOWERCASE_NAME}-${MAJOR}.pc" +) diff --git a/pkgs/gentoo/app-misc/gresource-test/Manifest b/pkgs/gentoo/app-misc/gresource-test/Manifest new file mode 100644 index 0000000..0af2daf --- /dev/null +++ b/pkgs/gentoo/app-misc/gresource-test/Manifest @@ -0,0 +1 @@ +EBUILD gresource-test-9999.ebuild 879 SHA256 cc628066483d51416adf9ab9e0fbe560397dea324666b1ad9e3fad3d805b3349 SHA512 4ee8d2a5844bb6759c12b1396ff83f84bc2ac98d21166781d0af39364e9acb6c924159675ad3737f44f2f93340407015ca5e1f929f4b25fff2c1d579a64d0060 WHIRLPOOL 0a6b3d3322ed3e0162dd64286ddd2f101b96d9e580b225c794e1866304bcf31e7b31fd1eb9c85c8bd609e2968143898d3ccb764c96a3c00bd451671eeca8a13d diff --git a/pkgs/gentoo/app-misc/gresource-test/gresource-test-9999.ebuild b/pkgs/gentoo/app-misc/gresource-test/gresource-test-9999.ebuild new file mode 100644 index 0000000..adff10d --- /dev/null +++ b/pkgs/gentoo/app-misc/gresource-test/gresource-test-9999.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit gnome2-utils cmake-utils + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI=${EGIT_REPO_URI:-"git://git.backbone.ws/dev/gresource-test.git"} + inherit git-r3 + KEYWORDS="" +else + #SRC_URI="ftp://ftp.backbone.ws/projects/gresource-test/${P}.tar.bz2" + SRC_URI="https://git.backbone.ws/dev/gresource-test/archive-tarball/v${PVR}.tgz -> gresource-test-${PVR}.tar.gz" + KEYWORDS="-* ~x86 ~amd64" +fi + +DESCRIPTION="Testing CMake+GSettings bundle.." + +HOMEPAGE="https://redmine.backbone.ws/projects/plugin" + +SLOT="0" + +LICENSE="LGPL-3" + +IUSE="" + +DEPEND=">=dev-lang/vala-0.26 + >=dev-libs/libgee-0.16" + +RDEPEND="${DEPEND}" + +#pkg_preinst() { +# gnome2_schemas_savelist +#} +# +#pkg_postinst() { +# gnome2_schemas_update +#} +# +#pkg_posrm() { +# gnome2_schemas_update +#} diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt new file mode 100644 index 0000000..c191c1b --- /dev/null +++ b/po/CMakeLists.txt @@ -0,0 +1 @@ +INCLUDE (GettextCommonRules) diff --git a/po/gresource-test.pot b/po/gresource-test.pot new file mode 100644 index 0000000..e69de29 diff --git a/po/ru/CMakeLists.txt b/po/ru/CMakeLists.txt new file mode 100644 index 0000000..0b6020c --- /dev/null +++ b/po/ru/CMakeLists.txt @@ -0,0 +1 @@ +INCLUDE (GettextLangRules) diff --git a/po/ru/gresource-test.po b/po/ru/gresource-test.po new file mode 100644 index 0000000..e69de29 diff --git a/res/CMakeLists.txt b/res/CMakeLists.txt new file mode 100644 index 0000000..b3dbb35 --- /dev/null +++ b/res/CMakeLists.txt @@ -0,0 +1 @@ +INCLUDE (GResourceCommonRules) diff --git a/res/alnilam-Stars-Pattern.png b/res/alnilam-Stars-Pattern.png new file mode 100644 index 0000000..57f64ff Binary files /dev/null and b/res/alnilam-Stars-Pattern.png differ diff --git a/res/gresource-test.gresource.xml b/res/gresource-test.gresource.xml new file mode 100644 index 0000000..2a1a091 --- /dev/null +++ b/res/gresource-test.gresource.xml @@ -0,0 +1,8 @@ + + + + alnilam-Stars-Pattern.png + whois-server-list.xml + gwhois.css + + diff --git a/res/gwhois.css b/res/gwhois.css new file mode 100644 index 0000000..1d4edd2 --- /dev/null +++ b/res/gwhois.css @@ -0,0 +1,177 @@ +/* Requires msgbox.css.. so add that first */ + +// +// Animations +// +@keyframes 'links-and-more-button-focus' +{ + from + { + background-color: gradient( linear, -15% 0%, 100% 0%, from( #fdfdfdee ), to( #adafafe0 ) ); + } + + 50% + { + background-color: gradient( linear, -15% 0%, 100% 0%, from( #fdfdfdff ), to( #bdbfbfff ) ); + } + + to + { + background-color: gradient( linear, -15% 0%, 100% 0%, from( #fdfdfdee ), to( #adafafe0 ) ); + } +} + + +// +// Button styles +// +Button +{ + width: 100%; + padding: 8px 0px 8px 0px; + margin: 4px 0px; + + color: detailsdatalabelfocus; + background-color: gradient( linear, 0% 0%, 0% 100%, from( #1d212200 ), to( #12131300 ) ); + border-style: solid; + border-width: 5px; + border-color: none; + + transition-property: border, background-color, color, box-shadow, transform; + transition-timing-function: bigpicture-ease-in-out; +} + +Button Label +{ + width: 100%; + vertical-align: center; + + font-family: platformfont; + font-size: 28px; + font-weight: bold; + transform: translatex(-7px); + color: detailsdatalabelfocus; + transition-property: transform; + transition-duration: 0.2s; + transition-timing-function: ease-in; +} + +Button:focus Label +{ + color: #171717f5; + transform: translatex(0px); +} + +Button:hover +{ + transition-duration: 0.23s !immediate; + box-shadow: #eeeeee60 -3px -3px 6px 6px; +} + +Button:hover Label +{ + transform: translatex(0px); +} + +Button:focus +{ + transition-duration: 0.4s !immediate; + + color: #161718f5; + background-color: gradient( linear, -15% 0%, 100% 0%, from( #fdfdfdee ), to( #adafafe0 ) ); + border-width: 5px; + border-style: solid; + border-color: #fdfefef0; + + animation-name: links-and-more-button-focus; + animation-duration: 1.7s; + animation-delay: 0.4s; + animation-timing-function: bigpicture-ease-in-out; + animation-iteration-count: infinite; + animation-direction: normal; +} + + +// +// Set coupon dialog +// +StoreCartSetCoupon +{ + width: 100%; + height: 100%; + + animation-name: msg-box-appear; + animation-duration: MessageBoxAnimationDuration; + animation-timing-function: bigpicture-ease-in-out; + animation-iteration-count: 1; +} + +StoreCartSetCoupon.Destructing +{ + opacity: 0.0; + + animation-name: msg-box-disappear; + animation-duration: MessageBoxAnimationDuration; + animation-timing-function: bigpicture-ease-in-out; + animation-iteration-count: 1; +} + +.DialogRegion +{ + width: 1100px; + height: 600px; + align: center center; + padding: 24px 4px 24px 24px; + background-color: message_box_bg; + border: 5px solid #424c50; + flow-children: down; +} + +#ItemName +{ + font-size: 48px; + color: white; + margin-bottom: 0px; +} + +.CouponInstructions +{ + font-size: 32px; + color: #7d7c7b; + margin-bottom: 10px; +} + +#Coupons +{ + flow-children: down; +} + +.SuggestedCoupon +{ + flow-children: down; + width: 100%; +} + +.SuggestedCouponNameSavingsRow +{ + padding: 0px 7px 0px 7px; + flow-children: right; + width: 100%; +} + +.CouponName +{ + width: fit-children; +} + +.CouponSavings +{ + horizontal-align: right; + width: fit-children; +} + +.CouponWarning +{ + padding: 0px 7px 0px 7px; +} + diff --git a/res/whois-server-list.xml b/res/whois-server-list.xml new file mode 100644 index 0000000..decfa3f --- /dev/null +++ b/res/whois-server-list.xml @@ -0,0 +1,69 @@ + + + + 0 + Success + + + + + + + + + + + + + + + + + + + Pokud si chcete zaregistrovat svou hru, musíte být připojeni k Internetu.]]> + Další a pokračujte.

]]>
+ Co mám dělat, pokud nemám připojení k Internetu?]]> + Aby bylo možno ověřit Vaši registraci nebo provést kontrolu údajů pro skvělé reklamní nabídky, musíte být připojeni k Internetu .]]> + Další a Pokračujte..

]]>
+ Co mám dělat, pokud nemám připojení k Internetu?]]> + Nyní se obracím na EA... ]]> + Buďte trpěliví - může to chvíli trvat.]]> + Bylo navázáno spojení.]]> + Spuštění registrace…]]> + Není možno se spojit s EA]]> + + Zkusit znovu.]]> + Co bych měl/a dělat, když se nemůžu ani na několikátý pokus připojit?]]> + Pokud chcete zaregistrovat svůj produkt, musíte mít připojení na Internet.K tomu, abyste mohl/a hrát, nemusíte hru registrovat. Avšak pokud chcete svůj produkt zaregistrovat a nemůžete se připojit k systému registrace produktů EA ani po několika pokusech, navrhujeme tento postup:]]> + + + www.eagamereg.com a vyplňte formulář pro registraci na webu.]]> + Kontakt na EA]]> + + Nemáte připojení k internetu? To není problém!]]> + ]]> + + + Opravdu chcete skončit?]]> + Pokud nezaregistrujete svůj produkt, připravujete se o některé skvělé výhody, včetně:
]]>
+ + Plná technická podpora.]]> + Vnitřní informace o Vašich oblíbených hrách EA.]]> + Kód pro triky nebo herní typy pro Vaši hru zdarma!]]> + Zaregistrujte se a užijte si hru.]]> + Toto znění {client:game-name} nemůže být zaregistrováno. K tomu, abyste mohli hrát, tento produkt nemusíte registrovat. Můžete jít na www.ea.com, kde získáte nejnovější informace o produktech EA a přihlásit se pro zasílání novinek od EA.
]]>
+ Získejte kód pro triky nebo herní tipy pro svou hru a mnohé další!

]]>
+ Nyní zaregistrujte {client:game-name} a získejte tyto skvělé výhody!
]]>
+ Kód pro podvody nebo herní typy pro Vaši hru zdarma!]]> + Vnitřní informace o Vašich oblíbených hrách EA.]]> + Plná technická podpora.]]> + + Již jste zaregistrovali {client:game-name}.]]> + + + +
+
+
+ diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..5435eb1 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,8 @@ +SET (BinName gresource-test-${MAJOR}) +FILE (GLOB_RECURSE BinSources RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} GIO.Resource.vala) +SET (BinPackages gio-2.0) +SET (BinPkgModules gio-2.0) +SET (BinCustomVapis ${CMAKE_SOURCE_DIR}/config/Config.vapi) +INCLUDE_DIRECTORIES ("${CMAKE_BINARY_DIR}/config") +SET (BinInstall ON) +INCLUDE (ValaBinCommonRules) diff --git a/src/GIO.Resource.vala b/src/GIO.Resource.vala new file mode 100644 index 0000000..e3035ea --- /dev/null +++ b/src/GIO.Resource.vala @@ -0,0 +1,33 @@ +extern const string GETTEXT_PACKAGE; + +public static int main (string[] args) { + try { + File exec_file = File.new_for_path (Environment.find_program_in_path (args[0])); + string resource_file = Path.build_path (Path.DIR_SEPARATOR_S, exec_file.get_parent().get_parent().get_path(), + "share/gresource-test-"+Config.VERSION_MAJOR.to_string()+"/gresource-test.gresource"); + + var res = Resource.load (resource_file); + //res._register(); + string[] children = res.enumerate_children ("/ws/backbone/gresource-test", ResourceLookupFlags.NONE); + + // print all files info + var i = 0; + foreach (var c in children) { + size_t size; + uint32 flags; + stdout.printf ("child[%d] = %s", i++, c); + if (res.get_info ("/ws/backbone/gresource-test/" + c, ResourceLookupFlags.NONE, out size, out flags)) + stdout.printf (", size = %u%s\n", (uint)size, flags == ResourceFlags.COMPRESSED ? ", compressed" : ""); + } + + // print first 64 bytes of gwhois.css + var gwhois_css_data = res.lookup_data ("/ws/backbone/gresource-test/gwhois.css", + ResourceLookupFlags.NONE); + stdout.printf ("First 64 bytes of gwhois.css:\n%s\n", ((string)gwhois_css_data.get_data()).substring(0,64)); + + } catch (Error e) { + stdout.printf ("Error: %s\n", e.message); + } + + return 0; +} diff --git a/util/backbone b/util/backbone new file mode 160000 index 0000000..d4e233a --- /dev/null +++ b/util/backbone @@ -0,0 +1 @@ +Subproject commit d4e233ae72412f4dfef9b7c39ae7a1b6667fb446 diff --git a/valadoc_env b/valadoc_env new file mode 100644 index 0000000..e9c3820 --- /dev/null +++ b/valadoc_env @@ -0,0 +1,2 @@ +BASEDIR=src +PKGS=gio-2.0