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
0c7cab24
Commit
0c7cab24
authored
Dec 31, 2021
by
Bilal Elmoussaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make clippy happy
parent
59d6e0f0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
9 deletions
+8
-9
application.rs
src/application.rs
+2
-1
main.rs
src/main.rs
+4
-8
welcome.rs
src/widgets/pages/welcome.rs
+2
-0
No files found.
src/application.rs
View file @
0c7cab24
...
...
@@ -29,7 +29,7 @@ mod imp {
impl
ObjectImpl
for
Application
{}
impl
ApplicationImpl
for
Application
{
fn
activate
(
&
self
,
application
:
&
Self
::
Type
)
{
let
window
=
Window
::
new
(
&
application
);
let
window
=
Window
::
new
(
application
);
application
.add_window
(
&
window
);
window
.present
();
self
.window
.set
(
window
.downgrade
())
.unwrap
();
...
...
@@ -100,6 +100,7 @@ glib::wrapper! {
}
impl
Application
{
#[allow(clippy
::
new_without_default)]
pub
fn
new
()
->
Self
{
glib
::
Object
::
new
(
&
[
(
"application-id"
,
&
config
::
APP_ID
),
...
...
src/main.rs
View file @
0c7cab24
...
...
@@ -14,14 +14,10 @@ fn main() {
pretty_env_logger
::
init
();
// Prepare i18n
setlocale
(
LocaleCategory
::
LcAll
,
""
);
bindtextdomain
(
GETTEXT_PACKAGE
,
LOCALEDIR
)
.expect
(
&
format!
(
"Unable to bind text domain for {}"
,
GETTEXT_PACKAGE
));
textdomain
(
GETTEXT_PACKAGE
)
.expect
(
&
format!
(
"Unable to switch to text domain {}"
,
GETTEXT_PACKAGE
));
bindtextdomain
(
GETTEXT_PACKAGE
,
LOCALEDIR
)
.unwrap_or_else
(|
_
|
panic!
(
"Unable to bind text domain for {}"
,
GETTEXT_PACKAGE
));
textdomain
(
GETTEXT_PACKAGE
)
.unwrap_or_else
(|
_
|
panic!
(
"Unable to switch to text domain {}"
,
GETTEXT_PACKAGE
));
glib
::
set_application_name
(
&
gettext
(
"Tour"
));
glib
::
set_prgname
(
Some
(
"Tour"
));
...
...
src/widgets/pages/welcome.rs
View file @
0c7cab24
...
...
@@ -34,6 +34,7 @@ mod imp {
sender
:
Sender
<
Action
>
,
}
#[allow(clippy
::
derivable_impls)]
impl
Default
for
WelcomePageWidget
{
fn
default
()
->
Self
{
#[cfg(feature
=
"video"
)]
...
...
@@ -191,6 +192,7 @@ glib::wrapper! {
}
impl
WelcomePageWidget
{
#[allow(clippy
::
new_without_default)]
pub
fn
new
()
->
Self
{
glib
::
Object
::
new
(
&
[])
.unwrap
()
}
...
...
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