1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-09-19 18:05:25 +00:00
Commit graph

65 commits

Author SHA1 Message Date
Anton Lazarev
e35c15ad7d sip-account-widget: Use adwaita rows for server settings
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/738>
2024-06-23 16:49:15 -07:00
Guido Günther
17325b3104 sip: Don't drop errors when recreating sip account
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/737>
2024-06-23 12:31:12 +00:00
Guido Günther
13ebabfadb sip: Don't crash when handles never got set up
Still need to figure out how we can end up there, see #580

Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/737>
2024-06-23 12:31:12 +00:00
Anton Lazarev
36cd614310 treewide: Use gtk4.12, libadwaita 1.4
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/729>
2024-05-21 20:27:49 -07:00
Anton Lazarev
e2fa92ff45 build: Use gtk4.10, libadwaita 1.3
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/729>
2024-05-21 20:27:48 -07:00
Anton Lazarev
b5577d0005 sip-account-widget: Remove set_password_visibility
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714>
2024-04-06 08:15:29 -07:00
Anton Lazarev
27e6b7a9db treewide: Remove requires glade-isms from ui definitions
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714>
2024-04-06 08:15:29 -07:00
Anton Lazarev
1e862ffc67 sip-account-widget: Use GtkPasswordEntry
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714>
2024-04-06 08:15:29 -07:00
Anton Lazarev
001d599495 treewide: Parent from AdwBin where possible
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714>
2024-04-06 08:15:28 -07:00
Anton Lazarev
caecf10cc1 treewide: Remove visible=True on adwaita widgets
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714>
2024-04-06 08:15:28 -07:00
Anton Lazarev
b83339980b treewide: Use AdwToolbarView for all windows with header bars
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714>
2024-04-06 08:15:27 -07:00
Anton Lazarev
d6918cc946 sip-account-widget: move GtkSizeGroup out of child
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714>
2024-04-06 08:15:27 -07:00
Anton Lazarev
ef0b5a9ff8 treewide: Adapt to GtkHeaderBar API changes
https://docs.gtk.org/gtk4/migrating-3to4.html#adapt-to-gtkheaderbar-and-gtkactionbar-api-changes

- `show-close-button` replaced with `show_title_buttons` wherever
  applicable, respecting new default value of `TRUE`
- `title` removed and managed by setting window title if needed
    - NOTE: I'm not 100% sure if the title logic here matches the GTK3
      version. I also just removed the SIP account widget titles
      altogether, since it's I couldn't figure out where the widget gets
      placed.

Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714>
2024-04-06 08:15:26 -07:00
Anton Lazarev
7c89bbab3d treewide: remove <packing> from Adwaita widgets
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714>
2024-04-06 08:15:26 -07:00
Anton Lazarev
a656776b19 treewide: Dispose and layout manager implementations
https://docs.gtk.org/gtk4/migrating-3to4.html#adapt-to-gtkcontainer-removal

Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714>
2024-04-06 08:15:26 -07:00
Anton Lazarev
fd9378267d ui: gtk4-builder-tool simplify --3to4 --replace *.ui
plus some manual tweaks to restore True/False instead of 1/0

Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714>
2024-04-06 08:15:26 -07:00
Anton Lazarev
47e30c12a7 calls-sip-account-widget: Stop using HdyValueObject and adapt to AdwComboRow API changes
These two are kind of hard to separate.

https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/migrating-libhandy-1-4-to-libadwaita.html#stop-using-hdyvalueobject

https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/migrating-libhandy-1-4-to-libadwaita.html#adapt-to-adwcomborow-api-changes

Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714>
2024-04-06 08:15:25 -07:00
Anton Lazarev
34a7651f44 treewide: Replace hide/show with set_visible
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714>
2024-04-06 08:15:24 -07:00
Anton Lazarev
4b0b20eb0a treewide: GtkEntry -> GtkEditable
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
Anton Lazarev
4ed1bba0b8 treewide: Subclass custom classes from GtkWidget
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714>
2024-04-06 08:15:24 -07:00
Anton Lazarev
98231778ed meson: Bump gtk dependency to 4.0
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714>
2024-04-01 18:37:57 -07:00
Anton Lazarev
9fa0539ad6 sip-account-widget: compose with GtkBin instead of subclassing GtkBox
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714>
2024-04-01 18:37:57 -07:00
Evangelos Ribeiro Tzaras
0b0dc68000 build: Install .plugin files
Without them we cannot load plugins from the installed location.

Closes: #585

Fixes: 42b456f03a
2023-06-13 18:56:03 +02:00
Evangelos Ribeiro Tzaras
c2375a0c37 sip: Reword plugin information 2023-05-15 09:56:28 +02:00
Evangelos Ribeiro Tzaras
42b456f03a po: Add plugin desktop files
Calls preferences will show the name and description of a plugin,
so they should be translatable.
2023-05-15 09:56:28 +02:00
Evangelos Ribeiro Tzaras
9c5d7a58a1 sip-provider: Add debugging to password lookup 2023-05-12 18:06:34 +02:00
Дилян Палаузов
378da62ccb srtp-utils: Add skeleton code to ease adding crypto suites
With this in place enabling an additional crypto suite
would only require two changes:
- Adding GStreamer capability mapping
- Add case in calls_srtp_parse_sdp_crypto_attribute()
2023-05-09 13:23:43 +00:00
Дилян Палаузов
267eecf049 srtp-utils: Add support for AES 256 bit crypto suites
As specified by RFC 6188.
2023-05-09 13:23:43 +00:00
Дилян Палаузов
8ca3597646 sdp-crypto: Include "ICM" in crypto suite enums
This indicates integer counter mode being used and
helps disambiguate additional crypto suites in the future.

