From ef6264b648b0ef50f25753cffc64c515494721e7 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 13 Jul 2012 15:18:39 +0200 Subject: account-plugin-widget: display the top bar and account widget https://bugzilla.gnome.org/show_bug.cgi?id=680448 --- .../cc-plugins/empathy-accounts-plugin.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin.c') diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin.c b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin.c index 517ba5272..cbbe90b3e 100644 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin.c +++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin.c @@ -26,10 +26,24 @@ G_DEFINE_TYPE (EmpathyAccountsPlugin, empathy_accounts_plugin, AP_TYPE_PLUGIN) +static void +widget_done_cb (EmpathyAccountsPluginWidget *widget, + ApPlugin *plugin) +{ + ap_plugin_emit_finished (plugin); +} + static GtkWidget * empathy_accounts_plugin_build_widget (ApPlugin *plugin) { - return empathy_accounts_plugin_widget_new (ap_plugin_get_account (plugin)); + GtkWidget *widget; + + widget = empathy_accounts_plugin_widget_new (ap_plugin_get_account (plugin)); + + g_signal_connect (widget, "done", + G_CALLBACK (widget_done_cb), plugin); + + return widget; } static void @@ -43,7 +57,6 @@ empathy_accounts_plugin_delete_account (ApPlugin *plugin, static void empathy_accounts_plugin_act_headless (ApPlugin *plugin) { - /* TODO */ } static void -- cgit v1.2.3