summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2008-12-26 21:18:55 (GMT)
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2008-12-26 21:18:55 (GMT)
commitdc147922869509b3008e23484f8574a7ffc206d6 (patch)
tree1368655997f1c9837c2cd22eba96348af3744f33
parent7f0ced1fbd4b4ab57f9ceb882f665aaf8fb42800 (diff)
downloadtictactube-dc147922869509b3008e23484f8574a7ffc206d6.tar.gz
tictactube-dc147922869509b3008e23484f8574a7ffc206d6.tar.xz
Cope with the fact that there is no initiator property anymore
-rw-r--r--src/ttt-ui.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/ttt-ui.c b/src/ttt-ui.c
index 9d239be..65b6e0b 100644
--- a/src/ttt-ui.c
+++ b/src/ttt-ui.c
@@ -23,6 +23,9 @@
#include <glib/gprintf.h>
#include <gtk/gtk.h>
+#include <libempathy/empathy-contact-factory.h>
+
+
#include "empathy-contact-selector.h"
#include "ttt-game.h"
@@ -857,8 +860,19 @@ ttt_ui_invitation_dialog (TttUi *ui,
TttUiPriv *priv = GET_PRIV (ui);
GtkWidget *dialog;
EmpathyContact *contact;
+ TpChannel *channel;
+ gchar *msg;
+ TpHandle handle;
+ McAccount *account;
+ EmpathyContactFactory *factory;
+
+ g_object_get (G_OBJECT (tube), "channel", &channel, NULL);
+
+ factory = empathy_contact_factory_new ();
+ account = empathy_channel_get_account (channel);
- g_object_get (G_OBJECT (tube), "initiator-contact", &contact, NULL);
+ handle = tp_channel_get_handle (channel, NULL);
+ contact = empathy_contact_factory_get_from_handle (factory, account, handle);
empathy_contact_run_until_ready (contact, EMPATHY_CONTACT_READY_ALL, NULL);
@@ -878,4 +892,7 @@ ttt_ui_invitation_dialog (TttUi *ui,
gtk_widget_show_all (GTK_WIDGET (dialog));
g_object_unref (contact);
+ g_object_unref (channel);
+ g_object_unref (factory);
+ g_object_unref (account);
}