Evangelos Ribeiro Tzaras
3c8e3253ad
application: Drop libcallaudio initialization
...
libcallaudio bits live in libcall-ui for a long time
(and libcallaudio is going away anyway).
Signed-off-by: Evangelos Ribeiro Tzaras <devrtz@fortysixandtwo.eu >
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/806 >
2025-11-25 17:40:17 +01:00
Guido Günther
7103f18e48
application: Load plugins early
...
Fixes: 574e1f79 ("application: Drop ignore_activation flag")
Closes: https://gitlab.gnome.org/GNOME/calls/-/issues/718
Signed-off-by: Guido Günther <agx@sigxcpu.org >
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/795 >
2025-10-13 21:31:16 +02:00
Guido Günther
32a88ecd80
application: Wait until all async database operations finished
...
When shutting down make sure there are no in-flight database operations.
Otherwise the database might not be closed correctly.
Improves fix for https://gitlab.gnome.org/GNOME/calls/-/issues/508
Signed-off-by: Guido Günther <agx@sigxcpu.org >
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/795 >
2025-10-13 21:26:23 +02:00
Guido Günther
574e1f79a3
application: Drop ignore_activation flag
...
Rather use gapplication service. This makes the flow similar to what
Chatty does and makes us hold/release rather than having an application
window.
It also allows us to drop the --daemon.
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/760 >
2025-08-30 10:52:20 +00:00
Guido Günther
fbfe680f6a
application: Validate daemon flag only on first startup
...
The activate method is used when the application is activated via
various means - e.g. via the `Activate` DBus method. We don't want to
ignore that activation just because calls was started with the
`--daemon` option. Rename the variable to better match what it means.
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/760 >
2025-08-30 10:52:20 +00:00
Guido Günther
24542d3bc2
application: Don't try to remove inexistent window
...
If the app never showed a window (e.g. in daemon mode) this
would otherwise raise a critical.
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/760 >
2025-08-30 10:52:20 +00:00
Chris Talbot
28ca838ab4
application: add signal for main window hiding
...
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/717 >
2024-09-02 15:56:58 +00:00
Balló György
5fde6bcc3a
application: Set default window icon
...
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/750 >
2024-08-31 00:36:09 +02:00
Evangelos Ribeiro Tzaras
8a4e53ded4
application: Log version on startup
...
Closes: https://gitlab.gnome.org/GNOME/calls/-/issues/652
Signed-off-by: Evangelos Ribeiro Tzaras <devrtz@fortysixandtwo.eu >
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/745 >
2024-07-18 04:44:23 +02:00
Evangelos Ribeiro Tzaras
e73dd15525
application: Remove unused variable in startup()
...
Signed-off-by: Evangelos Ribeiro Tzaras <devrtz@fortysixandtwo.eu >
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/745 >
2024-07-18 04:42:46 +02:00
Anton Lazarev
afc01b1146
calls-application: subclass AdwApplication
...
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714 >
2024-04-06 08:15:28 -07:00
Anton Lazarev
8aea5498d7
calls-record-store: GtkApplicationWindow is not a GListModel
...
I'm not sure how this worked in GTK3, but it doesn't anymore. The list
model is now composed with the record store instead of inherited.
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714 >
2024-04-06 08:15:26 -07:00
Anton Lazarev
50126f05f0
calls-application: Replace GtkClipboard with GdkClipboard
...
https://docs.gtk.org/gtk4/migrating-3to4.html#replace-gtkclipboard-with-gdkclipboard
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714 >
2024-04-06 08:15:25 -07:00
Anton Lazarev
ca059116b9
calls-application: Stop using GdkScreen
...
https://docs.gtk.org/gtk4/migrating-3to4.html#adapt-to-gtkwidgets-size-allocation-changes
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714 >
2024-04-06 08:15:25 -07:00
Anton Lazarev
674906f788
calls-application: Unconditionally use AdwStyleManager
...
> In libadwaita color schemes will be the only way to request dark
appearance.
https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/migrating-libhandy-1-4-to-libadwaita.html#use-hdystylemanager-instead-of-gtksettingsgtk-application-prefer-dark-theme
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714 >
2024-04-06 08:15:24 -07:00
Anton Lazarev
2b972ba035
treewide: gtk_widget_destroy() removal
...
https://docs.gtk.org/gtk4/migrating-3to4.html#adapt-to-gtk_widget_destroy-removal
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714 >
2024-04-06 08:15:24 -07:00
Anton Lazarev
ee3abc009a
treewide: Replace libhandy with libadwaita
...
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714 >
2024-04-06 08:15:24 -07:00
Evangelos Ribeiro Tzaras
7d3b5afad9
application: Reindent struct members
...
Split into separate commit to reduce diff noise.
2023-05-20 04:04:50 +02:00
Evangelos Ribeiro Tzaras
d3e42c93cd
refactor: Switch to CallsPluginManager
2023-05-20 04:04:50 +02:00
Evangelos Ribeiro Tzaras
f485215a9f
application: Initialize objects before parsing options
...
This helps making object life cycles clearer and
with logging already set up we won't miss any early debugging messages.
2023-04-18 08:34:39 +00:00
Evangelos Ribeiro Tzaras
d690fe5f68
application: Handle setting verbosity first
...
We want logging verbosity to be set before other command line options
are handled as we might be missing messages otherwise.
2023-04-18 08:34:39 +00:00
Evangelos Ribeiro Tzaras
813103e684
application: Don't leak CallsManager
2023-04-18 08:34:39 +00:00
Evangelos Ribeiro Tzaras
2550141585
application: Remove unused macro
2023-04-18 08:34:39 +00:00
Evangelos Ribeiro Tzaras
d901e4c8a6
application: Delay shutting down until database is done
...
Operations on the database are not cancellable, so we need to ensure any
critical code (such as database migration) has completed.
Otherwise we risk leaving the database in a locked state (or worse):
WARNING **: 09:24:53.428: Failed to determine schema version: sqlite3_prepare_v2 failed: database is locked: CREATE TABLE IF NOT EXISTS _gom_version (version INTEGER);
2023-02-09 19:07:32 +00:00
Evangelos Ribeiro Tzaras
ffc3c984b0
application: Respect object lifecycle for signals
2023-02-01 08:48:35 +01:00
Evangelos Ribeiro Tzaras
b49e086549
application: Guard against setting application name twice
...
This is useful for testing the CallsApplication.
2023-02-01 08:48:35 +01:00
Evangelos Ribeiro Tzaras
ac6aff798d
application: Shut down cleanly when application quits
...
Previously the application was only properly shut down
when it received SIGTERM/SIGINT.
2023-02-01 08:48:35 +01:00
Evangelos Ribeiro Tzaras
0c004b5204
application: Only destroy previously created widgets
...
If this is not the primary instance self->main_window and
self->call_window will not have been created in the first place.
Fixes: e878fabb27
2023-02-01 08:48:35 +01:00
Evangelos Ribeiro Tzaras
481c67a707
application: Coding style
2023-02-01 08:48:35 +01:00
Evangelos Ribeiro Tzaras
e878fabb27
application: Remove and destroy application windows on shutdown
...
The windows need to be removed from the GtkApplication because they are
holding references to the application which prevents proper cleanup.
Fixes : #508
2023-01-11 18:50:22 +01:00
Evangelos Ribeiro Tzaras
177199467f
application: Set unix signal handler source ID to 0
...
g_clear_signal_handle_id() will complain about unknown sources otherwise.
2023-01-11 18:47:43 +01:00
Evangelos Ribeiro Tzaras
f997048a38
build: Rename config.h to calls-config.h
...
This guards against accidentally including configuration from elsewhere.
2022-12-22 15:08:18 +00:00
Evangelos Ribeiro Tzaras
3225be22a3
application: Print positive delta when changing verbosity
...
Since we already take into account if it's increasing or decreasing
we should make the amount (Increased/Decreased by N) positive.
2022-12-03 19:46:25 +01:00
Evangelos Ribeiro Tzaras
19f8ac390b
application: Shut down graceful on SIGTERM/SIGINT
...
This will allow cleaning up after ourselves, e.g. closing the record DB.
Fixes : #508
2022-11-17 10:00:03 +01:00
Evangelos Ribeiro Tzaras
f7e632dcb4
application: Propagate verbosity to main instance
...
If another instance of calls was already running, invoking calls with
`-v` flag would set the verbosity for the newly created process and then
exit if it was not the primary instance.
2022-11-01 10:19:08 +00:00
Evangelos Ribeiro Tzaras
a278cb660c
application: Fix indentation
2022-11-01 10:19:08 +00:00
Evangelos Ribeiro Tzaras
c3c315d8e7
application: Don't show application window if started as daemon
...
If calls was already running as a daemon it and were invoked again with
`--daemon` it ended up showing the UI.
Now we always set the `daemon` variable and simplify activation logic as
a side effect.
Fixes #500
2022-09-20 13:41:43 +02:00
Evangelos Ribeiro Tzaras
3badf72725
application: Don't return value in start_proper()
...
It never returned FALSE, so change function prototype accordingly.
2022-09-20 13:30:31 +02:00
Evangelos Ribeiro Tzaras
4592194c11
application: Fix typo in message emission
2022-09-01 18:06:55 +02:00
Evangelos Ribeiro Tzaras
5869296c14
application: Consistent use of user_data in action "activate" callbacks.
2022-09-01 18:06:55 +02:00
Evangelos Ribeiro Tzaras
b893c81375
application: Whitespaces style nitpicks
2022-09-01 18:06:55 +02:00
Andrey Skvortsov
e8895e9387
application: fix 'tel:' URL handling with escaped symbols
...
It's common to have spaces or other separator characters in telephone
numbers. If tel: link (example: tel:+1 855-698-1150) is clicked in browser all
unsupported characters are escaped (example: tel:+1%20(855)%20698-11-50).
2022-06-15 07:39:37 +00:00
Evangelos Ribeiro Tzaras
7ac862155b
Uncrustify sources
...
Ran `find src plugins -iname '*.[c|h]' -print0 | xargs -0 uncrustify --no-backup`
with some minimal manual intervention.
2022-04-24 12:59:42 +02:00
Evangelos Ribeiro Tzaras
6e7984cb5d
application: Reuse existing functions in app.dial action
...
For that we must move open_sip_uri() and open_tel_uri() up to avoid having to
add forward declarations.
Fixes #402
2022-02-18 09:20:07 +00:00
Evangelos Ribeiro Tzaras
d75d4916af
manager: Use state flags instead of an enum and adapt to changes
...
This gives us some more granularity and is overall a better fit than the states
previously used.
Closes #327
2022-01-31 17:08:38 +00:00
Evangelos Ribeiro Tzaras
6de5e9a54c
manager: Remove the "error" signal and adapt to changes
...
We can now use the message source interface to signal any feedback to the user.
2022-01-11 12:00:10 +00:00
Evangelos Ribeiro Tzaras
e148930cc4
application: Sort includes alphabetically
2022-01-11 12:00:10 +00:00
Evangelos Ribeiro Tzaras
edfb4455f8
application: Chain up shutdown
2021-12-02 05:52:44 +01:00
Evangelos Ribeiro Tzaras
aad6b85a2b
application: Codestyle
2021-12-02 05:52:44 +01:00
Christopher Davis
fb23d42075
application: Check libhandy version at compilation
...
This only enables the dark style preference if we have
a libhandy version of 1.5.0 or newer.
2021-11-30 13:04:13 -08:00