From 1cee1d840d87c1cb55ea35b17c58f3d7c69931be Mon Sep 17 00:00:00 2001 From: Travis Reitter Date: Fri, 22 Oct 2010 13:06:45 -0700 Subject: Relocate static function to eliminate prototype. --- src/empathy-av.c | 36 +++++++++++++++--------------------- 1 file 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[]) -- cgit v1.2.3