Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximper-welcome
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
ximper-welcome
Commits
d508815f
Commit
d508815f
authored
Jan 29, 2020
by
Bilal Elmoussaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow distro to rebrand the app
parent
ced7cc54
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
45 additions
and
3 deletions
+45
-3
README.md
README.md
+14
-0
org.gnome.Tour.metainfo.xml.in.in
data/org.gnome.Tour.metainfo.xml.in.in
+1
-1
meson_options.txt
meson_options.txt
+21
-0
config.rs.in
src/config.rs.in
+3
-0
meson.build
src/meson.build
+3
-0
welcome.rs
src/widgets/pages/welcome.rs
+3
-2
No files found.
README.md
View file @
d508815f
# GNOME Greeter & Tour
#### Note for distributions:
You can customize the distribution name, version and the displayed icon using the config options
```
-Ddistro_name=Fedora -Ddistro_version=3.32 -Ddistro_icon_name=fedora-logo
```
data/org.gnome.Tour.metainfo.xml.in.in
View file @
d508815f
...
...
@@ -7,7 +7,7 @@
<name>
GNOME Tour
</name>
<summary>
GNOME Tour and Greeter.
</summary>
<description>
<p>
A guided tour
&
greeter for GNOME.
</p>
<p>
A guided tour
and
greeter for GNOME.
</p>
</description>
<screenshots>
<screenshot
type=
"default"
>
...
...
meson_options.txt
View file @
d508815f
...
...
@@ -8,3 +8,24 @@ option (
value: 'default',
description: 'The build profile for GNOME Tour. One of "default" or "development".'
)
option (
'distro_name',
type: 'string',
value: 'GNOME',
description: 'Distro name, used for branding.'
)
option (
'distro_icon_name',
type: 'string',
value: 'start-here-symbolic',
description: 'Distro icon name, used for branding.'
)
option (
'distro_version',
type: 'string',
value: '3.36',
description: 'Distro version, used for branding.'
)
src/config.rs.in
View file @
d508815f
...
...
@@ -5,3 +5,6 @@ pub static NAME_SUFFIX: &'static str = @NAME_SUFFIX@;
pub static VERSION: &'static str = @VERSION@;
pub static GETTEXT_PACKAGE: &'static str = @GETTEXT_PACKAGE@;
pub static LOCALEDIR: &'static str = @LOCALEDIR@;
pub static DISTRO_NAME: &'static str = @DISTRO_NAME@;
pub static DISTRO_VERSION: &'static str = @DISTRO_VERSION@;
pub static DISTRO_ICON_NAME: &'static str = @DISTRO_ICON_NAME@;
src/meson.build
View file @
d508815f
...
...
@@ -6,6 +6,9 @@ global_conf.set_quoted('NAME_SUFFIX', name_suffix)
global_conf.set_quoted('VERSION', version + version_suffix)
global_conf.set_quoted('GETTEXT_PACKAGE', gettext_package)
global_conf.set_quoted('LOCALEDIR', localedir)
global_conf.set_quoted('DISTRO_NAME', get_option('distro_name'))
global_conf.set_quoted('DISTRO_VERSION', get_option('distro_version'))
global_conf.set_quoted('DISTRO_ICON_NAME', get_option('distro_icon_name'))
config = configure_file(
input: 'config.rs.in',
output: 'config.rs',
...
...
src/widgets/pages/welcome.rs
View file @
d508815f
use
crate
::
config
;
use
gettextrs
::
gettext
;
use
gtk
::
prelude
::
*
;
...
...
@@ -21,11 +22,11 @@ impl WelcomePageWidget {
self
.widget
.set_margin_top
(
24
);
self
.widget
.set_margin_bottom
(
24
);
let
logo
=
gtk
::
Image
::
new_from_icon_name
(
Some
(
"start-here-symbolic"
));
let
logo
=
gtk
::
Image
::
new_from_icon_name
(
Some
(
config
::
DISTRO_ICON_NAME
));
logo
.set_pixel_size
(
196
);
self
.widget
.add
(
&
logo
);
let
title
=
gtk
::
Label
::
new
(
Some
(
&
gettext
(
"Welcome to GNOME 3.34"
)));
let
title
=
gtk
::
Label
::
new
(
Some
(
&
gettext
(
format!
(
"Welcome to {} {}"
,
config
::
DISTRO_NAME
,
config
::
DISTRO_VERSION
)
)));
title
.set_margin_top
(
36
);
title
.get_style_context
()
.add_class
(
"large-title"
);
self
.widget
.add
(
&
title
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment