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
90c80896
Commit
90c80896
authored
Feb 11, 2023
by
Bilal Elmoussaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return glib::ExitCode
parent
4010c866
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
application.rs
src/application.rs
+2
-2
main.rs
src/main.rs
+1
-1
No files found.
src/application.rs
View file @
90c80896
...
@@ -94,11 +94,11 @@ impl Application {
...
@@ -94,11 +94,11 @@ impl Application {
self
.imp
()
.window
.get
()
.and_then
(|
w
|
w
.upgrade
())
.unwrap
()
self
.imp
()
.window
.get
()
.and_then
(|
w
|
w
.upgrade
())
.unwrap
()
}
}
pub
fn
run
()
{
pub
fn
run
()
->
glib
::
ExitCode
{
log
::
info!
(
"GNOME Tour ({})"
,
config
::
APP_ID
);
log
::
info!
(
"GNOME Tour ({})"
,
config
::
APP_ID
);
log
::
info!
(
"Version: {} ({})"
,
config
::
VERSION
,
config
::
PROFILE
);
log
::
info!
(
"Version: {} ({})"
,
config
::
VERSION
,
config
::
PROFILE
);
log
::
info!
(
"Datadir: {}"
,
config
::
PKGDATADIR
);
log
::
info!
(
"Datadir: {}"
,
config
::
PKGDATADIR
);
let
app
=
Self
::
new
();
let
app
=
Self
::
new
();
gtk
::
prelude
::
ApplicationExtManual
::
run
(
&
app
);
app
.run
()
}
}
}
}
src/main.rs
View file @
90c80896
...
@@ -9,7 +9,7 @@ mod widgets;
...
@@ -9,7 +9,7 @@ mod widgets;
use
application
::
Application
;
use
application
::
Application
;
use
config
::{
GETTEXT_PACKAGE
,
LOCALEDIR
};
use
config
::{
GETTEXT_PACKAGE
,
LOCALEDIR
};
fn
main
()
{
fn
main
()
->
glib
::
ExitCode
{
pretty_env_logger
::
init
();
pretty_env_logger
::
init
();
// Prepare i18n
// Prepare i18n
setlocale
(
LocaleCategory
::
LcAll
,
""
);
setlocale
(
LocaleCategory
::
LcAll
,
""
);
...
...
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