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
17c3b811
Commit
17c3b811
authored
Jul 12, 2020
by
Bilal Elmoussaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
carousel: display one page at a time
parent
a92c89a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
image.rs
src/widgets/pages/image.rs
+1
-0
welcome.rs
src/widgets/pages/welcome.rs
+6
-3
No files found.
src/widgets/pages/image.rs
View file @
17c3b811
...
...
@@ -44,6 +44,7 @@ impl ImagePageWidget {
}
fn
init
(
&
self
)
{
self
.widget
.set_property_expand
(
true
);
self
.widget
.set_halign
(
gtk
::
Align
::
Fill
);
self
.widget
.set_valign
(
gtk
::
Align
::
Fill
);
...
...
src/widgets/pages/welcome.rs
View file @
17c3b811
...
...
@@ -4,13 +4,14 @@ use libhandy::prelude::HeaderBarExt;
pub
struct
WelcomePageWidget
{
pub
widget
:
gtk
::
Box
,
handle
:
libhandy
::
WindowHandle
,
}
impl
WelcomePageWidget
{
pub
fn
new
()
->
Self
{
let
widget
=
gtk
::
Box
::
new
(
gtk
::
Orientation
::
Vertical
,
0
);
let
welcome_page
=
Self
{
widget
};
let
handle
=
libhandy
::
WindowHandle
::
new
();
let
welcome_page
=
Self
{
widget
,
handle
};
welcome_page
.init
();
welcome_page
...
...
@@ -71,7 +72,9 @@ impl WelcomePageWidget {
headerbar
.set_show_close_button
(
true
);
headerbar
.set_title
(
Some
(
&
gettext
(
"Welcome Tour"
)));
self
.widget
.add
(
&
headerbar
);
self
.handle
.add
(
&
headerbar
);
self
.widget
.add
(
&
self
.handle
);
self
.widget
.add
(
&
container
);
}
}
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