Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
xfce4-screensaver
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Apps
xfce4-screensaver
Commits
d93797e0
Commit
d93797e0
authored
4 years ago
by
Sean Davis
Browse files
Options
Downloads
Patches
Plain Diff
Use Libxfce4util namespace and typelib
parent
9f4377cf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!9
Use GIRepository of libxfce4util and xfconf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/xfce4-screensaver-configure
+7
-7
7 additions, 7 deletions
src/xfce4-screensaver-configure
with
7 additions
and
7 deletions
src/xfce4-screensaver-configure
+
7
−
7
View file @
d93797e0
...
...
@@ -34,9 +34,9 @@ gi.require_version('GLib', '2.0')
gi
.
require_version
(
'
GObject
'
,
'
2.0
'
)
gi
.
require_version
(
'
Gdk
'
,
'
3.0
'
)
gi
.
require_version
(
'
Gtk
'
,
'
3.0
'
)
gi
.
require_version
(
'
l
ibxfce4util
'
,
'
1.0
'
)
gi
.
require_version
(
'
L
ibxfce4util
'
,
'
1.0
'
)
gi
.
require_version
(
'
Xfconf
'
,
'
0
'
)
from
gi.repository
import
GLib
,
GObject
,
Gdk
,
Gtk
,
l
ibxfce4util
,
Xfconf
from
gi.repository
import
GLib
,
GObject
,
Gdk
,
Gtk
,
L
ibxfce4util
,
Xfconf
warnings
.
filterwarnings
(
"
ignore
"
)
...
...
@@ -166,7 +166,7 @@ class DesktopScreensaverSettings(ScreensaverSettings):
if
not
os
.
path
.
exists
(
filename
):
return
False
l
ibxfce4util
.
textdomain
(
'
xfce4-screensaver
'
,
L
ibxfce4util
.
textdomain
(
'
xfce4-screensaver
'
,
os
.
path
.
join
(
sys
.
prefix
,
'
/share/locale
'
),
'
UTF-8
'
)
...
...
@@ -238,7 +238,7 @@ class XmlScreensaverSettings(ScreensaverSettings):
if
not
os
.
path
.
exists
(
filename
):
return
False
l
ibxfce4util
.
textdomain
(
'
xscreensaver
'
,
L
ibxfce4util
.
textdomain
(
'
xscreensaver
'
,
os
.
path
.
join
(
sys
.
prefix
,
'
/share/locale
'
),
'
UTF-8
'
)
...
...
@@ -374,7 +374,7 @@ class ConfigurationWindow(Gtk.Window):
def
__init__
(
self
,
parsed
):
Gtk
.
Window
.
__init__
(
self
,
title
=
parsed
[
"
label
"
])
l
ibxfce4util
.
textdomain
(
'
xfce4-screensaver
'
,
L
ibxfce4util
.
textdomain
(
'
xfce4-screensaver
'
,
os
.
path
.
join
(
sys
.
prefix
,
'
/share/locale
'
),
'
UTF-8
'
)
...
...
@@ -750,7 +750,7 @@ def configure(parsed):
def
show_fatal
(
primary
,
secondary
):
l
ibxfce4util
.
textdomain
(
'
xfce4-screensaver
'
,
L
ibxfce4util
.
textdomain
(
'
xfce4-screensaver
'
,
os
.
path
.
join
(
sys
.
prefix
,
'
/share/locale
'
),
'
UTF-8
'
)
...
...
@@ -771,7 +771,7 @@ def show_fatal(primary, secondary):
if
__name__
==
"
__main__
"
:
l
ibxfce4util
.
textdomain
(
'
xfce4-screensaver
'
,
L
ibxfce4util
.
textdomain
(
'
xfce4-screensaver
'
,
os
.
path
.
join
(
sys
.
prefix
,
'
/share/locale
'
),
'
UTF-8
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment