1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-13 16:07:36 +00:00
Commit graph

1724 commits

Author SHA1 Message Date
Evangelos Ribeiro Tzaras
d19aa10534 Update libcall-ui to v0.0.4
Brings some UX improvements and updated translations
2022-08-05 15:05:18 +00:00
Yuri Chornoivan
2e9c5ef89a Update Ukrainian translation 2022-08-05 14:17:38 +00:00
Evangelos Ribeiro Tzaras
757351b39c record-row: Add SMS action
Add a menu entry in the history popover to open the default "sms" URI
handler.

Closes: #182
2022-08-05 10:30:06 +02:00
Evangelos Ribeiro Tzaras
01f3757ce1 record-row: Simplify add-action logic
Get rid of some code by avoiding special casing
and potentially fix an issue (WIP).
2022-08-05 10:30:06 +02:00
Evangelos Ribeiro Tzaras
0d6095b42a record-row: Use STR_IS_NULL_OR_EMPTY macro 2022-08-05 10:30:06 +02:00
Evangelos Ribeiro Tzaras
8e23d77508 record-row: Chain up early to constructed() 2022-08-05 10:30:06 +02:00
Evangelos Ribeiro Tzaras
d94792f3c5 record-row: Rename callback to conform to on_* naming scheme 2022-08-05 10:30:06 +02:00
Evangelos Ribeiro Tzaras
37eba7b66f record-row: Remove unused code 2022-08-05 10:30:06 +02:00
Evangelos Ribeiro Tzaras
b81b216cf0 history-box: Cap size of slice at number of call records
This helps avoiding some log spam when scrolling to the bottom:

16:29:17.1053      CallsHistoryBox[2798409]:   DEBUG: Increasing history slice from 1825 to 1875
16:29:17.1215      CallsHistoryBox[2798409]:   DEBUG: Increasing history slice from 1875 to 1925
16:29:20.6739      CallsHistoryBox[2798409]:   DEBUG: Increasing history slice from 1925 to 1975
16:29:23.1919      CallsHistoryBox[2798409]:   DEBUG: Increasing history slice from 1975 to 2025
16:29:24.2533      CallsHistoryBox[2798409]:   DEBUG: Increasing history slice from 2025 to 2075

for a history of ~1400 records.
2022-07-27 16:54:26 +02:00
Evangelos Ribeiro Tzaras
9209a7801c history-box: Allow transition from non-empty to empty history
Since call records may be deleted, the transition from non-empty to
empty is also possible.
2022-07-27 16:45:42 +02:00
Evangelos Ribeiro Tzaras
a6faac2940 history-box: Dynamically adjust slice list model size
The slice get's increased by 50 items if scrolled to the bottom
and reset to the initial 75 items if scrolled back to the top.

The defined threshholds make sure that the UX still feels smooth.
2022-07-27 16:29:39 +02:00
Evangelos Ribeiro Tzaras
8ae03a1321 history-box: Switch to GtkSliceListModel
Having more than ~200 widgets in a GtkListBox comes with a very
performance impact. This is especially noticable during while the main
window is being realized (even if Calls already runs in daemon mode).

We can limit the amount of widgets by using a slice list model.

Fixes: #374
2022-07-27 16:27:07 +02:00
Evangelos Ribeiro Tzaras
3568af8553 meson: Add gtk sources to build 2022-07-27 16:26:25 +02:00
Evangelos Ribeiro Tzaras
44c892b6f7 Drop use of volatile
The volatile qualifier was mostly used for historical reasons,
the documentation for `g_once_init_enter()` and `g_once_init_leave()`
has the following to say:

While `location` has a `volatile` qualifier,
this is a historical artifact and the pointer passed to it
should not be volatile.

See also https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1719
2022-07-27 16:26:25 +02:00
Evangelos Ribeiro Tzaras
fd5a24f853 history-box: Chain up to constructed() early 2022-07-27 16:26:24 +02:00
Evangelos Ribeiro Tzaras
01aa8c04c2 Add various gtk list models
This is an exact copy from GTK4.
as grabbed by chattys commit 1ed5084fb965908e3ee0304781b0de06479c869b

Slightly adapted for Calls.

Based on GTKs 01bd4cc4e18a1ea697fe61791ba710d0d55e8290
2022-07-27 16:06:57 +02:00
Evangelos Ribeiro Tzaras
4188af73af sip: origin: Drop comparison that always evaluates as true
This avoids the following warning:

