Complete :)

This commit is contained in:
Kolan Sh 2015-11-10 22:53:58 +03:00
parent dbba287501
commit f072df2d1f
27 changed files with 653 additions and 0 deletions

6
.gitmodules vendored Normal file
View File

@ -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

1
AUTHORS Normal file
View File

@ -0,0 +1 @@
Kolan Sh <backbone@backbone.ws>

22
CMakeLists.txt Normal file
View File

@ -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 ()

165
COPYING Normal file
View File

@ -0,0 +1,165 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
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.

84
INSTALL Normal file
View File

@ -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.

2
MAINTAINERS Normal file
View File

@ -0,0 +1,2 @@
Kolan Sh
email: backbone@backbone.ws

1
cmake/backbone Submodule

@ -0,0 +1 @@
Subproject commit d54f2ba119bc25a9668b9a808b6ebb635ecd5d81

2
config/CMakeLists.txt Normal file
View File

@ -0,0 +1,2 @@
CONFIGURE_FILE ("${CMAKE_CURRENT_SOURCE_DIR}/config.h.in"
"${CMAKE_CURRENT_BINARY_DIR}/config.h")

6
config/Config.vapi Normal file
View File

@ -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;
}

3
config/config.h.in Normal file
View File

@ -0,0 +1,3 @@
#define CONFIG_VERSION_MAJOR @MAJOR@
#define CONFIG_VERSION_MINOR @MINOR@
#define CONFIG_VERSION_PATCH @PATCH@

9
cpack/CMakeLists.txt Normal file
View File

@ -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)

View File

@ -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"
)

View File

@ -0,0 +1 @@
EBUILD gresource-test-9999.ebuild 879 SHA256 cc628066483d51416adf9ab9e0fbe560397dea324666b1ad9e3fad3d805b3349 SHA512 4ee8d2a5844bb6759c12b1396ff83f84bc2ac98d21166781d0af39364e9acb6c924159675ad3737f44f2f93340407015ca5e1f929f4b25fff2c1d579a64d0060 WHIRLPOOL 0a6b3d3322ed3e0162dd64286ddd2f101b96d9e580b225c794e1866304bcf31e7b31fd1eb9c85c8bd609e2968143898d3ccb764c96a3c00bd451671eeca8a13d

View File

@ -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
#}

1
po/CMakeLists.txt Normal file
View File

@ -0,0 +1 @@
INCLUDE (GettextCommonRules)

0
po/gresource-test.pot Normal file
View File

1
po/ru/CMakeLists.txt Normal file
View File

@ -0,0 +1 @@
INCLUDE (GettextLangRules)

0
po/ru/gresource-test.po Normal file
View File

1
res/CMakeLists.txt Normal file
View File

@ -0,0 +1 @@
INCLUDE (GResourceCommonRules)

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/ws/backbone/gresource-test">
<file preprocess="to-pixdata">alnilam-Stars-Pattern.png</file>
<file preprocess="xml-stripblanks">whois-server-list.xml</file>
<file compressed="true">gwhois.css</file>
</gresource>
</gresources>

177
res/gwhois.css Normal file
View File

@ -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;
}

69
res/whois-server-list.xml Normal file
View File

