Commit Graph

1304 Commits

Author SHA1 Message Date
Jordan Petridis
e1aba32b9a
HomeView: make base view field publick
There is no point to re-export BaseView's methods.
2018-08-09 09:47:54 +03:00
Jordan Petridis
17d36370b7
ShowsView: handle vadjustment with BaseView
Instead of using lazy_static to save the adjustment,
pass it to the widget upon creation. If its the first instance
created, pass None instead.
2018-08-09 09:38:32 +03:00
Jordan Petridis
bc21f83f03
ShowsView: make base view field publick
There is no point to re-export BaseView's methods.
2018-08-09 09:12:50 +03:00
Jordan Petridis
8b9f626e73
ShowWidget: make base view field publick
There is no point to re-export BaseView's methods.
2018-08-09 08:40:42 +03:00
Jordan Petridis
94dc12cede
ShowWidget: handle vadjustment with BaseView
Instead of using lazy_static to save the adjustment,
pass it to the widget upon creation. If previous it doesn't
exists pass None instead.
2018-08-09 08:35:51 +03:00
Jordan Petridis
2dc7559b92
BaseView: implement a set_adjustments method
Ment to replace the individual set_vadjustment of widgets.
Also remove unused method from ShowWiget.
2018-08-09 07:20:22 +03:00
Jordan Petridis
198c0cc374
ShowsChild: Remove the need for a .ui file
Its a simple enough widget that can be written by hand
and does not need a .ui builder file.
2018-08-09 06:05:05 +03:00
Jordan Petridis
d59e9bfda1
BaseView: Set scroll policy 2018-08-09 05:44:04 +03:00
Jordan Petridis
4e1a55b497
ShowsView: Use BaseView abstraction 2018-08-09 05:35:51 +03:00
Jordan Petridis
ed62f59134
HomeView: Use libhandy::Column for the main widget 2018-08-09 04:54:06 +03:00
Jordan Petridis
4e3c3ee02f
HomeView: Use the new BaseView abstraction 2018-08-09 04:46:59 +03:00
Jordan Petridis
8fb84d9484
Gtk: Abstract a BaseView Widget
Currently it just re-exports its children with getters,
but the idea is that it will also be able to handle
the saving the state of its height adjustment later.
2018-08-09 04:21:12 +03:00
Jordan Petridis
5d8b2ec15c
ShowWidget: Put the whole thing inside HdyColumn 2018-08-09 02:34:45 +03:00
Jordan Petridis
856af29a76
ShowWidget: Initial prototype w/ libhandy::Column 2018-08-09 02:16:38 +03:00
Jordan Petridis
e1ea1a787f
ShowWidget: Remove unsused menu from the glade file 2018-08-08 23:28:42 +03:00
Jordan Petridis
1ef622acb2
ShowWidget: Do not hardcode the episode listbox in the glade file 2018-08-08 22:38:36 +03:00
Jordan Petridis
4fa973007d
App: Make sure to quit on delete event.
Since 9a76c6428a I've noticed
the applciation does not quit properly, and then it's unable
to be launched again till it's killed manually.

This patch is an attept to correct/workaroud that by calling
explcitly gio::ApplicationExt::quit().
2018-08-06 01:01:21 +03:00
Jordan Petridis
c27f5ec02e Merge branch 'readme_improvements' into 'master'
Fix some typos in README.md

See merge request World/podcasts!47
2018-08-05 08:57:26 +00:00
Matthew
5d6cf3d17d
Fix some typos in README.md 2018-08-05 11:32:42 +03:00
Jordan Petridis
f6c7731377
Fix Rust 2018 edition warnings 2018-08-05 11:24:20 +03:00
Jordan Petridis
bcd739da76 Merge branch 'i18n' into 'master'
Translation support and initial spanish translation

See merge request World/podcasts!46
2018-08-02 14:54:41 +00:00
Daniel García Moreno
bea4915317 Translation support and initial spanish translation
Added translation support based on the Fractal i18n. To do this I've
added the gettext-rs crate dep. I'm using my own fork because the
official gettext-rs release includes the gettext source files and that
increase the distribution package a lot and for distribution with
flatkap we don't need to build gettext, the lib is in the gnome sdk. So
this gettext-rs fork is the same, but removing the not needed gettext
source files.

