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.
This commit is contained in:
Bob Ham
2018-10-08 10:40:02 +00:00
parent 1843d72ad1
commit 9aa34cceff
4 changed files with 110 additions and 65 deletions

View File

@@ -30,6 +30,7 @@
#include <gtk/gtk.h>
#include "calls-call.h"
#include "calls-provider.h"
G_BEGIN_DECLS
@@ -37,9 +38,8 @@ G_BEGIN_DECLS
G_DECLARE_FINAL_TYPE (CallsCallWindow, calls_call_window, CALLS, CALL_WINDOW, GtkApplicationWindow);
CallsCallWindow *calls_call_window_new (GtkApplication *application);
void calls_call_window_add_call (CallsCallWindow *self, CallsCall *call);
void calls_call_window_remove_call (CallsCallWindow *self, CallsCall *call, const gchar *reason);
CallsCallWindow *calls_call_window_new (GtkApplication *application,
CallsProvider *provider);
G_END_DECLS