[empathy] Cut out unnecessary empathy_app_new().
- From: Travis Reitter <treitter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] Cut out unnecessary empathy_app_new().
- Date: Fri, 29 Oct 2010 16:35:34 +0000 (UTC)
commit 4c8dc9d04de6f80c8e5406495e71d0dca9f73369
Author: Travis Reitter <travis reitter collabora co uk>
Date: Fri Oct 22 11:47:29 2010 -0700
Cut out unnecessary empathy_app_new().
src/empathy.c | 30 +++---------------------------
1 files changed, 3 insertions(+), 27 deletions(-)
---
diff --git a/src/empathy.c b/src/empathy.c
index 1081fd1..b2005f1 100644
--- a/src/empathy.c
+++ b/src/empathy.c
@@ -175,31 +175,6 @@ static void account_manager_ready_cb (GObject *source_object,
GAsyncResult *result,
gpointer user_data);
-static EmpathyApp *
-empathy_app_new (guint argc,
- const gchar * const * argv,
- gboolean no_connect,
- gboolean start_hidden)
-{
- EmpathyApp *self;
- GError *error = NULL;
- GVariant *argv_variant;
-
- argv_variant = g_variant_new_bytestring_array (argv, argc);
-
- self = g_object_new (EMPATHY_TYPE_APP,
- "application-id", EMPATHY_DBUS_NAME,
- NULL);
-
- if (self == NULL)
- {
- g_critical ("Failed to initiate EmpathyApp: %s", error->message);
- g_error_free (error);
- }
-
- return self;
-}
-
static void
empathy_app_set_property (GObject *object,
guint prop_id,
@@ -683,8 +658,9 @@ main (int argc, char *argv[])
empathy_gtk_init ();
- app = empathy_app_new (argc, (const gchar * const *) argv,
- no_connect, start_hidden);
+ app = g_object_new (EMPATHY_TYPE_APP,
+ "application-id", EMPATHY_DBUS_NAME,
+ NULL);
g_application_run (G_APPLICATION (app), argc, argv);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]