diff options
author | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2012-07-26 20:46:07 +0800 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2012-07-30 14:56:45 +0800 |
commit | b3a5be48436877d8cf89569b6724db2a5eb45cb5 (patch) | |
tree | 1def8999bfd9477effa27658dd923bdb8e6d31ba /ubuntu-online-accounts/cc-plugins/app-plugin/empathy-app-plugin.c | |
parent | 671a16046a634beefc524bc24a2e7eebdee480a5 (diff) | |
download | gsoc2013-empathy-b3a5be48436877d8cf89569b6724db2a5eb45cb5.tar gsoc2013-empathy-b3a5be48436877d8cf89569b6724db2a5eb45cb5.tar.gz gsoc2013-empathy-b3a5be48436877d8cf89569b6724db2a5eb45cb5.tar.bz2 gsoc2013-empathy-b3a5be48436877d8cf89569b6724db2a5eb45cb5.tar.lz gsoc2013-empathy-b3a5be48436877d8cf89569b6724db2a5eb45cb5.tar.xz gsoc2013-empathy-b3a5be48436877d8cf89569b6724db2a5eb45cb5.tar.zst gsoc2013-empathy-b3a5be48436877d8cf89569b6724db2a5eb45cb5.zip |
add empathy-app-plugin-widget
https://bugzilla.gnome.org/show_bug.cgi?id=680449
Diffstat (limited to 'ubuntu-online-accounts/cc-plugins/app-plugin/empathy-app-plugin.c')
-rw-r--r-- | ubuntu-online-accounts/cc-plugins/app-plugin/empathy-app-plugin.c | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/ubuntu-online-accounts/cc-plugins/app-plugin/empathy-app-plugin.c b/ubuntu-online-accounts/cc-plugins/app-plugin/empathy-app-plugin.c index b9501efcf..43b86ad96 100644 --- a/ubuntu-online-accounts/cc-plugins/app-plugin/empathy-app-plugin.c +++ b/ubuntu-online-accounts/cc-plugins/app-plugin/empathy-app-plugin.c @@ -22,14 +22,31 @@ #include "empathy-app-plugin.h" +#include "empathy-app-plugin-widget.h" G_DEFINE_TYPE (EmpathyAppPlugin, empathy_app_plugin, AP_TYPE_APPLICATION_PLUGIN) +static void +widget_done_cb (EmpathyAppPluginWidget *widget, + ApApplicationPlugin *plugin) +{ + ap_application_plugin_emit_finished (plugin); +} + static GtkWidget * empathy_app_plugin_build_widget (ApApplicationPlugin *plugin) { - /* TODO */ - return NULL; + GtkWidget *widget; + + widget = empathy_app_plugin_widget_new ( + ap_application_plugin_get_account (plugin)); + + g_signal_connect (widget, "done", + G_CALLBACK (widget_done_cb), plugin); + + gtk_widget_show (widget); + + return widget; } static void |