../plugins/sip/calls-sip-origin.c: In function ‘sip_r_register’:
../plugins/sip/calls-sip-origin.c:483:26: warning: the comparison will always evaluate as ‘true’ for the address of ‘m_url’ will never be NULL [-Waddress]
  483 |     if (sip->sip_contact && sip->sip_contact->m_url && sip->sip_contact->m_url->url_host) {
      |                          ^~
In file included from /usr/include/sofia-sip-1.12/sofia-sip/nua.h:47,
                 from ../plugins/sip/calls-sip-util.h:28,
                 from ../plugins/sip/calls-sip-call.h:30,
                 from ../plugins/sip/calls-sip-origin.c:31:
/usr/include/sofia-sip-1.12/sofia-sip/sip.h:477:23: note: ‘m_url’ declared here
  477 |   url_t               m_url[1];     /**< SIP URL */
      |                       ^~~~~
../plugins/sip/calls-sip-origin.c: In function ‘sip_callback’:
../plugins/sip/calls-sip-origin.c:779:23: warning: the comparison will always evaluate as ‘true’ for the address of ‘a_url’ will never be NULL [-Waddress]
  779 |     if (sip->sip_from && sip->sip_from->a_url &&
      |                       ^~
/usr/include/sofia-sip-1.12/sofia-sip/sip.h:386:22: note: ‘a_url’ declared here
  386 |   url_t              a_url[1];      /**< URL */
      |                      ^~~~~
2022-07-27 16:06:57 +02:00
Zurab Kargareteli
76148fc4f1 Update Georgian translation 2022-07-25 16:52:46 +00:00
Yosef Or Boczko
f2f4ea71ba Update Hebrew translation 2022-07-14 11:20:32 +00:00
Evangelos Ribeiro Tzaras
74beff0c98 ci: Allow flatpak failures
That does of course not mean that we shouldn't investigate,
but I like to have passing CI in the meantime.
2022-07-06 07:12:05 +02:00
Daniel Șerbănescu
990ffdf2b6 Update Romanian translation 2022-07-03 12:47:05 +00:00
Мирослав Николић
f8997f6b46 Update Serbian translation 2022-07-03 01:51:57 +00:00
Danial Behzadi
d431d627c7 Update Persian translation 2022-06-28 11:17:16 +00:00
Vittorio Monti
647f9bf7ab Update Italian translation 2022-06-28 06:28:55 +00:00
Evangelos Ribeiro Tzaras
5fc07678d1 d/gbp.conf: Adjust debian-tag-msg
Tag messages have been a bit inconsistent in the past, because we
created signed tags by hand.

With this change we can just `gbp tag` and get consistently named tags
and messages.
2022-06-27 04:37:38 +02:00
Evangelos Ribeiro Tzaras
03543142e6 Post release bump
According to the schedule
https://wiki.gnome.org/FortyThree
the next version will be 43.beta.0
2022-06-27 04:36:53 +02:00
Evangelos Ribeiro Tzaras
3d7c671034 Document and release 43.alpha.2 2022-06-26 15:47:47 +02:00
Piotr Drąg
98efbd235f Update Polish translation 2022-06-26 14:32:03 +02:00
Aleksandr Melman
335b330919 Update Russian translation 2022-06-25 18:25:15 +00:00
Nathan Follens
00f10c3267 Update Dutch translation 2022-06-24 11:13:29 +00:00
Evangelos Ribeiro Tzaras
879a214baf dir-locals: Use the linux coding style 2022-06-22 10:17:30 +02:00
Evangelos Ribeiro Tzaras
fae760c541 dir-locals: Exhaustive projectile setup
This expands on the minimal projectile setup we had before by including
compilation directory, configure and run commands.
2022-06-22 10:17:30 +02:00
Evangelos Ribeiro Tzaras
36b10bc764 new-call-box: Don't auto select offline accounts 2022-06-21 12:19:38 +02:00
Evangelos Ribeiro Tzaras
ee64b33e24 new-call-box: Fix memory leak
calls_new_call_box_dial was taking a reference it never released.
2022-06-21 11:52:40 +02:00
Evangelos Ribeiro Tzaras
581c82fcd7 new-call-box: Order includes alphabetically 2022-06-21 11:52:40 +02:00
Guido Günther
8d3a3dc65d data: Indicate that we're using feedbackd
This will allow configuration tools to pick up that intent.
2022-06-21 01:37:22 +00:00
Evangelos Ribeiro Tzaras
e5e19fcd5f doc: Add call state diagram
Having this makes it easier to reason about the call states.
2022-06-20 15:59:17 +00:00
Anders Jonsson
38e18ba245 Update Swedish translation 2022-06-20 15:53:02 +00:00
Yuri Chornoivan
8d37f7698d Update Ukrainian translation 2022-06-20 15:19:26 +00:00
Evangelos Ribeiro Tzaras
82a03ac0b1 record-store: Add debug statement for call state changes
This can help debugging issues such as #463 and #455
2022-06-20 13:00:37 +00:00
Evangelos Ribeiro Tzaras
7094363894 sip: origin: Reduce logspam from REGISTER keep-alives 2022-06-20 13:00:37 +00:00
Evangelos Ribeiro Tzaras
bf8bc5db3c sip: origin: Only set own IP if it has changed
This helps to reduce some logspam.
2022-06-20 13:00:37 +00:00
Evangelos Ribeiro Tzaras
2c7569c608 sip: origin: Don't fetch the contact header repeatedly
This somewhat reduces the logspam:
response to get_params: 200 OK

origin->contact_header
2022-06-20 13:00:37 +00:00
Evangelos Ribeiro Tzaras
6d7feec690 mm: call: Better debugging
Including the error domain should help in identifying errors.
Use the DBus object path as the primary identifier for a call.
2022-06-20 13:00:37 +00:00
Evangelos Ribeiro Tzaras
07aa990601 mm: call: Use correct enum type
They both have the same value (=0), and things worked because of
implicit conversion, but was still confusing and technically wrong.
2022-06-20 13:00:37 +00:00
Evangelos Ribeiro Tzaras
654664799b data: Add D-Bus service file
Heavily inspired by
cf329d0a05

Fixes #464
2022-06-20 05:39:31 +02:00
Aleksandr Melman
5782b2b46d Update Russian translation 2022-06-18 21:23:15 +00:00
Jiri Grönroos
d190c000f3 Update Finnish translation 2022-06-16 15:35:51 +00: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
01b214c5fb sip: origin: Don't mix code and declarations
Move (and reorder) declarations to avoid warnings triggered by
-Wdeclaration-after-statement

Closes #459
2022-06-14 17:48:43 +00:00