Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort Task Lists using calendar-order #192

Draft
wants to merge 20 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*~
build/*
.flatpak-builder/
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,33 @@

## Building and Installation

### Build with Flatpak

_Starting with elementary 6 Odin, Flatpak is the preferred build method._

You'll need to install the following dependencies:

```bash
flatpak --user install flathub \
org.gnome.Sdk//3.38 \
io.elementary.BaseApp//juno-20.08
```

Run `flatpak-builder` to build:

```bash
flatpak-builder --force-clean build io.elementary.tasks.yml
```

To install, use `flatpak-builder --install`, then execute with `flatpak run io.elementary.tasks`:

```bash
flatpak-builder --install --user --force-clean build io.elementary.tasks.yml
flatpak run io.elementary.tasks
```

### Build with Meson

You'll need the following dependencies:
* glib-2.0
* gobject-2.0
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ tasks_deps = [
dependency('libgdata')
]

if libecal_dep.version().version_compare('>=3.39.2')
if libecal_dep.version().version_compare('>=3.40.0')
add_project_arguments('--define=HAS_EDS_3_40', language: 'vala')
else
tasks_deps += meson.get_compiler('vala').find_library('libecal-2.0-fixes', dirs: meson.current_source_dir() / 'vapi')
Expand Down
4 changes: 4 additions & 0 deletions src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,11 @@ public class Tasks.MainWindow : Hdy.ApplicationWindow {
if (row.source.parent == null || before.source.parent == null) {
return -1;
} else if (row.source.parent == before.source.parent) {
#if HAS_EDS_3_40
return E.util_source_compare_for_sort (row.source, before.source);
#else
return row.source.display_name.collate (before.source.display_name);
#endif
} else {
return row.source.parent.collate (before.source.parent);
}
Expand Down