[empathy] Port core Empathy to new G/tkApplication.
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] Port core Empathy to new G/tkApplication.
- Date: Fri, 22 Oct 2010 12:08:58 +0000 (UTC)
commit 29fd0970e4c60963117322c3d067b93fa9461293
Author: Travis Reitter <travis reitter collabora co uk>
Date: Thu Oct 21 14:22:16 2010 -0700
Port core Empathy to new G/tkApplication.
Helps bgo#632846.
src/empathy.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/empathy.c b/src/empathy.c
index 314e4fb..b9174ad 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 ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]