diff options
author | Travis Reitter <travis.reitter@collabora.co.uk> | 2010-10-22 05:22:16 +0800 |
---|---|---|
committer | Travis Reitter <travis.reitter@collabora.co.uk> | 2010-10-22 08:42:40 +0800 |
commit | 29fd0970e4c60963117322c3d067b93fa9461293 (patch) | |
tree | b015882eda002f14ae7363f0c91a18f55d24a5e7 /src | |
parent | 063c4fb406eda4278493cc3ee24ad63a12b83996 (diff) | |
download | gsoc2013-empathy-29fd0970e4c60963117322c3d067b93fa9461293.tar gsoc2013-empathy-29fd0970e4c60963117322c3d067b93fa9461293.tar.gz gsoc2013-empathy-29fd0970e4c60963117322c3d067b93fa9461293.tar.bz2 gsoc2013-empathy-29fd0970e4c60963117322c3d067b93fa9461293.tar.lz gsoc2013-empathy-29fd0970e4c60963117322c3d067b93fa9461293.tar.xz gsoc2013-empathy-29fd0970e4c60963117322c3d067b93fa9461293.tar.zst gsoc2013-empathy-29fd0970e4c60963117322c3d067b93fa9461293.zip |
Port core Empathy to new G/tkApplication.
Helps bgo#632846.
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/empathy.c b/src/empathy.c index 314e4fb0f..b9174ad52 100644 --- a/src/empathy.c +++ b/src/empathy.c @@ -231,8 +231,7 @@ empathy_app_set_property (GObject *object, } static void -empathy_app_activated (GtkApplication *app, - GVariant *args) +empathy_app_activate (GApplication *app) { EmpathyApp *self = (EmpathyApp *) app; @@ -254,7 +253,7 @@ static void empathy_app_class_init (EmpathyAppClass *klass) { GObjectClass *gobject_class = G_OBJECT_CLASS (klass); - GtkApplicationClass *gtk_app_class = GTK_APPLICATION_CLASS (klass); + GApplicationClass *g_app_class = G_APPLICATION_CLASS (klass); GParamSpec *spec; gobject_class->set_property = empathy_app_set_property; @@ -262,7 +261,7 @@ empathy_app_class_init (EmpathyAppClass *klass) gobject_class->dispose = empathy_app_dispose; gobject_class->finalize = empathy_app_finalize; - gtk_app_class->activated = empathy_app_activated; + g_app_class->activate = empathy_app_activate; spec = g_param_spec_boolean ("no-connect", "no connect", "Don't connect on startup", @@ -696,7 +695,7 @@ main (int argc, char *argv[]) app = empathy_app_new (argc, (const gchar * const *) argv, no_connect, start_hidden); - gtk_application_run (GTK_APPLICATION (app)); + g_application_run (G_APPLICATION (app), argc, argv); notify_uninit (); xmlCleanupParser (); |