Anton Lazarev
76697050e8
calls-in-app-notification: migrate to AdwToastOverlay
...
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714 >
2024-04-06 08:15:27 -07:00
Anton Lazarev
78ad3af035
calls-call-window: Adapt to GtkBin removal
...
https://docs.gtk.org/gtk4/migrating-3to4.html#adapt-to-gtkbin-removal
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714 >
2024-04-06 08:15:25 -07:00
Anton Lazarev
f7354a06c6
calls-call-window: Adapt to GtkContainer removal
...
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:25 -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
3e43ba2975
call-window: Remove dead code
2023-04-18 08:34:39 +00:00
Evangelos Ribeiro Tzaras
6ab5905a9b
call-window: Respect object lifecycle for signals
2023-02-01 08:48:35 +01:00
Evangelos Ribeiro Tzaras
bb6b76107c
build: Rename util.{c,h} to calls-util.{c,h}
...
"util" is a very generic name. This guards against accidentally
including similarly named headers from elsewhere.
2023-01-22 07:33:02 +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
3fe976505c
manager: Delay UI Call removal and adjust to changes
...
This was handled explicitly in the Call window.
By changing the logic to delay the emission of "ui-call-removed" we make sure
that the Call UI and the exported DBus object is consistent.
We also need to change the test cases to use run a GMainLoop because we now have
to wait until signal comes in.
2022-02-03 12:37:05 +01:00
Evangelos Ribeiro Tzaras
3d85ef802f
call-window: Take ui-active property into account
...
Only show the display after the "pre-ring" phase has passed.
Fixes #371
2022-02-03 12:37:05 +01:00
Evangelos Ribeiro Tzaras
fa5969892e
call-window: Switch to CallsUiCallData
...
By connecting to the "ui-call-added" and "ui-call-removed" signals instead of
"call-add" and "call-remove".
This allows us to shave off a few lines of code.
2022-02-01 06:11:58 +01: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
cead5ada88
call-window: Use g_assert in private functions
2021-12-20 12:25:18 +01:00
Evangelos Ribeiro Tzaras
2d18667ee7
call-window: Use g_clear_handle_id instead of emulating it
2021-12-05 16:51:26 +01:00
Evangelos Ribeiro Tzaras
8f6ca20a2c
call-window: Clear handle id when hiding call window
...
This fixes GLib criticals like
GLib[464166]:CRITICAL: Source ID 17 was not found when attempting to remove it
2021-12-05 16:50:19 +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
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
dc454837d6
Switch from CallsCallDisplay to CuiCallDisplay
...
Closes #302
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
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
Guido Günther
8bf320e006
Drop layer-surface
...
This drops the layer-surface code to put calls on top of the lockscreen.
This only works with wlroots based compositors and even there makes e.g.
unlocking the screen during a phone calls impossible.
2021-07-12 17:36:24 +02:00
Evangelos Ribeiro Tzaras
6e371d2f3f
resources: Use /org/gnome prefix and adapt to changes
...
In preparation to moving to GNOME all the IDs, DBus object paths, etc should
change.
2021-07-12 13:35:57 +00:00
Evangelos Ribeiro Tzaras
dbb829be06
debug: Add G_LOG_DOMAIN to every file using g_debug()
2021-06-18 11:12:13 +02:00
Evangelos Ribeiro Tzaras
2847508034
Fix missing-declarations warnings all over the codebase
...
As caught by compiling with `-Wmissing-declarations`
by either making functions static, or declaring them in the header.
2021-06-03 19:46:45 +00:00
Guido Günther
55559d91db
window: Don't unhibit with 0 cookie
...
The upper layers do not bother whether there's an inhibitor when
calling uninhibit (and shouldn't) so don't put out out warning
when called with 0 cookie.
Closes : #249
2021-04-01 16:50:51 +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
Evangelos Ribeiro Tzaras
b327aefdbb
call-window: inhibit idle during active call
...
Closes #202
2020-12-27 09:57:34 +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
Evangelos Ribeiro Tzaras
9619ebb674
src/calls-call-window.c: Inhibit suspend during active call
2020-09-09 08:27:14 +00:00
Julian Sparber
5828fad63b
CallWindow: use Manager
...
As a side effect this removes also the disconnect message when a call
ends.
Fixes: https://source.puri.sm/Librem5/calls/issues/119
2020-03-27 12:05:33 +01:00
Julian Sparber
19632e428b
CallWindow: use in-app notification
2020-03-18 11:20:47 +01:00
Julian Sparber
e911f391c6
Use correct parent class when chaining up overridden functions
...
How `g_type_class_peek ()` was used it didn't return the correct parent
class in most cases.
G_DEFINE_TYPE macro creates a pointer we can use to get the parent
class `n_p_parent_class`.
Because we didn't use the correct parent class the object initialisation
wasn't fully completed for some GtkWidgets.
See https://developer.gnome.org/gobject/stable/chapter-gobject.html#gobject-instantiation
for more information.
This commit makes use of the `n_p_parent_class pointer` created for this
specific use case where ever possible.
Fixes: https://source.puri.sm/Librem5/calls/issues/118
2020-02-19 12:49:58 +01:00
Bob Ham
3201c8e69b
Display call window over the phosh lockscreen
...
Closes #41
2019-09-06 14:58:08 +01:00
Bob Ham
b0d9918f5a
Update UI to better reflect the design
...
* Make the Answer button look nice and laid out properly.
* Merge the time and status labels, displaying simply the text
"Calling..." until the call becomes active and then the call time
afterwards.
* Fix info display bar in both the call and main windows so they use a
GtkRevealer and work a lot better.
* Add a "new-call-symbolic" icon for the "Add call" button.
* General tweaks and clean-ups
Closes #55
Closes #35
2019-06-28 15:14:45 +01:00
Bob Ham
400c2fc041
src: Remove mutual reference between call -holder and -selector-item
2018-11-30 16:48:25 +00:00
Bob Ham
74c3987ce1
src: Generalise Provider object enumeration with calls_enumerate()
2018-11-01 11:14:49 +00:00
Bob Ham
3917edbcdb
call-window: Reference selector item widget in creation callback
...
The return value of this callback, used for the call selector flow
box, should have a reference added to it. The callback's return value
is annotated as "transfer full".
2018-10-10 09:13:54 +00:00
Bob Ham
ef976cee04
call-window: Remove display and holder in the right order
...
In the current order, the holder is finalized before we can get the
display, causing an error. We just have to switch the two around
2018-10-10 09:13:54 +00:00
Bob Ham
903782d90d
call-window: Fix leak of initial CallHolder reference
...
Closes #20
2018-10-10 08:56:00 +00:00
Bob Ham
88e11d62b5
call-window: Don't maintain unneeded focus pointer
...
Closes #19
2018-10-10 08:56:00 +00:00
Bob Ham
f60187c547
call-window: Fix leak of references returned by g_list_model_get_item()
...
Closes #18
2018-10-10 08:56:00 +00:00
Bob Ham
8d3ec069eb
call-window: Don't update visibility unnecessarily
...
We only need to update visibility when the number of calls changes.
2018-10-09 14:44:04 +00:00
Bob Ham
9aa34cceff
src: Give the Provider to the CallWindow on construction
...
This allows us to get rid of the signals on the MainWindow and
simplifies things dramatically.
2018-10-08 10:40:02 +00:00
Adrien Plazas
b547c344e5
Add CallsCallWindow
2018-10-01 08:18:28 +02:00