Renamed CALLS_SRTP_SUITE_AES_128_SHA1_80 → CALLS_SRTP_SUITE_AES_128_ICM_SHA1_80
and CALLS_SRTP_SUITE_AES_128_SHA1_32 → CALLS_SRTP_SUITE_AES_128_ICM_SHA1_32
2023-05-09 13:23:43 +00:00
Дилян Палаузов
e6bfa6d933 srtp-utils: Reuse existing function to get expected key length
This avoids unnecessary and potentially error-prone duplication.
2023-05-09 13:23:43 +00:00
Дилян Палаузов
3db2c5dbb9 srtp-utils: Add implicit padding characters explicitly
Otherwise base64 decoding will give us a wrong key.
2023-05-09 13:23:43 +00:00
Дилян Палаузов
cfd371d72e srtp-utils: Strip padding characters in crypto attribute lines
https://www.rfc-editor.org/rfc/rfc4568.html#section-6.1 says:
 When base64 decoding the key and salt, padding characters (i.e.,
 one or two "=" at the end of the base64-encoded data) are discarded
 (see [RFC3548] for details).

https://www.rfc-editor.org/rfc/rfc3548#section-2.2 says:
 In some circumstances, the use of padding ("=") in base encoded data
 is not required nor used.  In the general case, when assumptions on
 size of transported data cannot be made, padding is required to yield
 correct decoded data.
2023-05-09 13:23:43 +00:00
Evangelos Ribeiro Tzaras
037d2c55f6 srtp-utils: Pass MKI length into error message
Fixes: 4937723541
2023-05-09 09:23:39 +00:00
Дилян Палаузов
8eb46de6f9 srtp-utils: Remove unused variable srtp_crypto_suites 2023-05-03 17:05:58 +02:00
Evangelos Ribeiro Tzaras
4576547c20 sip-origin: Prefer named constant over magic numbers 2023-04-18 08:34:39 +00:00
Evangelos Ribeiro Tzaras
5362d1c975 sip-origin: Don't leak address 2023-04-18 08:34:39 +00:00
Evangelos Ribeiro Tzaras
0e753816c9 sip-origin: Include SIP address in debugging
This makes it easier to see if all accounts are being disposed
2023-04-18 08:34:39 +00:00
Evangelos Ribeiro Tzaras
f7745f50bd sip-origin: Keep sofia running to allow unregistering on dispose
sofia-sip needs to keep iterating its' main loop in order to
unregister as well as process the response from the server.

Closes: #554
2023-04-18 08:34:39 +00:00
Evangelos Ribeiro Tzaras
8b3eccd1b7 sip-origin: Use g_clear_pointer() instead of emulating it 2023-04-18 08:34:39 +00:00
Evangelos Ribeiro Tzaras
94cfbd83b2 sip-provider: Chain up to constructed early 2023-04-12 09:17:40 +00:00
Evangelos Ribeiro Tzaras
243753d064 sip-provider: Improve debugging of account loading
This should help diagnosing why the flatpak sometimes fails to add SIP accounts.
2023-04-12 09:17:40 +00:00
Evangelos Ribeiro Tzaras
208438236c sip-provider: Don't leak keyfile
The reference taken in new_origin_from_keyfile_secret() was never
released in the async callback.
2023-04-12 09:17:40 +00:00
Evangelos Ribeiro Tzaras
c84f2a2bd9 sip-provider: Remove unused variables 2023-04-12 09:17:40 +00:00
Дилян Палаузов
242efcc06a SIP:calls_sdp_crypto_context_generate_answer() accept the first supporetd a=crypto: line 2023-02-12 12:06:06 +00:00
Evangelos Ribeiro Tzaras
d790e35bc3 sip-provider: Remove duplicated check
init() already checked if CALLS_SIP_TEST was set,
no need to do it again in constructed()
2023-02-12 10:26:46 +01:00
Evangelos Ribeiro Tzaras
4d402d2f79 sip-provider: Use STR_IS_NULL_OR_EMPTY macro 2023-02-12 10:26:46 +01:00
Guido Günther
75cbc30dc0 sip: Implement empty emegency call property
This allows the tests to pass.
2023-02-12 08:00:56 +00:00
Evangelos Ribeiro Tzaras
18173f067f sip-provider: Use STR_IS_NULL_OR_EMPTY macro 2023-01-26 12:03:39 +00:00
Evangelos Ribeiro Tzaras
204772abbd sip-provider: Sort includes
We want the configuration to be included first
2023-01-26 12:03:39 +00:00