Julian Sparber
339b71a233
BestMatch: Allways return a name
...
If no matching contact is found the phone number is used, and when no
phone number was given "Anonymous caller" is returned.
2021-02-03 23:58:31 +00:00
Julian Sparber
d75d39dc66
BestMatch: Move SearchView creation inside the class
2021-02-03 23:58:31 +00:00
Julian Sparber
99e427a529
BestMatch: Turn avatar into a property
2021-02-03 23:58:31 +00:00
Evangelos Ribeiro Tzaras
d8f2534795
call-display: fix whitespace
2021-02-03 23:58:31 +00:00
Julian Sparber
19c9893ecf
Contacts: Add contacts list
2021-02-03 23:28:57 +01:00
Julian Sparber
4c7b402385
Revert "ui/main-window: Hide contacts pane"
...
This reverts commit 6a4dbe6b18
.
2021-02-03 23:28:57 +01:00
Julian Sparber
f61ae1cba1
Contacts: replace CallsContacts with CallsContactsProvider
2021-02-03 23:28:56 +01:00
Julian Sparber
4ba9feb22f
ContactsProvider: Add contacts provider
...
The CallsContacts provider offers a GListModel that can be connected
directly to a GtkListBox for showing a contacts list.
2021-02-03 16:18:29 +00:00
Evangelos Ribeiro Tzaras
2568ea8179
application: Notify when opening URI/files fails
2021-02-01 23:14:36 +00:00
Evangelos Ribeiro Tzaras
dc6b675a14
application: Use g_autoptr and g_autofree
2021-02-01 23:14:36 +00:00
Mohammed Sadiq
5684d54bbd
Let calls-provider be an abstract class
...
And adapt to changes.
A calls-mm-provider IS-A calls-provider (and so on)
2021-01-31 23:01:13 +00:00
Julian Sparber
1c8eb87e7f
remove CallsCallHolder and CallsCallData
...
Both classes are containers for other data and we can pass the data
directly without an additional code.
2021-01-28 15:22:59 +01:00
Arnaud Ferraris
13c7f052d0
src: meson.build: update libcallaudio dependency
2021-01-24 20:09:21 +00:00
Arnaud Ferraris
cf38ff628b
call-display: update libcallaudio API calls
...
Upstream modified the async API, make sure we use it.
2021-01-24 20:09:21 +00:00
Mohammed Sadiq
862e0b5f57
resources: Use standard icon path
...
GtkApplication by default appends "icons" to the app id and add that
to the icon search path. So let's just use that instead of adding
custom one.
This commit also fixes missing icon for "Add call" button in active
call window
2021-01-23 20:17:14 +00:00
Julian Sparber
dc0242eda5
application: disable dial action when making calls isn't possible
...
Fixes: https://source.puri.sm/Librem5/calls/-/issues/109
2021-01-23 14:32:27 +00:00
Evangelos Ribeiro Tzaras
4ebea1a27c
application: chain up to parents finalize
2021-01-22 15:02:22 +01:00
Evangelos Ribeiro Tzaras
d7cd299d9c
new-call-box: clear entry on longpress
2021-01-20 12:35:34 +00:00
Evangelos Ribeiro Tzaras
9f295a729b
record-row: hide copy number menu item
...
for anonymous callers
2021-01-20 11:47:33 +00:00
Evangelos Ribeiro Tzaras
78a47918be
record-row: Allow copying number from context menu
2021-01-20 11:47:33 +00:00
Evangelos Ribeiro Tzaras
5eeacf3720
application: add copy-number action
2021-01-20 11:47:33 +00:00
Mohammed Sadiq
945e2083e3
application: Remove unused code
...
constructed() was simply creating an action group which
is never used.
2021-01-20 11:00:51 +00:00
Mohammed Sadiq
7c13d3f179
application: Simplify loading css
...
And fix a memory leak.
2021-01-20 10:10:50 +00:00
Evangelos Ribeiro Tzaras
5bdfb0e223
application: Hang up calls when closing the UI
2021-01-12 17:09:06 +01:00
Evangelos Ribeiro Tzaras
f69c597387
manager: add has_active_call() and hang_up_all_calls()
2021-01-12 16:47:36 +01:00
Evangelos Ribeiro Tzaras
4602cca37d
manager: remove trailing whitespace
2021-01-12 16:47:36 +01:00
Evangelos Ribeiro Tzaras
b327aefdbb
call-window: inhibit idle during active call
...
Closes #202
2020-12-27 09:57:34 +00:00
Daniel Abrecht
4e7a0b8151
Replace CallsOrigin getters with properties and add calls_origin_foreach_call method
2020-12-07 17:25:33 +00:00
Adrien Plazas
fccb72c58c
style: Fix the CSS path to the HdyKeypad buttons
...
In libhandy 1, the hdykeypad CSS class name got renamed into keypad, and
HdyKeypad isn't a GtkGrid anymore but it contains one.
2020-11-05 09:58:21 +01:00
Mohammed Sadiq
0f88802cda
new-call-box: Handle USSD commands
2020-11-03 08:19:03 +05:30
Mohammed Sadiq
1c89bf292c
main-window: Add dialog to handle USSD
2020-11-03 08:19:03 +05:30
Mohammed Sadiq
949ef90e03
manager: Hook to ussd signals from provider
2020-11-03 08:19:03 +05:30
Mohammed Sadiq
6af2e26639
util: Add API to test for USSD command
2020-11-03 08:19:03 +05:30
Mohammed Sadiq
8103c3d477
Add calls-ussd interface
2020-11-02 10:00:46 +05:30
Arnaud Ferraris
8308e1dbbf
src: meson.build: remove librem5-hack option and depend on libcallaudio
2020-11-01 13:17:32 +01:00
Arnaud Ferraris
088c693374
ui: call-display: set speaker and mute buttons sensitive by default
...
Now that we got rid of ugly hacks, these buttons should work on all
devices. We can therefore enable them by default.
2020-11-01 13:17:06 +01:00
Arnaud Ferraris
20396ac951
application: initialize libcallaudio on startup
2020-11-01 13:16:42 +01:00
Arnaud Ferraris
d304c9cb32
call-display: replace ugly hacks with libcallaudio calls
...
`callaudiod` is a device-agnostic service for routing audio during voice
calls, called through `libcallaudio`.
It allows us to automatically switch profiles when entering a call,
enable the speaker output or mute the microphone, and can therefore be
used to replace the current Librem 5-specific hacks.
2020-11-01 13:15:58 +01:00
Adrien Plazas
576ea55e9f
main-window: Use HdyViewSwitcherTitle
...
This makes the code simpler.
2020-10-06 14:06:51 +00:00
Adrien Plazas
6dba2c453b
Port to libhandy 1
...
This ports Calls to libhandy 1 and drops the embedded HdyAvatar in favor
of the libhandy one.
Fixes https://source.puri.sm/Librem5/calls/-/issues/172
2020-10-06 14:06:51 +00:00
Guido Günther
4227e29009
calls-main-window: Bring back old error string when no modem is present
...
Calls can't tell the difference between no SIM and no modem
atm.
Closes : #159 , #152
2020-09-10 08:58:25 +00:00
Guido Günther
91cdde3ac9
main-window: Allow the in app notification to wrap
...
Othewise we overflow the window. Center it too.
2020-09-10 08:58:25 +00:00
Evangelos Ribeiro Tzaras
9619ebb674
src/calls-call-window.c: Inhibit suspend during active call
2020-09-09 08:27:14 +00:00
Evangelos Ribeiro Tzaras
c43bfe3ebb
src/calls-notifier.c: Add call-back button
2020-09-08 16:08:51 +02:00
Guido Günther
b95de5c9e0
calls-call-record-row: Ignore anonymous callsers
...
These have an empty string which leads to
Error parsing phone number `': Keine Telefonnumme
2020-07-22 06:52:07 +00:00
Guido Günther
1f8435f4dd
call-record-row: Use g_autoptr for the GError
2020-07-22 06:52:07 +00:00
Arnaud Ferraris
aadd3e3515
ui: call-display: wrap toggle buttons' labels
...
For some locales, the buttons' labels can be quite long, making the
window wider than the display.
Using a line wrap will solve this issue when there wouldn't be shorter
translation alternatives. This requires reducing the encryption indicator's
margins so the window height doesn't grow beyond the available display size.
2020-07-13 10:51:02 +02:00
Guido Günther
803cec41a5
calls-call-record-row: Set call back button insensitive for anonymous caller
...
They can't be called back, we don't have a number
See: #144
2020-07-02 12:10:10 +02:00
Guido Günther
0bc8c7bc4e
calls-call-record-row: Print 'Anonymous caller' on empty numbers
...
If no number is present use `Anonymous caller` instead of an
empty label in the call history.
See: #144
2020-07-02 12:10:10 +02:00
Evangelos Ribeiro Tzaras
9fc8ec5e1a
Implement contact name lookup for call display
...
* src/calls-manager.h: Add lookup function to header
* src/calls-manager.c: Implement lookup function to be used for the call
history, call notifier and call display
* src/calls-call-holder.c: Use calls_manager_get_contact_name ()
* src/calls-notifier.c: Use calls_manager_get_contact_name ()
2020-06-27 17:35:54 +02:00