aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-av.c
diff options
context:
space:
mode:
authorTravis Reitter <travis.reitter@collabora.co.uk>2010-10-23 04:06:45 +0800
committerTravis Reitter <travis.reitter@collabora.co.uk>2010-10-30 00:35:09 +0800
commit1cee1d840d87c1cb55ea35b17c58f3d7c69931be (patch)
treee8dc5f8743f7eb210e6b7c4c4c9f409441b10035 /src/empathy-av.c
parentad19fb0668dcd21c0ac82e3c0fc81f6fa03dd92a (diff)
downloadgsoc2013-empathy-1cee1d840d87c1cb55ea35b17c58f3d7c69931be.tar
gsoc2013-empathy-1cee1d840d87c1cb55ea35b17c58f3d7c69931be.tar.gz
gsoc2013-empathy-1cee1d840d87c1cb55ea35b17c58f3d7c69931be.tar.bz2
gsoc2013-empathy-1cee1d840d87c1cb55ea35b17c58f3d7c69931be.tar.lz
gsoc2013-empathy-1cee1d840d87c1cb55ea35b17c58f3d7c69931be.tar.xz
gsoc2013-empathy-1cee1d840d87c1cb55ea35b17c58f3d7c69931be.tar.zst
gsoc2013-empathy-1cee1d840d87c1cb55ea35b17c58f3d7c69931be.zip
Relocate static function to eliminate prototype.
Diffstat (limited to 'src/empathy-av.c')
-rw-r--r--src/empathy-av.c36
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[])