1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-06-28 14:49:30 +00:00

Display calls in the call window.

This commit is contained in:
Adrien Plazas 2018-08-01 12:57:40 +02:00
parent b547c344e5
commit 09670ea9c8

View file

@ -27,6 +27,7 @@
#define HANDY_USE_UNSTABLE_API #define HANDY_USE_UNSTABLE_API
#include <handy.h> #include <handy.h>
#include "calls-call-window.h"
#include "calls-encryption-indicator.h" #include "calls-encryption-indicator.h"
#include "calls-history-box.h" #include "calls-history-box.h"
#include "calls-main-window.h" #include "calls-main-window.h"
@ -41,6 +42,7 @@ show_window (GtkApplication *app)
GDBusConnection *connection; GDBusConnection *connection;
CallsProvider *provider; CallsProvider *provider;
CallsMainWindow *main_window; CallsMainWindow *main_window;
CallsCallWindow *call_window;
CALLS_TYPE_ENCRYPTION_INDICATOR; CALLS_TYPE_ENCRYPTION_INDICATOR;
CALLS_TYPE_HISTORY_BOX; CALLS_TYPE_HISTORY_BOX;
@ -63,6 +65,13 @@ show_window (GtkApplication *app)
gtk_window_set_title (GTK_WINDOW (main_window), "Calls"); gtk_window_set_title (GTK_WINDOW (main_window), "Calls");
gtk_widget_show_all (GTK_WIDGET (main_window)); gtk_widget_show_all (GTK_WIDGET (main_window));
call_window = calls_call_window_new (app);
g_signal_connect_swapped (main_window, "call-added",
G_CALLBACK (calls_call_window_add_call), call_window);
g_signal_connect_swapped (main_window, "call-removed",
G_CALLBACK (calls_call_window_remove_call), call_window);
} }
int int