Evangelos Ribeiro Tzaras
17a2c94387
ringer: codestyle
2021-12-05 09:49:05 +01:00
Evangelos Ribeiro Tzaras
f206b7d257
call: Rename property from "number" to "id"
...
The term number is not necessarily accurate when dealing with f.e. SIP.
2021-12-05 09:49:05 +01:00
Christopher Davis
50847dfe43
ui: Remove explicit can-focus
...
Glade misleads us into thinking we need these, but the
property is somewhat confusing in GTK3. In general we don't
want `can-focus` to be true for containers, as that will
break keynav for the children. For non-containers, the
defaults are appropriate.
Instead of manually setting `can-focus`, we should just
use the default values. GTK has sane defaults.
Fixes https://gitlab.gnome.org/GNOME/calls/-/issues/366
2021-12-04 14:40:08 -08:00
Evangelos Ribeiro Tzaras
3e22ef8c74
record-store: Get rid of unused code
2021-12-02 05:52:44 +01:00
Evangelos Ribeiro Tzaras
edfb4455f8
application: Chain up shutdown
2021-12-02 05:52:44 +01:00
Evangelos Ribeiro Tzaras
85689dbb45
history-box: Codestyle
2021-12-02 05:52:44 +01:00
Evangelos Ribeiro Tzaras
aad6b85a2b
application: Codestyle
2021-12-02 05:52:44 +01:00
Christopher Davis
69db235cea
style: Make error color white in both light and dark mode
2021-11-30 13:04:13 -08: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
Christopher Davis
ce7aca63b2
application: Opt in to libhandy dark style preference
...
GNOME 42 will have a dark style preference. This commit
adds support for it by opting in via HdyStyleManager.
2021-11-30 12:14:15 -08:00
Christopher Davis
aaf87e5e89
new-call-box: Clamp everything
...
This prevents items from stretching out of bounds.
2021-11-30 19:37:28 +00:00
Evangelos Ribeiro Tzaras
04f43b2ce2
call-window: Delay closing window
...
Fixes #301
2021-11-25 19:14:42 +01:00
Evangelos Ribeiro Tzaras
b083e588fa
call-window: codestyle
2021-11-25 19:14:42 +01:00
Evangelos Ribeiro Tzaras
989a52fac5
record-row: Removed unused define
2021-11-25 19:14:42 +01:00
Christopher Davis
89dd2d6e8f
contacts-box: mimmic HdyStatusPage styling for contacts
2021-11-24 15:16:29 +00:00
Christopher Davis
409f6598d9
history-box: Use HdyStatusPage for empty state
...
We have a standard widget for empty states in HdyStatusPage.
This commit uses that instead of rolling our own.
2021-11-24 15:16:29 +00:00
Christopher Davis
48825b4ccd
Remove history-header-bar.ui
...
This is unused.
2021-11-24 13:41:10 +00:00
Christopher Davis
ddbf404af4
main-window: Remove unused placeholder text
...
This way translators aren't translating something that
will never be seen.
2021-11-24 13:41:10 +00:00
Evangelos Ribeiro Tzaras
a28d694623
dbus: Add API to send DTMF
...
Addresses the calls side of #343
2021-11-23 08:50:01 +00:00
Evangelos Ribeiro Tzaras
0761c4a53a
dbus: Set can-dtmf property
...
This lets consumers on DBus know if this call is capable of sending DTMF.
2021-11-23 08:50:01 +00:00
Evangelos Ribeiro Tzaras
afd1034dd1
util: Make dtmf tone checking function public
...
Moves the function out of calls-call.c into util.c
2021-11-23 08:50:01 +00:00
Evangelos Ribeiro Tzaras
acec33bb6c
call: Get rid of unnecessary cast to int
2021-11-23 08:50:01 +00:00
Evangelos Ribeiro Tzaras
a353a03d01
call: Get rid of tone_stop
...
It wasn't used by any plugin backend and helps getting rid of a lot of code.
2021-11-23 08:50:01 +00:00
Evangelos Ribeiro Tzaras
2bbb923226
call-data: Notify on avatar changes
...
Otherwise the call display will not update.
2021-11-19 15:56:45 +01:00
Evangelos Ribeiro Tzaras
cfac02a00c
call-data: Fix assertion in notify handlers
2021-11-19 15:56:45 +01:00
Evangelos Ribeiro Tzaras
da648829b4
best-match: Rename best_match variable to matched_individual
...
This makes it a bit clearer what the variable is used for.
2021-11-19 15:56:45 +01:00
Evangelos Ribeiro Tzaras
dc96d892f5
Remove encryption indicator
...
Not used anymore since we switched to libcall-ui.
Should've been removed as a part of !425 .
2021-11-19 15:56:37 +01:00
Guido Günther
8f9f7311fa
dbus: Expose path to avatar icon file if it exists
...
We only support file based GLoadableIcon atm. Support for bytestreams
can be added later on.
2021-11-18 12:57:23 +01:00
Evangelos Ribeiro Tzaras
76ec1e6941
record-row: Use avatars in history
...
Fixes #147
2021-11-18 12:15:25 +01:00
Evangelos Ribeiro Tzaras
4e9eedb5fa
call-data: Implement avatar property
...
Fixes #161
2021-11-18 12:15:25 +01:00
Evangelos Ribeiro Tzaras
edd8560291
Remove CallsCallDisplay
2021-11-16 09:39:34 +01:00
Evangelos Ribeiro Tzaras
dc454837d6
Switch from CallsCallDisplay to CuiCallDisplay
...
Closes #302
2021-11-16 09:39:34 +01:00
Evangelos Ribeiro Tzaras
4321381f23
Introduce CallsUiCallData to feed CuiDisplay
...
We need a proxy object because implementing the CuiCall interface in the
CallsCall base class has it's own set of problems (f.e. the "state" property
would have a type collision CallsCallState vs CuiCallState).
2021-11-16 09:39:34 +01:00
Evangelos Ribeiro Tzaras
c5636ab71c
call: Add API to query whether this call can do DTMF
...
This allows enable or disable UI elements.
2021-11-16 09:39:34 +01:00
Evangelos Ribeiro Tzaras
bf72169f68
application: Initialize libcall-ui
2021-11-16 09:39:34 +01:00
Evangelos Ribeiro Tzaras
ac4150139d
call-window: Remove unused CALLS_WAYLAND ifdef
2021-11-16 09:39:34 +01:00
Evangelos Ribeiro Tzaras
f985332a37
Remove unused typedef
2021-11-16 09:39:34 +01:00
Evangelos Ribeiro Tzaras
620804ab01
main-window: Remove unused header
2021-11-16 09:39:34 +01:00
Evangelos Ribeiro Tzaras
2fc5533e1a
call-window: Improve readability of remove_call function
...
The casual reader might be tricked into believing CallsCallSelectorItem would
leak here, which was not actually the case.
2021-10-28 14:51:19 +00:00
Evangelos Ribeiro Tzaras
d7d97e8f67
call-window: Remove unnecessary code
...
As the "visible-child-name" from main_stack and header_bar_stack is already
bidirectionally bound.
2021-10-28 15:56:14 +02:00
Evangelos Ribeiro Tzaras
4593a82b21
number-query: Fall back to string comparison if parsing EPhoneNumber fails
...
Fixes #345
2021-10-27 11:07:54 +00:00
Evangelos Ribeiro Tzaras
94d730c3ed
Let provider plugin decide whether to automatically hang up secondary calls
...
Revert "manager: hang up secondary calls"
This reverts commit 94345e0916
and moves that
functionality to the ModemManager plugin.
Fixes #290
2021-10-22 06:00:45 +02:00
Evangelos Ribeiro Tzaras
28516cda32
new-call-box: Clarify accessible name
2021-10-19 09:43:48 +02:00
Evangelos Ribeiro Tzaras
a2df022606
application: Reword description for the -p flag
...
Closes #338
2021-10-18 17:07:51 +02:00
Evangelos Ribeiro Tzaras
b36725c69b
selector-item: Name label does not need to be translatable
...
The code will set a name here, so the label as in the ui file will never be
shown in the running application.
Closes #338
2021-10-18 17:07:48 +02:00
Evangelos Ribeiro Tzaras
386cb3e906
i18n: main-window: Clarify "Recent" to mean the call history
...
Closes #338
2021-10-18 17:07:40 +02:00
Evangelos Ribeiro Tzaras
2bfecf1249
i18n: notifier: Use comment to clarify if a name or number is meant
...
Closes #338
2021-10-18 17:07:15 +02:00
Evangelos Ribeiro Tzaras
57ec06a6f5
record-row: Take timezone into account for displaying in the UI
...
Since the database uses UTC times we have to take the timezone offset into
account when displaying times in the UI.
Fixes #163
2021-10-15 18:14:39 +02:00
Evangelos Ribeiro Tzaras
4f64f5b61b
record-store: Prefer using g_date_time_new_now_utc()
...
It actually does not make any difference for the storage in the database as
gom will make sure to convert any given times to the Zulu timezone (UTC+0)
but this change will make it more obvious in the code what's actually going on.
2021-10-15 18:01:47 +02:00
Evangelos Ribeiro Tzaras
110dcdf4ad
record-row: Clarify "Call" for translators with a comment
...
Fixes #319
2021-10-07 21:29:45 +00:00
Evangelos Ribeiro Tzaras
fbb6316fee
record-row: Right justify time
...
Fixes #336
2021-09-28 08:04:12 +00:00
Evangelos Ribeiro Tzaras
33ad4dbe86
Simplify country code handling
2021-09-27 08:46:09 +00:00
Evangelos Ribeiro Tzaras
04d391c5dd
settings: Add GSettings bindings
2021-09-27 08:46:09 +00:00
Evangelos Ribeiro Tzaras
b5defda27f
network-watch: Don't fail initialization when unable to fetch local IP
...
This would mean we're failing when Calls is started with all NICs not connected
or disabled. To make matters worse this would only be fixable by restarting
Calls.
2021-09-24 05:24:41 +00:00
Evangelos Ribeiro Tzaras
ab20b6b8e3
network-watch: Only g_set_error if error is not NULL
2021-09-24 05:24:41 +00:00
Evangelos Ribeiro Tzaras
4fc0a52873
network-watch: More descriptive warning
...
And make sure we're not continually spamming warnings.
Closes #330
2021-09-24 05:24:41 +00:00
Evangelos Ribeiro Tzaras
9d27d5bae6
best-match: Don't free unowned data
...
Fixes #331
2021-09-24 05:13:31 +02:00
Evangelos Ribeiro Tzaras
d9e5c6a252
best-match: codestyle
2021-09-24 05:13:31 +02:00
Evangelos Ribeiro Tzaras
bd045be4e4
number-query: Take country code into account
...
Fixes #312
2021-09-23 09:54:44 +02:00
Evangelos Ribeiro Tzaras
d936a4572d
contact-box: Do not hardcode length of match_fields[]
2021-09-23 09:54:44 +02:00
Evangelos Ribeiro Tzaras
528fb11dcd
new-call-box: Clear entry after dialing
...
Closes #332
2021-09-20 03:31:28 +02:00
Evangelos Ribeiro Tzaras
b458f6f040
record-row: Reword accessible name
...
"party" in "Call the party" could lead to confusion.
Fixes #319
2021-09-20 03:31:28 +02:00
Evangelos Ribeiro Tzaras
1a14075945
application: Do not prepend country code when dialing
...
Fixes #176
2021-09-20 03:31:28 +02:00
Evangelos Ribeiro Tzaras
464f3a993e
application: Clarify that -l flag is to be used with numbers only
...
This will also help unifying handling of tel: URIs.
2021-09-20 03:31:28 +02:00
Evangelos Ribeiro Tzaras
3714f99d38
Introduce CallsNetworkWatch to notify of network changes
...
The libsofia-sip stack needs to bind to a specific interface when there are
multiple network interfaces available.
Handles should be recreated when the default route changes.
2021-09-02 09:17:12 +02:00
Evangelos Ribeiro Tzaras
876ffb1e8c
new-call-box: Always update the UI when the list of origins changes
...
Otherwise this can lead to being stuck in numeric/non-numeric input mode.
2021-08-26 12:47:57 +00:00
Evangelos Ribeiro Tzaras
a85b9cd5c3
manager: Initialize g_auto variable to NULL
2021-08-25 11:06:32 +02:00
Evangelos Ribeiro Tzaras
9c777b7db8
new-call-box: Hide empty results
...
Because the empty result looks weird.
2021-08-19 01:46:59 +02:00
Evangelos Ribeiro Tzaras
b1c22e4310
new-call-box: Press enter to place a call
...
Connect to the "activate" signal and take appropriate action
for both numeric and non-numeric cases.
2021-08-19 01:44:06 +02:00
Evangelos Ribeiro Tzaras
a21bc475e4
new-call-box: Reindent
2021-08-19 01:35:47 +02:00
Evangelos Ribeiro Tzaras
da4c6b043a
new-call-box: Add placeholder texts for text input fields
2021-08-14 20:46:11 +02:00
Evangelos Ribeiro Tzaras
2c06497b08
new-call-box: Tweak the UI
...
- Fills horizontally now
- Make sure the "dial" and "backspace" button are still properly aligned
by using HdyClamp with the keypads typical size (rougly 250)
- Remove unnecessary default values from the xml
(f.e. "can-focus" on GtkEntry or GtkButton)
2021-08-14 20:46:11 +02:00
Evangelos Ribeiro Tzaras
3779aa1062
new-call-box: Set numeric input property based on selected origin
2021-08-14 20:46:11 +02:00
Evangelos Ribeiro Tzaras
db848b2c9f
new-call-box: Add entry for non-numeric inputs
2021-08-14 20:46:11 +02:00
Evangelos Ribeiro Tzaras
e9661ce01c
new-call-box: Introduce numeric-input-only property
...
This property will show the keypad for numeric inputs (i.e. telephone numbers)
or an entry allowing arbitrary inputs for SIP or other protocols.
2021-08-14 20:46:11 +02:00
Evangelos Ribeiro Tzaras
c61d63383f
new-call-box: Remove unnecessary GtkBox
2021-08-14 20:46:11 +02:00
Evangelos Ribeiro Tzaras
1312b2624c
new-call-box: Remove unused GtkListStore
2021-08-14 20:46:11 +02:00
Evangelos Ribeiro Tzaras
179c844a80
calls-new-call-box: Only show origin combo box if there is a choice
2021-08-14 20:46:11 +02:00
Evangelos Ribeiro Tzaras
62711da7fc
new-call-box: Simplify HdyComboRow binding
2021-08-13 02:13:27 +02:00
Evangelos Ribeiro Tzaras
c7731b189a
origin: Add "numeric-addresses" property
...
This will be useful in the dialpad to determine whether we should allow
only numeric input or not.
2021-08-13 02:13:27 +02:00
Mohammed Sadiq
8af2563859
Add and use new logger
...
This helps provider better logs. With this, the user can now run
with `-v` for verbose logs, use more `-v` to be more verbose,
eg `calls -vvvvv` log shall be very verbose
2021-08-11 09:38:19 +00:00
Guido Günther
a1fa33c7af
notifier: Add notification category
...
This helps shells to adjust the kind of haptic/visual/audio
feedback for the notification.
2021-08-04 02:36:34 +00:00
Guido Günther
26f0c9cb01
calls-notifier: Set log domain
2021-08-04 02:36:34 +00:00
Mohammed Sadiq
fe84a02af2
history-box: Use content style for listbox
...
So as to match the design and less code to maintain
2021-08-03 12:42:46 +00:00
Mohammed Sadiq
47a7d58074
application: Fix handling commandline arguments
...
handle_local_options() are supposed to be handled only in local instance,
and not in remote instance.
2021-07-30 00:12:50 +00:00
Evangelos Ribeiro Tzaras
9d9e989be4
secret-store: Work around bug in gnome-keyring preventing keyring unlocking
...
When a keyring is cold (unlocked) the schema is set as
"org.freedesktop.Secret.Generic". If we require the name to strictly match
while searching we won't ever get a match.
See https://gitlab.gnome.org/GNOME/gnome-keyring/-/issues/89 and
https://gitlab.gnome.org/GNOME/libsecret/-/issues/7 for more information
Closes #316
2021-07-21 17:30:51 +02:00
Evangelos Ribeiro Tzaras
241909c942
main-window: Fix the action name for the about dialog
2021-07-20 10:18:03 +02:00
Evangelos Ribeiro Tzaras
373465cc2c
about: Update copyright
2021-07-20 10:18:03 +02:00
Evangelos Ribeiro Tzaras
1f0ad8cf7c
about: Update authors
2021-07-20 10:18:03 +02:00
Evangelos Ribeiro Tzaras
c5e4c80a47
Introduce CallsSecretStore to store credentials
2021-07-20 10:17:17 +02:00
Evangelos Ribeiro Tzaras
803e089cfc
account-overview: Hook up available providers
...
Fixes #264 .
2021-07-20 10:17:17 +02:00
Evangelos Ribeiro Tzaras
fc7156fe75
Introduce CallsAccountOverview: A UI to allow managing VoIP accounts
...
CallsAccountOverview allows user to view, add and edit VoIP accounts
(currently SIP only).
Each CallsAccount is represented by a CallsAccountRow.
account-row: Staying alive
2021-07-20 10:17:17 +02:00
Evangelos Ribeiro Tzaras
fadeaeb6b5
main-window: Add menu button
...
This will be used to manage VoIP accounts (SIP), show the About dialog
and so on. We will leave this hidden for now.
2021-07-20 10:17:17 +02:00
Evangelos Ribeiro Tzaras
64bb170efa
account-provider: Repurpose to allow graphical credential editing
2021-07-20 10:17:17 +02:00
Evangelos Ribeiro Tzaras
d5bf31bdaf
manager: Temporarily hold a reference to provider being unloaded
2021-07-20 10:17:17 +02:00
Evangelos Ribeiro Tzaras
2b31a9677e
manager: Emit signal when loaded providers have changed
2021-07-20 10:17:17 +02:00
Evangelos Ribeiro Tzaras
cc3a562f03
manager: Add API to query loaded providers
2021-07-20 10:17:17 +02:00
Evangelos Ribeiro Tzaras
a638b64402
account: Add address property
2021-07-20 10:17:17 +02:00
Evangelos Ribeiro Tzaras
dd3fbf646e
account: Add API to query account state
2021-07-20 10:17:17 +02:00
Evangelos Ribeiro Tzaras
82ff6d0ac5
account: Use explicit notify for account state property
2021-07-20 10:17:17 +02:00