Anton Lazarev
b32faf39f8
main-window: Replace vbox internal-child with content_area
...
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714 >
2024-04-06 08:15:27 -07:00
Anton Lazarev
732388303a
main-window: Stop setting ::has-default
...
https://docs.gtk.org/gtk4/migrating-3to4.html#stop-setting-has-default-and-has-focus-in-ui-files
Oddly, there were previously 2 different default widgets? I just chose
the first one.
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714 >
2024-04-06 08:15:27 -07:00
Anton Lazarev
36f19d5e9f
treewide: Remove GtkWindow::hide-titlebar-when-maximized
...
92b0d2e8ea
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714 >
2024-04-06 08:15:26 -07:00
Anton Lazarev
a21b2b7d4a
treewide: Replace gtk_widget_hide_on_delete with hide-on-close property
...
The `delete-event` signal was removed in GTK4.
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714 >
2024-04-06 08:15:26 -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
1b567131b7
main-window: Adapt to View Switcher API Changes
...
https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/migrating-libhandy-1-4-to-libadwaita.html#adapt-to-view-switcher-api-changes
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714 >
2024-04-06 08:15:26 -07:00
Anton Lazarev
b73016ac8c
main-window: Stop using GtkContainer::border-width
...
https://docs.gtk.org/gtk4/migrating-3to4.html#stop-using-gtkcontainerborder-width
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
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
2141c1ffc2
in-app-notification: compose with GtkBin instead of subclassing GtkRevealer
...
Note that the GtkOverlay must pass-through interactions for this to
work, meaning it's no longer possible to interact with the
notifications. I'm leaving it like this since I'll need to replace it
with AdwToast later anyways.
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714 >
2024-04-01 18:37:57 -07:00
Guido Günther
c893a44f9f
main-window: Add translator comment to not translate the application name
2022-08-23 17:41:17 +00: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
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
241909c942
main-window: Fix the action name for the about dialog
2021-07-20 10:18:03 +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
Adrien Plazas
d4ee8b4bc9
main-window: Fix the indentation
...
It was purposefully left broken to ease code review.
2021-07-16 08:43:43 +00:00
Adrien Plazas
f4f41d9db5
main-window: Make it a HdyApplicationWindow
...
This gives the window some nice rounded corners, and gives us more
freedom in how to implement the UI.
This purposefully leaves the indentation broken to ease code review, it
will be fixed in the next commit.
2021-07-16 08:43:43 +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
Mohammed Sadiq
1c89bf292c
main-window: Add dialog to handle USSD
2020-11-03 08:19:03 +05:30
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
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
Julian Sparber
a9bd1ebae6
MainWindow: show error message when making calls isn't possible
2020-03-30 15:00:06 +00:00
Julian Sparber
e7c248ea30
MainWindow: use in-app notification for messages
...
This replaces the infobar with a in-app notification.
2020-03-18 11:20:47 +01:00
Bob Ham
6a4dbe6b18
ui/main-window: Hide contacts pane
...
While we have no integration with Contacts, the contacts pane
shouldn't be visible.
Closes #83
2019-09-18 13:38:48 +01:00
Bob Ham
3c22bc9154
Hook up Recent Calls list to database
...
Closes use-cases#113
Closes use-cases#115
2019-08-01 14:39:55 +01:00
Tobias Bernard
aee2b247ca
Switcher: symbolic icons, label capitalization
2019-07-03 14:55:09 +02:00
Bob Ham
251e3b0076
calls-main-window: Use HdyViewSwitcher and friends
...
Use HdyViewSwitcher to navigate between the dial pad, call history and
a contacts list.
Closes #56
2019-07-03 13:39:25 +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
Mohammed Sadiq
d62976a9a1
window: hide windows on delete
...
As calls is supposed to run always in background,
destroying window on close results in unintended issues.
Let's simply hide the window instead.
2019-01-29 11:36:38 +05:30
Bob Ham
f4eae98458
main-window,new-call-box: Move origin store from MainWindow to NewCallBox
...
The main window has no need to store origins now so this simplifies
things dramatically.
2018-10-08 10:16:04 +00:00
Adrien Plazas
7682aa1029
main-window: Move calls history before the new call box
...
This makes the calls history the page visible by default, matching the
final design.
2018-10-01 08:41:55 +02:00
Adrien Plazas
e0a1329218
main-window: Replace the stack switcher by a header bar
...
Drop the in-window content stack witcher and replace it by a header bar
containing both a CallsHistoryHeaderBar and a CallsNewCallHeaderBar.
2018-10-01 08:41:55 +02:00
Adrien Plazas
65d7943e88
main-window: Don't display calls
2018-10-01 08:18:28 +02:00
Adrien Plazas
6d921bd667
main-window: Fix the title
2018-08-29 09:05:57 +02:00
Adrien Plazas
b05c6e34e2
main-window: Use a new call box
...
Replace the custom inplementation of a call box by a CallsNewCallBox
which is used to dial new calls and not to send DTMF tones as the call
display can now handle that.
2018-08-29 09:05:57 +02:00
Adrien Plazas
a07b0b8382
main-window: Drop the new call expander
...
It is not needed anymore as the call display can send DTMF tones itself,
so instead let the dial pad always be available to send new calls.
2018-08-29 09:05:57 +02:00
Adrien Plazas
0d98e17b05
main-window: Use CallsHistoryBox
...
This helps the window to be only a glue in between the actual UI
elements instead of handling a lot of the UI.
2018-08-29 09:05:57 +02:00
Bob Ham
5abe9cad4e
main-window.ui: Make sure message text wraps
2018-05-21 16:47:18 +01:00
Bob Ham
07eb23da0f
Initial import of cleaned Calls working tree
2018-05-17 14:16:51 +01:00