diff options
author | Travis Reitter <travis.reitter@collabora.co.uk> | 2010-10-22 13:06:45 -0700 |
---|---|---|
committer | Travis Reitter <travis.reitter@collabora.co.uk> | 2010-10-29 09:35:09 -0700 |
commit | 1cee1d840d87c1cb55ea35b17c58f3d7c69931be (patch) | |
tree | e8dc5f8743f7eb210e6b7c4c4c9f409441b10035 /src | |
parent | ad19fb0668dcd21c0ac82e3c0fc81f6fa03dd92a (diff) |
Relocate static function to eliminate prototype.
Diffstat (limited to 'src')
-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[]) |