[empathy] Relocate static function to eliminate prototype.
- From: Travis Reitter <treitter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] Relocate static function to eliminate prototype.
- Date: Fri, 29 Oct 2010 16:36:04 +0000 (UTC)
commit 1cee1d840d87c1cb55ea35b17c58f3d7c69931be
Author: Travis Reitter <travis reitter collabora co uk>
Date: Fri Oct 22 13:06:45 2010 -0700
Relocate static function to eliminate prototype.
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 374b947..ca8de87 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[])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]