@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE subs-interface-reply SYSTEM "http://account.ea.com/subsxml/subs-interface.dtd">
<subs-interface-reply version="2.0">
<status>0</status>
<message>Success</message>
<get-registration-dictionary-reply>
<message-dictionary>
<message id="00GAMENAME-1"><![CDATA[Need for Speed Underground 2]]></message>
<message id="BUTTONSANDLABELS-1"><![CDATA[REGISTRACE]]></message>
<message id="BUTTONSANDLABELS-10"><![CDATA[OK]]></message>
<message id="BUTTONSANDLABELS-11"><![CDATA[ZRUŠIT]]></message>
<message id="BUTTONSANDLABELS-12"><![CDATA[ZKUSIT ZNOVU]]></message>
<message id="BUTTONSANDLABELS-13"><![CDATA[ZAVŘÍT]]></message>
<message id="BUTTONSANDLABELS-14"><![CDATA[KONEC]]></message>
<message id="BUTTONSANDLABELS-15"><![CDATA[DOKONČIT POZDĚJI]]></message>
<message id="BUTTONSANDLABELS-2"><![CDATA[ZAREGISTROVAT POZDĚJI]]></message>
<message id="BUTTONSANDLABELS-3"><![CDATA[ZAREGISTROVAT NYNÍ]]></message>
<message id="BUTTONSANDLABELS-4"><![CDATA[ANO]]></message>
<message id="BUTTONSANDLABELS-5"><![CDATA[NE]]></message>
<message id="BUTTONSANDLABELS-6"><![CDATA[PŘEDCHOZÍ]]></message>
<message id="BUTTONSANDLABELS-7"><![CDATA[DALŠÍ]]></message>
<message id="BUTTONSANDLABELS-8"><![CDATA[ZPĚT]]></message>
<message id="BUTTONSANDLABELS-9"><![CDATA[HOTOVO]]></message>
<message id="CONNECT1A-1"><![CDATA[<B>Pokud si chcete zaregistrovat svou hru, musíte být připojeni k Internetu.</b>]]></message>
<message id="CONNECT1A-2"><![CDATA[Pokud stále ještě nejste připojeni k Internetu, učiňte tak prosím. Pokud jste již připojeni, stiskněte tlačítko <b>Další</b> a pokračujte.<BR><BR>]]></message>
<message id="CONNECT1A-3"><![CDATA[<font color="#333399"><a href="asfunction:gotoURL,r3b"><u>Co mám dělat, pokud nemám připojení k Internetu?</u></a></font>]]></message>
<message id="CONNECT1B-1"><![CDATA[<b>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 .</b>]]></message>
<message id="CONNECT1B-2"><![CDATA[Pokud stále ještě nejste připojeni k Internetu, učiňte tak prosím. Pokud jste již připojeni, Stiskněte tlačítko <b>Další</b> a Pokračujte..<BR><BR>]]></message>
<message id="CONNECT1B-3"><![CDATA[<font color="#333399"><a href="asfunction:gotoURL,r3b"><u>Co mám dělat, pokud nemám připojení k Internetu?</u></a></font>]]></message>
<message id="CONNECT1C-1"><![CDATA[<b>Nyní se obracím na EA... </b>]]></message>
<message id="CONNECT1C-2"><![CDATA[<b>Buďte trpěliví - může to chvíli trvat.</b>]]></message>
<message id="CONNECTED1A-1"><![CDATA[<b>Bylo navázáno spojení.</b>]]></message>
<message id="CONNECTED1A-2"><![CDATA[<b>Spuštění registrace…</b>]]></message>
<message id="CONNECTED1B-1"><![CDATA[<b>Není možno se spojit s EA</b>]]></message>
<message id="CONNECTED1B-2"><![CDATA[Není možno navázat kontakt se systémem registrace produktů EA. Pokud chcete provést registraci svého produktu, musíte být připojeni k Internetu. Pokud ještě nejste připojeni k Internetu, učiňte tak prosím nyní.]]></message>
<message id="CONNECTED1B-3"><![CDATA[Pokud jste připojeni, stiskněte tlačítko <b>Zkusit znovu</B>.]]></message>
<message id="CONNECTED1B-4"><![CDATA[<font color="#333399"><a href="asfunction:gotoURL,r3b"><u>Co bych měl/a dělat, když se nemůžu ani na několikátý pokus připojit?</u></a></font>]]></message>
<message id="CONNECTHOWTO-1"><![CDATA[<b>Pokud chcete zaregistrovat svůj produkt, musíte mít připojení na Internet.</b>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:]]></message>
<message id="CONNECTHOWTO-2"><![CDATA[Zkontrolujte, zda je Vaše připojení k Internetu funkční.]]></message>
<message id="CONNECTHOWTO-3"><![CDATA[Obraťte se na technickou podporu EA. Informace o kontaktu na oddělením podpory EA naleznete na příručce ke hře.]]></message>
<message id="CONNECTHOWTO-4"><![CDATA[Běžte na <font color="#333399"><a href="http://www.eagamereg.com"><u>www.eagamereg.com</u></a> a vyplňte formulář pro registraci na webu.</font>]]></message>
<message id="CONNECTING-1"><![CDATA[<b>Kontakt na EA</b>]]></message>
<message id="CONNECTING-2"><![CDATA[Pokoušíme se spojit se systémem registrace produktů EA. Buďte prosím trpělivý, může to nějakou dobu trvat.]]></message>
<message id="NOINTERNET-1"><![CDATA[<B>Nemáte připojení k internetu? To není problém!</B>]]></message>
<message id="NOINTERNET-2"><![CDATA[Hru {client:game-name} můžete hrát bez její registrace. Pokud potřebujete zavolat technickou podporu, budete požádáni, abyste svou hru zaregistrovali prostřednictvím telefonu. Číslo technické podpory Vaší hry naleznete na příručce ke hře.<BR>]]></message>
<message id="NOINTERNET-3"><![CDATA[Užijte si svou hru!]]></message>
<message id="NOINTERNET-4"><![CDATA[Electronic Arts]]></message>
<message id="OFFLINEEXITCONFIRM-1"><![CDATA[<b>Opravdu chcete skončit?</b>]]></message>
<message id="REGISTERLATER-1"><![CDATA[<b>Pokud nezaregistrujete svůj produkt, připravujete se o některé skvělé výhody, včetně:</b><BR>]]></message>
<message id="REGISTERLATER-2"><![CDATA[&nbsp;]]></message>
<message id="REGISTERLATER-3"><![CDATA[<li>Plná technická podpora.</li>]]></message>
<message id="REGISTERLATER-4"><![CDATA[<li>Vnitřní informace o Vašich oblíbených hrách EA.</li>]]></message>
<message id="REGISTERLATER-5"><![CDATA[<li>Kód pro triky nebo herní typy pro Vaši hru zdarma!</li>]]></message>
<message id="REGISTERLATER-6"><![CDATA[<BR><b>Zaregistrujte se a užijte si hru.</b>]]></message>
<message id="SIGNIN1B-1"><![CDATA[<b>Toto znění {client:game-name} nemůže být zaregistrováno.</b> K tomu, abyste mohli hrát, tento produkt nemusíte registrovat. Můžete jít na <font color="#333399"><a href="http://www.ea.com"><u>www.ea.com</u></a></font>, kde získáte nejnovější informace o produktech EA a přihlásit se pro zasílání novinek od EA.<BR>]]></message>
<message id="START1A-1"><![CDATA[<b>Získejte kód pro triky nebo herní tipy pro svou hru a mnohé další!</b> <BR><BR>]]></message>
<message id="START1A-2"><![CDATA[<b>Nyní zaregistrujte {client:game-name} a získejte tyto skvělé výhody!</b><BR>]]></message>
<message id="START1A-3"><![CDATA[<li>Kód pro podvody nebo herní typy pro Vaši hru zdarma!</li>]]></message>
<message id="START1A-4"><![CDATA[<li>Vnitřní informace o Vašich oblíbených hrách EA.</li>]]></message>
<message id="START1A-5"><![CDATA[<li>Plná technická podpora.</li>]]></message>
<message id="START1A-6"><![CDATA[&nbsp;]]></message>
<message id="START1B-1"><![CDATA[<b>Již jste zaregistrovali {client:game-name}.</b>]]></message>
<message id="START1B-2"><![CDATA[Chcete si zkontrolovat své registrační údaje nebo zodpovědět některé další otázky pro speciální nabídky her EA?]]></message>
<message id="TITLE-PREFIX"><![CDATA[default]]></message>
<message id="TITLE-SUFFIX"><![CDATA[default]]></message>
</message-dictionary>
</get-registration-dictionary-reply>
</subs-interface-reply>

8
src/CMakeLists.txt Normal file
View File

@ -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)

33
src/GIO.Resource.vala Normal file
View File

@ -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;
}

1
util/backbone Submodule

@ -0,0 +1 @@
Subproject commit d4e233ae72412f4dfef9b7c39ae7a1b6667fb446

2
valadoc_env Normal file
View File

@ -0,0 +1,2 @@
BASEDIR=src
PKGS=gio-2.0