Jordan Petridis
2eb58eae00
Headerbar: Remove refresh button.
2017-12-17 13:57:08 +02:00
Jordan Petridis
35009e2574
Added an auto-updater that runs each hour.
2017-12-17 13:44:00 +02:00
Jordan Petridis
75fe0f8ff5
Use Default trait for creating Widget's that don't need arguments.
2017-12-17 13:08:51 +02:00
Jordan Petridis
4b0a6ea0f7
Add Show title in the Headerbar when switching to ShowWidget.
2017-12-15 13:45:08 +02:00
Jordan Petridis
9d07ba24b8
HeaderBar Refactor.
...
Removed the Headerbar stack.
Removed the ShowTitle.
Fixed StackSwitcher centering.
Set the Headerbar button valignment to center instead of fill.
2017-12-14 14:27:51 +02:00
Jordan Petridis
d74aa9c625
Wire Headerbar back button and change initialiazation order.
2017-12-13 16:36:40 +02:00
Jordan Petridis
0bb0035f3c
Rework of the Headerbar.
...
Added a stack to switch between a normal and a BackButton view.
Also added a centered stack switcher and removed the Home button.
Backbutton is not wired yet.
2017-12-13 13:53:15 +02:00
Jordan Petridis
01310ee7fa
Working non-state machine stack implementation.
...
Removed the stack state-machines. It was confusing trying to both
implement statemachines and re-design the stack architecture at the same time.
2017-12-12 16:01:19 +02:00
Jordan Petridis
211b36dfa3
Fix showmachine updating.
2017-12-11 16:14:43 +02:00
Jordan Petridis
ddb195db3c
Wired up refresh button.
2017-12-11 13:51:16 +02:00
Jordan Petridis
2461dca94d
Remove home button.
2017-12-10 19:15:32 +02:00
Jordan Petridis
e127941d8a
Initial stackswitcher addition into the headerbar.
2017-12-10 09:53:05 +02:00
Jordan Petridis
8bd48a09a6
Groupd stack manipulation functions into content module.
2017-12-02 08:58:28 +02:00
Jordan Petridis
3fca086d14
Renamed stack children.
2017-12-01 05:32:47 +02:00
Jordan Petridis
326ee75cd8
Remove old implementation.
2017-12-01 02:57:55 +02:00
Jordan Petridis
5414dbdb37
Wire and use the new Header struct instead.
2017-12-01 01:20:49 +02:00
Jordan Petridis
b32e35c574
Rename podcasts_view module.
2017-11-30 21:10:05 +02:00
Jordan Petridis
1fbcfa47ac
Refactor Headerbar into a Wrapped struct type.
2017-11-30 21:02:26 +02:00
Jordan Petridis
9bc6df2cba
Made Disel NewModels private.
2017-11-22 05:50:25 +02:00
Jordan Petridis
7be0b5bbf8
Added a url cleanr. Closes #4 .
2017-11-20 22:06:29 +02:00
Jordan Petridis
5ad52fa4b2
Refactored to remove from Database refferences.
2017-11-19 23:32:37 +02:00
Jordan Petridis
1ec4370c7b
Moved Database type-alias into hammond-data/src/lib.rs.
2017-11-17 21:37:55 +02:00
Jordan Petridis
8eca46871d
Moved insert_return functions into methods of insertable models.
2017-11-17 18:10:29 +02:00
Jordan Petridis
8b4701f1a1
Renamed Gresource path in order to be less confusing.
2017-11-15 14:55:26 +02:00
Jordan Petridis
b82e4c8932
Home button tweak.
2017-11-10 16:25:40 +02:00
Jordan Petridis
f2476cde65
Refactored empty view logic.
2017-11-10 16:15:53 +02:00
Jordan Petridis
8d17d30c82
Completed #6 , switch to gresource instead of include_str! macro.
2017-11-06 17:17:55 +02:00
Jordan Petridis
0e2d8ffd37
Removed the grid from the podcasts_view.
2017-11-05 10:59:56 +02:00
Jordan Petridis
ab5802cca7
Implemented updater_on_startup and refresh_feed sleep.
2017-11-04 14:40:36 +02:00
Jordan Petridis
a9dec8dbe8
Refactored refresh_feed.
2017-11-04 13:56:23 +02:00
Jordan Petridis
7a1b272d9e
Removed code duplication and combined refresh_feed and refresh_db.
2017-11-04 13:36:25 +02:00
Jordan Petridis
7e8f39119d
Moved banner.png from assets into hammond-gtk/gtk
2017-11-04 11:28:10 +02:00
Jordan Petridis
72ac709cda
Removed the multiple declarations of the clone macro.
2017-11-03 17:42:48 +02:00
Jordan Petridis
79fb8c2290
Minor home button change.
2017-11-02 17:29:53 +02:00
Jordan Petridis
9655ad6084
Removed Searchbutton from the Headerbar.
...
Removed until there is a working search implementation,
I am not intrested in working on one yet.
2017-10-24 00:45:15 +03:00
Jordan Petridis
8a313c145b
Made a type allias for Arc<Mutex<SqliteConnection>.
2017-10-23 12:29:04 +03:00
Jordan Petridis
9beea21a4f
Code cleanup.
...
Converted rest of .clone() s on ref pointer to use the macro instead.
Stopped ignoring clippy clone_on_ref_pointer warnings since there shouldn't
be any, anymore.
2017-10-23 07:37:07 +03:00
Jordan Petridis
539a5eae2f
Implemented the recommended clone macro from gtk-rs docs.
2017-10-23 07:09:23 +03:00
Jordan Petridis
14484f6128
Removed hammond-cli crate, as it not longer needed.
2017-10-22 09:12:12 +03:00
Jordan Petridis
6ffacaa6d8
Final2, I swear, when dealing with Arc/rc always use references.
2017-10-22 04:51:34 +03:00
Jordan Petridis
cbe50c9163
OK OK, neat trick, clone on &A/RC<T> gives back A/RC<T>.
2017-10-22 04:32:03 +03:00
Jordan Petridis
41a836dd7b
Factor out add_button method of headerbar.
2017-10-22 04:25:07 +03:00
Jordan Petridis
28a10ac462
Async update refinements, Stack transition refinements.
2017-10-21 23:27:53 +03:00
Jordan Petridis
2077215491
Changed arguments Arc<T> to bepassed by value, clone on arc just copies the refference anyway.
2017-10-21 22:53:04 +03:00
Jordan Petridis
7b0a8f0e25
Added a probably terrible way to update podcast_view async.
2017-10-21 22:34:20 +03:00
Jordan Petridis
24d088ffc3
Minor readability imprvments.
2017-10-21 18:56:18 +03:00
Jordan Petridis
90c637ed53
Cleaned up unnecessary clone() calls.
2017-10-21 09:08:03 +03:00
Jordan Petridis
5fb783c0c0
Favor explicit refference cloning, as suggested by clippy.
2017-10-21 05:35:54 +03:00
Jordan Petridis
486e0ff5e4
Now Upon feed addition only that feed is indexed/updated.
2017-10-21 00:12:24 +03:00
Jordan Petridis
63af61d9f6
Update podcast view after db refresh.
2017-10-20 20:09:36 +03:00