The i18n.rs file adds some useful functions to translate strings. These
functions wraps the original gettext and adds more functionality, to be
able to translate compound strings, something that's not supported by
the gettext function.

The 'i18n' function works like the gettext, receives a plain string
without params.

The 'i18n_f' function receives a string with "{}" and a ref to an array
of &str with substitutions for the "{}" in the original string. The
substitution is done by order.

The 'i18n_k' function receives a string with "{named}" and a ref to an
array of (&str, &str) with substitutions for the "{named}" in the
original string. The substitution is done by name, where the first &str
in the tuple is the name and the second the string to use for the
replace.

This mod also include ni18n variants of the three functions for plural
and singular translations.

I've also created the spanish translation.

See #61

https://gitlab.gnome.org/World/podcasts/issues/61
2018-08-02 15:24:19 +02:00
Jordan Petridis
f695ba4605
cargo fmt 2018-08-02 07:10:22 +03:00
Jordan Petridis
24983ba3af Readme.md: Improve wording and formatting 2018-08-02 02:44:29 +00:00
Jordan Petridis
0a2a3b3377
Remove unused permission. 2018-08-01 02:14:27 +03:00
Jordan Petridis
d8d7193cbc
README: Add flahub instructions. 2018-07-31 11:40:05 +03:00
Jordan Petridis
042c9eed9c
Appdata: Remove 'lang=' metadata tag from the description.
This seems to confuse the flathub store website.
2018-07-31 11:22:15 +03:00
Jordan Petridis
b0c94dd998
Appdata: Add OARS Rating
This help with content age rating. Usefull for store
clients like gnome-software.

https://hughsie.github.io/oars/
2018-07-31 10:58:04 +03:00
Jordan Petridis
4c8cc9e823
Version bump. 2018-07-31 00:31:44 +03:00
Jordan Petridis
132c9bbdff
ShowModel: Remove dead unused methods. 2018-07-30 23:23:58 +03:00
Jordan Petridis
cc0caff8d0
EpisodeModels: Remove unused methods. 2018-07-30 23:20:10 +03:00
Jordan Petridis
3496df24f8
App: Fix refference cycles in actions. 2018-07-28 19:52:37 +03:00
Jordan Petridis
e4e35e4c57
App: Replace action macro with a generic fuction. 2018-07-28 19:52:27 +03:00
Jordan Petridis
838320785e
Replace SendCell with fragile.
SendCell is depricated now and its advised to use the Fragile
crate instead.

https://github.com/sdroege/send-cell/issues/5
2018-07-28 19:46:01 +03:00
Jordan Petridis
91bea85519
Update dependancies. 2018-07-28 19:15:26 +03:00
Jordan Petridis
88ea081661
Version bump. 2018-07-28 00:12:08 +03:00
Jordan Petridis
39c0a0dba5
Fix cargo vendor config. 2018-07-28 00:08:48 +03:00
Jordan Petridis
9d64d3e30d
AppStream: captions were too short. 2018-07-27 21:45:33 +03:00
Jordan Petridis
39ff238716
Version bump. 2018-07-27 20:21:28 +03:00
Jordan Petridis
7c96152f3f
Gtk: Change the minimum requests of the views. 2018-07-27 19:46:18 +03:00
Jordan Petridis
a2440c19e1
Appdata: Fix screenshots metadata. 2018-07-27 00:42:54 +03:00
Jordan Petridis
24dff5ce85
Update the release script. 2018-07-27 00:27:42 +03:00
Tobias Bernard
1ca8e15d19 Update org.gnome.Podcasts.appdata.xml 2018-07-26 21:15:10 +00:00
Tobias Bernard
f77a8f09bb Update podcasts.doap 2018-07-26 21:13:04 +00:00
Jordan Petridis
48a7c8140f
Update screenshots. 2018-07-26 23:53:08 +03:00
Jordan Petridis
b03ff46767
Version bump. 2018-07-26 08:33:45 +03:00
Jordan Petridis
e66e6364c3 Update Changelog 2018-07-26 05:30:46 +00:00
Jordan Petridis
89ef7ac4f6
Rename the .doap file. 2018-07-26 07:56:00 +03:00
Jordan Petridis
27e74ee064
Update the appdata summary. 2018-07-26 07:53:29 +03:00
Jordan Petridis
83c44aa12c
Replace links again 2018-07-26 07:41:43 +03:00