Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm-play-gui
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
Roman Alifanov
eepm-play-gui
Commits
9d857475
Unverified
Commit
9d857475
authored
Oct 08, 2024
by
Vladimir Vaskov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move ui to data
parent
0beb02ee
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
15 additions
and
24 deletions
+15
-24
eepm-play-gui.gresource.xml
data/eepm-play-gui.gresource.xml
+3
-3
meson.build
data/meson.build
+7
-0
style.css
data/style.css
+0
-0
help-overlay.ui
data/ui/help-overlay.ui
+0
-0
logdialog.cmb
data/ui/logdialog.cmb
+0
-0
logdialog.ui
data/ui/logdialog.ui
+0
-0
window.cmb
data/ui/window.cmb
+0
-0
window.ui
data/ui/window.ui
+0
-0
meson.build
meson.build
+3
-1
main.py
src/main.py
+0
-5
meson.build
src/meson.build
+0
-13
window.py
src/window.py
+2
-2
No files found.
src
/eepm-play-gui.gresource.xml
→
data
/eepm-play-gui.gresource.xml
View file @
9d857475
...
...
@@ -2,8 +2,8 @@
<gresources>
<gresource
prefix=
"/ru/eepm/PlayGUI"
>
<file>
style.css
</file>
<file
preprocess=
"xml-stripblanks"
>
window.ui
</file>
<file
preprocess=
"xml-stripblanks"
>
logdialog.ui
</file>
<file
preprocess=
"xml-stripblanks"
>
gtk
/help-overlay.ui
</file>
<file
preprocess=
"xml-stripblanks"
>
ui/
window.ui
</file>
<file
preprocess=
"xml-stripblanks"
>
ui/
logdialog.ui
</file>
<file
alias=
"gtk/help-overlay.ui"
preprocess=
"xml-stripblanks"
>
ui
/help-overlay.ui
</file>
</gresource>
</gresources>
data/meson.build
View file @
9d857475
...
...
@@ -12,6 +12,13 @@ if desktop_utils.found()
test('Validate desktop file', desktop_utils, args: [desktop_file])
endif
gnome.compile_resources('eepm-play-gui',
'eepm-play-gui.gresource.xml',
gresource_bundle: true,
install: true,
install_dir: pkgdatadir,
)
appstream_file = i18n.merge_file(
input: 'ru.eepm.PlayGUI.metainfo.xml.in',
output: 'ru.eepm.PlayGUI.metainfo.xml',
...
...
src
/style.css
→
data
/style.css
View file @
9d857475
File moved
src/gtk
/help-overlay.ui
→
data/ui
/help-overlay.ui
View file @
9d857475
File moved
src
/logdialog.cmb
→
data/ui
/logdialog.cmb
View file @
9d857475
File moved
src
/logdialog.ui
→
data/ui
/logdialog.ui
View file @
9d857475
File moved
src
/window.cmb
→
data/ui
/window.cmb
View file @
9d857475
File moved
src
/window.ui
→
data/ui
/window.ui
View file @
9d857475
File moved
meson.build
View file @
9d857475
...
...
@@ -6,8 +6,10 @@ project('eepm-play-gui',
i18n = import('i18n')
gnome = import('gnome')
python = import('python')
pkgdatadir = get_option('prefix') / get_option('datadir') / meson.project_name()
moduledir = pkgdatadir / 'eepm_play_gui'
subdir('data')
subdir('src')
...
...
src/main.py
View file @
9d857475
...
...
@@ -36,11 +36,6 @@ class EepmPlayGuiApplication(Adw.Application):
self
.
create_action
(
'quit'
,
lambda
*
_
:
self
.
quit
(),
[
'<primary>q'
])
self
.
create_action
(
'about'
,
self
.
on_about_action
)
provider
=
Gtk
.
CssProvider
()
provider
.
load_from_resource
(
"/ru/eepm/PlayGUI/style.css"
)
display
=
Gdk
.
Display
.
get_default
()
Gtk
.
StyleContext
.
add_provider_for_display
(
display
,
provider
,
Gtk
.
STYLE_PROVIDER_PRIORITY_APPLICATION
)
def
do_activate
(
self
):
"""Called when the application is activated.
...
...
src/meson.build
View file @
9d857475
pkgdatadir = get_option('prefix') / get_option('datadir') / meson.project_name()
moduledir = pkgdatadir / 'eepm_play_gui'
gnome = import('gnome')
gnome.compile_resources('eepm-play-gui',
'eepm-play-gui.gresource.xml',
gresource_bundle: true,
install: true,
install_dir: pkgdatadir,
)
python = import('python')
conf = configuration_data()
conf.set('PYTHON', python.find_installation('python3').full_path())
conf.set('VERSION', meson.project_version())
...
...
src/window.py
View file @
9d857475
...
...
@@ -65,7 +65,7 @@ class ApplicationRow(Adw.ActionRow):
print
(
"marked-unchanged"
)
@Gtk.Template
(
resource_path
=
'/ru/eepm/PlayGUI/logdialog.ui'
)
@Gtk.Template
(
resource_path
=
'/ru/eepm/PlayGUI/
ui/
logdialog.ui'
)
class
LogDialog
(
Adw
.
Dialog
):
__gtype_name__
=
'LogDialog'
logdialog_textview
=
Gtk
.
Template
.
Child
()
...
...
@@ -81,7 +81,7 @@ class LogDialog(Adw.Dialog):
runner
.
run_command
(
command
,
self
)
@Gtk.Template
(
resource_path
=
'/ru/eepm/PlayGUI/window.ui'
)
@Gtk.Template
(
resource_path
=
'/ru/eepm/PlayGUI/
ui/
window.ui'
)
class
EepmPlayGuiWindow
(
Adw
.
ApplicationWindow
):
__gtype_name__
=
'EepmPlayGuiWindow'
search_entry
=
Gtk
.
Template
.
Child
()
...
...
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