diff options
-rw-r--r-- | src/empathy-av.c | 36 |
1 files changed, 15 insertions, 21 deletions
diff --git a/src/empathy-av.c b/src/empathy-av.c index 374b947a7..ca8de87d9 100644 --- a/src/empathy-av.c +++ b/src/empathy-av.c @@ -51,7 +51,21 @@ static void new_call_handler_cb (EmpathyCallFactory *factory, EmpathyCallHandler *handler, gboolean outgoing, - gpointer user_data); + gpointer user_data) +{ + EmpathyCallWindow *window; + + DEBUG ("Create a new call window"); + + window = empathy_call_window_new (handler); + + g_application_hold (G_APPLICATION (app)); + + g_signal_connect_swapped (window, "destroy", + G_CALLBACK (g_application_release), app); + + gtk_widget_show (GTK_WIDGET (window)); +} static void activate_cb (GApplication *application) @@ -81,26 +95,6 @@ activate_cb (GApplication *application) } } -static void -new_call_handler_cb (EmpathyCallFactory *factory, - EmpathyCallHandler *handler, - gboolean outgoing, - gpointer user_data) -{ - EmpathyCallWindow *window; - - DEBUG ("Create a new call window"); - - window = empathy_call_window_new (handler); - - g_application_hold (G_APPLICATION (app)); - - g_signal_connect_swapped (window, "destroy", - G_CALLBACK (g_application_release), app); - - gtk_widget_show (GTK_WIDGET (window)); -} - int main (int argc, char *argv[]) |