change the resources

parent b899dea2
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<gresources> <gresources>
<gresource prefix="/org/gnome/Tour/"> <gresource prefix="/ru/ximperlinux/Welcome/">
<file compressed="true" alias="style.css">resources/style.css</file> <file compressed="true" alias="style.css">resources/style.css</file>
<file compressed="true" preprocess="xml-stripblanks" alias="ui/image-page.ui">resources/ui/image-page.ui</file> <file compressed="true" preprocess="xml-stripblanks" alias="ui/image-page.ui">resources/ui/image-page.ui</file>
<file compressed="true" preprocess="xml-stripblanks" alias="ui/paginator.ui">resources/ui/paginator.ui</file> <file compressed="true" preprocess="xml-stripblanks" alias="ui/paginator.ui">resources/ui/paginator.ui</file>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<file compressed="true" alias="updown-bg.svg">resources/assets/updown-bg.svg</file> <file compressed="true" alias="updown-bg.svg">resources/assets/updown-bg.svg</file>
<file compressed="true" alias="leftright-bg.svg">resources/assets/leftright-bg.svg</file> <file compressed="true" alias="leftright-bg.svg">resources/assets/leftright-bg.svg</file>
</gresource> </gresource>
<gresource prefix="/org/gnome/Tour/icons/scalable/actions"> <gresource prefix="/ru/ximperlinux/Welcome/icons/scalable/actions">
<file compressed="true" alias="prev-large-symbolic.svg">resources/left-large-symbolic.svg</file> <file compressed="true" alias="prev-large-symbolic.svg">resources/left-large-symbolic.svg</file>
<file compressed="true" alias="prev-large-symbolic-rtl.svg">resources/right-large-symbolic.svg</file> <file compressed="true" alias="prev-large-symbolic-rtl.svg">resources/right-large-symbolic.svg</file>
<file compressed="true" alias="next-large-symbolic.svg">resources/right-large-symbolic.svg</file> <file compressed="true" alias="next-large-symbolic.svg">resources/right-large-symbolic.svg</file>
......
...@@ -28,8 +28,8 @@ ...@@ -28,8 +28,8 @@
.page:nth-child(5) { .page:nth-child(5) {
/* up down */ /* up down */
background: url('/org/gnome/Tour/hand-fg.svg'), background: url('/ru/ximperlinux/Welcome/hand-fg.svg'),
url('/org/gnome/Tour/updown-bg.svg'); url('/ru/ximperlinux/Welcome/updown-bg.svg');
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center 30%; background-position: center 30%;
animation: up-and-down 2s ease-in-out infinite alternate; animation: up-and-down 2s ease-in-out infinite alternate;
...@@ -37,8 +37,8 @@ ...@@ -37,8 +37,8 @@
.page:nth-child(6) { .page:nth-child(6) {
/* left right */ /* left right */
background: url('/org/gnome/Tour/hand-fg.svg'), background: url('/ru/ximperlinux/Welcome/hand-fg.svg'),
url('/org/gnome/Tour/leftright-bg.svg'); url('/ru/ximperlinux/Welcome/leftright-bg.svg');
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center 30%; background-position: center 30%;
animation: left-and-right 2s ease-in-out infinite alternate; animation: left-and-right 2s ease-in-out infinite alternate;
......
...@@ -7,48 +7,48 @@ ...@@ -7,48 +7,48 @@
<object class="PaginatorWidget" id="paginator"> <object class="PaginatorWidget" id="paginator">
<child> <child>
<object class="ImagePageWidget" id="welcome_page"> <object class="ImagePageWidget" id="welcome_page">
<property name="resource-uri">/org/gnome/Tour/welcome.svg</property> <property name="resource-uri">/ru/ximperlinux/Welcome/welcome.svg</property>
<property name="head" translatable="yes">Let's Begin</property> <property name="head" translatable="yes">Let's Begin</property>
</object> </object>
</child> </child>
<child> <child>
<object class="ImagePageWidget"> <object class="ImagePageWidget">
<property name="resource-uri">/org/gnome/Tour/overview.svg</property> <property name="resource-uri">/ru/ximperlinux/Welcome/overview.svg</property>
<property name="head" translatable="yes">Get an Overview</property> <property name="head" translatable="yes">Get an Overview</property>
<property name="body" translatable="yes" comments="Translators: 'Windows' is referring to the operating system and should not be translated">The overview shows all your apps and windows. Press the Super (Windows) key to open it.</property> <property name="body" translatable="yes" comments="Translators: 'Windows' is referring to the operating system and should not be translated">The overview shows all your apps and windows. Press the Super (Windows) key to open it.</property>
</object> </object>
</child> </child>
<child> <child>
<object class="ImagePageWidget"> <object class="ImagePageWidget">
<property name="resource-uri">/org/gnome/Tour/search.svg</property> <property name="resource-uri">/ru/ximperlinux/Welcome/search.svg</property>
<property name="head" translatable="yes">Powerful Search</property> <property name="head" translatable="yes">Powerful Search</property>
<property name="body" translatable="yes">To search, just start typing in the overview. You can use search to launch apps, find files, perform calculations, and more.</property> <property name="body" translatable="yes">To search, just start typing in the overview. You can use search to launch apps, find files, perform calculations, and more.</property>
</object> </object>
</child> </child>
<child> <child>
<object class="ImagePageWidget"> <object class="ImagePageWidget">
<property name="resource-uri">/org/gnome/Tour/workspaces.svg</property> <property name="resource-uri">/ru/ximperlinux/Welcome/workspaces.svg</property>
<property name="head" translatable="yes">Stay Organized With Workspaces</property> <property name="head" translatable="yes">Stay Organized With Workspaces</property>
<property name="body" translatable="yes">Organize your windows by moving them into different workspaces. This can be done by dragging them in the overview.</property> <property name="body" translatable="yes">Organize your windows by moving them into different workspaces. This can be done by dragging them in the overview.</property>
</object> </object>
</child> </child>
<child> <child>
<object class="ImagePageWidget"> <object class="ImagePageWidget">
<property name="resource-uri">/org/gnome/Tour/blank.svg</property> <property name="resource-uri">/ru/ximperlinux/Welcome/blank.svg</property>
<property name="head" translatable="yes">Swipe Up and Down</property> <property name="head" translatable="yes">Swipe Up and Down</property>
<property name="body" translatable="yes">To quickly open the overview with a touchpad, swipe up with three fingers.</property> <property name="body" translatable="yes">To quickly open the overview with a touchpad, swipe up with three fingers.</property>
</object> </object>
</child> </child>
<child> <child>
<object class="ImagePageWidget"> <object class="ImagePageWidget">
<property name="resource-uri">/org/gnome/Tour/blank.svg</property> <property name="resource-uri">/ru/ximperlinux/Welcome/blank.svg</property>
<property name="head" translatable="yes">Swipe Left and Right</property> <property name="head" translatable="yes">Swipe Left and Right</property>
<property name="body" translatable="yes">To move between workspaces, swipe three fingers horizontally.</property> <property name="body" translatable="yes">To move between workspaces, swipe three fingers horizontally.</property>
</object> </object>
</child> </child>
<child> <child>
<object class="ImagePageWidget"> <object class="ImagePageWidget">
<property name="resource-uri">/org/gnome/Tour/ready-to-go.svg</property> <property name="resource-uri">/ru/ximperlinux/Welcome/ready-to-go.svg</property>
<property name="head" translatable="yes">That's It!</property> <property name="head" translatable="yes">That's It!</property>
<property name="body" translatable="yes">To get more advice and tips, see the Help app.</property> <property name="body" translatable="yes">To get more advice and tips, see the Help app.</property>
<style> <style>
......
...@@ -75,7 +75,7 @@ impl Default for Application { ...@@ -75,7 +75,7 @@ impl Default for Application {
fn default() -> Self { fn default() -> Self {
glib::Object::builder() glib::Object::builder()
.property("application-id", config::APP_ID) .property("application-id", config::APP_ID)
.property("resource-base-path", "/org/gnome/Tour") .property("resource-base-path", "/ru/ximperlinux/Welcome")
.build() .build()
} }
} }
...@@ -12,8 +12,8 @@ use config::{GETTEXT_PACKAGE, LOCALEDIR}; ...@@ -12,8 +12,8 @@ use config::{GETTEXT_PACKAGE, LOCALEDIR};
fn main() -> glib::ExitCode { fn main() -> glib::ExitCode {
let mut log_builder = env_logger::builder(); let mut log_builder = env_logger::builder();
// Compatibility G_MESSAGES_DEBUG env var // Compatibility G_MESSAGES_DEBUG env var
if !glib::log_writer_default_would_drop(glib::LogLevel::Debug, Some("gnome_tour")) { if !glib::log_writer_default_would_drop(glib::LogLevel::Debug, Some("ximper_welcome")) {
log_builder.filter_module("gnome_tour", log::LevelFilter::Debug); log_builder.filter_module("ximper_welcome", log::LevelFilter::Debug);
} }
log_builder.init(); log_builder.init();
...@@ -24,8 +24,8 @@ fn main() -> glib::ExitCode { ...@@ -24,8 +24,8 @@ fn main() -> glib::ExitCode {
textdomain(GETTEXT_PACKAGE) textdomain(GETTEXT_PACKAGE)
.unwrap_or_else(|_| panic!("Unable to switch to text domain {GETTEXT_PACKAGE}")); .unwrap_or_else(|_| panic!("Unable to switch to text domain {GETTEXT_PACKAGE}"));
glib::set_application_name(&gettext("Tour")); glib::set_application_name(&gettext("Ximper Welcome"));
glib::set_prgname(Some("Tour")); glib::set_prgname(Some("Ximper Welcome"));
let res = gio::Resource::load(config::RESOURCES_FILE).expect("Could not load resources"); let res = gio::Resource::load(config::RESOURCES_FILE).expect("Could not load resources");
gio::resources_register(&res); gio::resources_register(&res);
......
...@@ -7,7 +7,7 @@ mod imp { ...@@ -7,7 +7,7 @@ mod imp {
#[derive(Debug, Default, glib::Properties, gtk::CompositeTemplate)] #[derive(Debug, Default, glib::Properties, gtk::CompositeTemplate)]
#[properties(wrapper_type = super::ImagePageWidget)] #[properties(wrapper_type = super::ImagePageWidget)]
#[template(resource = "/org/gnome/Tour/ui/image-page.ui")] #[template(resource = "/ru/ximperlinux/Welcome/ui/image-page.ui")]
pub struct ImagePageWidget { pub struct ImagePageWidget {
#[property(get, set= Self::set_resource_uri, construct_only)] #[property(get, set= Self::set_resource_uri, construct_only)]
pub(super) resource_uri: OnceCell<String>, pub(super) resource_uri: OnceCell<String>,
......
...@@ -7,7 +7,7 @@ mod imp { ...@@ -7,7 +7,7 @@ mod imp {
use super::*; use super::*;
#[derive(Default, Debug, gtk::CompositeTemplate)] #[derive(Default, Debug, gtk::CompositeTemplate)]
#[template(resource = "/org/gnome/Tour/ui/paginator.ui")] #[template(resource = "/ru/ximperlinux/Welcome/ui/paginator.ui")]
pub struct PaginatorWidget { pub struct PaginatorWidget {
#[template_child] #[template_child]
pub(super) carousel: TemplateChild<adw::Carousel>, pub(super) carousel: TemplateChild<adw::Carousel>,
......
...@@ -9,7 +9,7 @@ mod imp { ...@@ -9,7 +9,7 @@ mod imp {
use crate::{config, widgets::ImagePageWidget}; use crate::{config, widgets::ImagePageWidget};
#[derive(Debug, Default, gtk::CompositeTemplate)] #[derive(Debug, Default, gtk::CompositeTemplate)]
#[template(resource = "/org/gnome/Tour/ui/window.ui")] #[template(resource = "/ru/ximperlinux/Welcome/ui/window.ui")]
pub struct Window { pub struct Window {
#[template_child] #[template_child]
pub(super) paginator: TemplateChild<PaginatorWidget>, pub(super) paginator: TemplateChild<PaginatorWidget>,
...@@ -25,9 +25,9 @@ mod imp { ...@@ -25,9 +25,9 @@ mod imp {
fn class_init(klass: &mut Self::Class) { fn class_init(klass: &mut Self::Class) {
klass.bind_template(); klass.bind_template();
// Start Tour // Start
klass.install_action("win.start-tour", None, |win, _, _| win.start_tour()); klass.install_action("win.start-tour", None, |win, _, _| win.start_tour());
// Skip Tour // Skip
klass.install_action("win.skip-tour", None, |win, _, _| { klass.install_action("win.skip-tour", None, |win, _, _| {
win.application().unwrap().quit(); win.application().unwrap().quit();
}); });
...@@ -60,7 +60,7 @@ mod imp { ...@@ -60,7 +60,7 @@ mod imp {
if config::PROFILE == "Devel" { if config::PROFILE == "Devel" {
widget.add_css_class("devel"); widget.add_css_class("devel");
} }
let name = glib::os_info("NAME").unwrap_or_else(|| "GNOME".into()); let name = glib::os_info("NAME").unwrap_or_else(|| "Ximper".into());
let version = glib::os_info("VERSION").unwrap_or_else(|| "".into()); let version = glib::os_info("VERSION").unwrap_or_else(|| "".into());
let body = i18n_f( let body = i18n_f(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment