diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..e0fed8a --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "subprojects/libhandy"] + path = subprojects/libhandy + url = https://gitlab.gnome.org/GNOME/libhandy.git diff --git a/README.md b/README.md index e201f61..0ebdf86 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ To build the app, make sure you have these dependencies: * libsoup2.4-dev * libgranite-dev * libjson-glib-dev -* libhandy-0.0-dev +* libhandy-1.0-dev Then run `install.sh` in the project directory to install the app. diff --git a/data/ui/dialogs/preferences.ui b/data/ui/dialogs/preferences.ui index c5f8c84..b8cd7f6 100644 --- a/data/ui/dialogs/preferences.ui +++ b/data/ui/dialogs/preferences.ui @@ -12,8 +12,8 @@ - preferences-other-symbolic - Application + applications-system-symbolic + General True @@ -25,7 +25,7 @@ True dark_theme Dark theme - + True center @@ -46,7 +46,7 @@ autostart Autostart Start minimized at boot - + True center @@ -60,7 +60,7 @@ work_in_background Background work Receive notifications even when the app window is closed - + True center @@ -96,7 +96,7 @@ True timeline_page_size Posts per page - + True True @@ -112,7 +112,7 @@ True post_text_size Post text size (%) - + True True @@ -136,7 +136,7 @@ live_updates Stream timelines Add and remove posts in real-time - + True center @@ -151,7 +151,7 @@ Stream public timelines Warning: This will use more resources on crowded instances - + True center diff --git a/meson.build b/meson.build index 355b6f7..a4280e7 100644 --- a/meson.build +++ b/meson.build @@ -16,6 +16,21 @@ asresources = gnome.compile_resources( c_name: 'as' ) +libhandy_dep = dependency('libhandy-1', version: '>= 0.80.0') + +if not libhandy_dep.found() + libhandy = subproject( + 'libhandy', + install: false, + default_options: [ + 'examples=false', + 'package_subdir=' + meson.project_name(), + 'tests=false', + ] + ) + libhandy_dep = libhandy.get_variable('libhandy_dep') +endif + executable( meson.project_name(), asresources, @@ -75,7 +90,7 @@ executable( dependency('granite', version: '>=5.2.0'), dependency('json-glib-1.0'), dependency('libsoup-2.4'), - dependency('libhandy-0.0', version: '>=0.0.13'), + libhandy_dep, ], install: true, ) diff --git a/src/Application.vala b/src/Application.vala index 90f6f98..908776f 100644 --- a/src/Application.vala +++ b/src/Application.vala @@ -61,7 +61,6 @@ namespace Tootle { public static int main (string[] args) { Gtk.init (ref args); - Hdy.init (ref args); try { var opt_context = new OptionContext ("- Options"); opt_context.add_main_entries (app_options, null); diff --git a/subprojects/libhandy b/subprojects/libhandy new file mode 160000 index 0000000..b61eefd --- /dev/null +++ b/subprojects/libhandy @@ -0,0 +1 @@ +Subproject commit b61eefde06040703026f49a0b979588e69f77d3a