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
ce7b9a4e
Commit
ce7b9a4e
authored
Jul 11, 2020
by
Bilal Elmoussaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bump gtk-rs
this also glib::get_os_info which requires glib >2.64 closes #10
parent
7ee28771
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
15 additions
and
50 deletions
+15
-50
Cargo.lock
Cargo.lock
+0
-0
Cargo.toml
Cargo.toml
+4
-5
README.md
README.md
+0
-9
org.gnome.TourDevel.json
build-aux/org.gnome.TourDevel.json
+1
-3
meson.build
meson.build
+1
-1
meson_options.txt
meson_options.txt
+0
-20
config.rs.in
src/config.rs.in
+0
-3
meson.build
src/meson.build
+0
-3
static_resources.rs.in
src/static_resources.rs.in
+1
-1
image.rs
src/widgets/pages/image.rs
+1
-1
welcome.rs
src/widgets/pages/welcome.rs
+6
-3
window.rs
src/widgets/window.rs
+1
-1
No files found.
Cargo.lock
View file @
ce7b9a4e
This diff is collapsed.
Click to expand it.
Cargo.toml
View file @
ce7b9a4e
...
@@ -5,10 +5,9 @@ authors = ["Bilal Elmoussaoui <bil.elmoussaoui@gmail.com>"]
...
@@ -5,10 +5,9 @@ authors = ["Bilal Elmoussaoui <bil.elmoussaoui@gmail.com>"]
edition
=
"2018"
edition
=
"2018"
[dependencies]
[dependencies]
glib
=
"0.9"
glib
=
{
version
=
"0.10"
,
features
=
["v2_64"]
}
gdk
=
"0.1
2
"
gdk
=
"0.1
3
"
gtk
=
{
version
=
"0.
8
"
,
features=
["v3_16"]
}
gtk
=
{
version
=
"0.
9
"
,
features=
["v3_16"]
}
gio
=
"0.
8
"
gio
=
"0.
9
"
log
=
"0.4"
log
=
"0.4"
gettext-rs
=
{
version
=
"0.4"
,
features
=
["gettext-system"]
}
gettext-rs
=
{
version
=
"0.4"
,
features
=
["gettext-system"]
}
README.md
View file @
ce7b9a4e
...
@@ -4,12 +4,3 @@
...
@@ -4,12 +4,3 @@
#### 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
```
build-aux/org.gnome.TourDevel.json
View file @
ce7b9a4e
...
@@ -10,7 +10,6 @@
...
@@ -10,7 +10,6 @@
"tags"
:
[
"tags"
:
[
"nightly"
"nightly"
],
],
"desktop-file-name-suffix"
:
" (Devel)"
,
"finish-args"
:
[
"finish-args"
:
[
"--share=ipc"
,
"--share=ipc"
,
"--socket=fallback-x11"
,
"--socket=fallback-x11"
,
...
@@ -23,7 +22,6 @@
...
@@ -23,7 +22,6 @@
"--share=network"
"--share=network"
],
],
"env"
:
{
"env"
:
{
"RUSTFLAGS"
:
"--remap-path-prefix =../"
,
"CARGO_HOME"
:
"/run/build/gnome-tour/cargo"
,
"CARGO_HOME"
:
"/run/build/gnome-tour/cargo"
,
"RUST_BACKTRACE"
:
"1"
"RUST_BACKTRACE"
:
"1"
}
}
...
@@ -38,7 +36,7 @@
...
@@ -38,7 +36,7 @@
"sources"
:
[
"sources"
:
[
{
{
"type"
:
"git"
,
"type"
:
"git"
,
"url"
:
"https://gitlab.gnome.org/
bilelmoussaoui
/gnome-tour.git"
"url"
:
"https://gitlab.gnome.org/
GNOME
/gnome-tour.git"
}
}
]
]
}
}
...
...
meson.build
View file @
ce7b9a4e
...
@@ -8,7 +8,7 @@ gnome = import('gnome')
...
@@ -8,7 +8,7 @@ gnome = import('gnome')
base_id = 'org.gnome.Tour'
base_id = 'org.gnome.Tour'
dependency('glib-2.0', version: '>= 2.
56
')
dependency('glib-2.0', version: '>= 2.
64
')
dependency('gio-2.0', version: '>= 2.56')
dependency('gio-2.0', version: '>= 2.56')
dependency('gdk-pixbuf-2.0')
dependency('gdk-pixbuf-2.0')
dependency('gtk+-3.0', version: '>= 3.16')
dependency('gtk+-3.0', version: '>= 3.16')
...
...
meson_options.txt
View file @
ce7b9a4e
...
@@ -9,23 +9,3 @@ option (
...
@@ -9,23 +9,3 @@ option (
description: 'The build profile for GNOME Tour. One of "default" or "development".'
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 @
ce7b9a4e
...
@@ -5,6 +5,3 @@ pub static NAME_SUFFIX: &str = @NAME_SUFFIX@;
...
@@ -5,6 +5,3 @@ pub static NAME_SUFFIX: &str = @NAME_SUFFIX@;
pub static VERSION: &str = @VERSION@;
pub static VERSION: &str = @VERSION@;
pub static GETTEXT_PACKAGE: &str = @GETTEXT_PACKAGE@;
pub static GETTEXT_PACKAGE: &str = @GETTEXT_PACKAGE@;
pub static LOCALEDIR: &str = @LOCALEDIR@;
pub static LOCALEDIR: &str = @LOCALEDIR@;
pub static DISTRO_NAME: &str = @DISTRO_NAME@;
pub static DISTRO_VERSION: &str = @DISTRO_VERSION@;
pub static DISTRO_ICON_NAME: &str = @DISTRO_ICON_NAME@;
src/meson.build
View file @
ce7b9a4e
...
@@ -6,9 +6,6 @@ global_conf.set_quoted('NAME_SUFFIX', name_suffix)
...
@@ -6,9 +6,6 @@ global_conf.set_quoted('NAME_SUFFIX', name_suffix)
global_conf.set_quoted('VERSION', version + version_suffix)
global_conf.set_quoted('VERSION', version + version_suffix)
global_conf.set_quoted('GETTEXT_PACKAGE', gettext_package)
global_conf.set_quoted('GETTEXT_PACKAGE', gettext_package)
global_conf.set_quoted('LOCALEDIR', localedir)
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(
config = configure_file(
input: 'config.rs.in',
input: 'config.rs.in',
output: 'config.rs',
output: 'config.rs',
...
...
src/static_resources.rs.in
View file @
ce7b9a4e
...
@@ -10,7 +10,7 @@ pub(crate) fn init() -> Result<(), Error> {
...
@@ -10,7 +10,7 @@ pub(crate) fn init() -> Result<(), Error> {
// Create Resource it will live as long the value lives.
// Create Resource it will live as long the value lives.
let gbytes = Bytes::from_static(res_bytes.as_ref());
let gbytes = Bytes::from_static(res_bytes.as_ref());
let resource = Resource::
new_
from_data(&gbytes)?;
let resource = Resource::from_data(&gbytes)?;
// Register the resource so it won't be dropped and will continue to live in
// Register the resource so it won't be dropped and will continue to live in
// memory.
// memory.
...
...
src/widgets/pages/image.rs
View file @
ce7b9a4e
...
@@ -52,7 +52,7 @@ impl ImagePageWidget {
...
@@ -52,7 +52,7 @@ impl ImagePageWidget {
container
.set_valign
(
gtk
::
Align
::
Center
);
container
.set_valign
(
gtk
::
Align
::
Center
);
container
.set_property_margin
(
48
);
container
.set_property_margin
(
48
);
let
image
=
gtk
::
Image
::
new_
from_resource
(
&
self
.resource_uri
);
let
image
=
gtk
::
Image
::
from_resource
(
&
self
.resource_uri
);
image
.set_valign
(
gtk
::
Align
::
Start
);
image
.set_valign
(
gtk
::
Align
::
Start
);
container
.add
(
&
image
);
container
.add
(
&
image
);
...
...
src/widgets/pages/welcome.rs
View file @
ce7b9a4e
use
crate
::
config
;
use
gettextrs
::
gettext
;
use
gettextrs
::
gettext
;
use
gtk
::
prelude
::
*
;
use
gtk
::
prelude
::
*
;
...
@@ -22,11 +21,15 @@ impl WelcomePageWidget {
...
@@ -22,11 +21,15 @@ impl WelcomePageWidget {
self
.widget
.set_margin_top
(
24
);
self
.widget
.set_margin_top
(
24
);
self
.widget
.set_margin_bottom
(
24
);
self
.widget
.set_margin_bottom
(
24
);
let
logo
=
gtk
::
Image
::
new_from_icon_name
(
Some
(
config
::
DISTRO_ICON_NAME
),
gtk
::
IconSize
::
Dialog
);
let
name
=
glib
::
get_os_info
(
"NAME"
)
.unwrap_or
(
"GNOME"
.into
());
let
version
=
glib
::
get_os_info
(
"VERSION"
)
.unwrap_or
(
"3.36"
.into
());
let
icon
=
glib
::
get_os_info
(
"LOGO"
)
.unwrap_or
(
"start-here-symbolic"
.into
());
let
logo
=
gtk
::
Image
::
from_icon_name
(
Some
(
&
icon
),
gtk
::
IconSize
::
Dialog
);
logo
.set_pixel_size
(
196
);
logo
.set_pixel_size
(
196
);
self
.widget
.add
(
&
logo
);
self
.widget
.add
(
&
logo
);
let
title
=
gtk
::
Label
::
new
(
Some
(
&
gettext
(
format!
(
"Welcome to {} {}"
,
config
::
DISTRO_NAME
,
config
::
DISTRO_VERSION
))));
let
title
=
gtk
::
Label
::
new
(
Some
(
&
gettext
(
format!
(
"Welcome to {} {}"
,
name
,
version
))));
title
.set_margin_top
(
36
);
title
.set_margin_top
(
36
);
title
.get_style_context
()
.add_class
(
"large-title"
);
title
.get_style_context
()
.add_class
(
"large-title"
);
self
.widget
.add
(
&
title
);
self
.widget
.add
(
&
title
);
...
...
src/widgets/window.rs
View file @
ce7b9a4e
...
@@ -50,7 +50,7 @@ impl Window {
...
@@ -50,7 +50,7 @@ impl Window {
self
.headerbar
.set_page_nr
(
current_page
+
1
,
total_pages
);
self
.headerbar
.set_page_nr
(
current_page
+
1
,
total_pages
);
if
current_page
==
total_pages
{
if
current_page
==
total_pages
{
self
.widget
.
destroy
();
self
.widget
.
close
();
}
else
{
}
else
{
self
.paginator
.next
();
self
.paginator
.next
();
}
}
...
...
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