diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-08-06 22:01:43 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-08-06 22:02:23 +0800 |
commit | 542d2b972846a8ef2f2465393f2e3dfd54472697 (patch) | |
tree | fb44d2c43e18c14fe1189b39d2019d39c31ebd2b | |
parent | 10fa43636c077e1d201e43756516be76a210c2aa (diff) | |
download | gsoc2013-empathy-542d2b972846a8ef2f2465393f2e3dfd54472697.tar gsoc2013-empathy-542d2b972846a8ef2f2465393f2e3dfd54472697.tar.gz gsoc2013-empathy-542d2b972846a8ef2f2465393f2e3dfd54472697.tar.bz2 gsoc2013-empathy-542d2b972846a8ef2f2465393f2e3dfd54472697.tar.lz gsoc2013-empathy-542d2b972846a8ef2f2465393f2e3dfd54472697.tar.xz gsoc2013-empathy-542d2b972846a8ef2f2465393f2e3dfd54472697.tar.zst gsoc2013-empathy-542d2b972846a8ef2f2465393f2e3dfd54472697.zip |
accounts-plugin-widget: keep a ref on the 'Done' button
-rw-r--r-- | ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-widget.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-widget.c b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-widget.c index 8a16904fb..c1ba45f9a 100644 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-widget.c +++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-widget.c @@ -173,8 +173,11 @@ create_top_bar (EmpathyAccountsPluginWidget *self) bar = gtk_info_bar_new_with_buttons ( GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, - _("Done"), GTK_RESPONSE_OK, NULL); + + self->priv->done_button = gtk_info_bar_add_button (GTK_INFO_BAR (bar), + _("Done"), GTK_RESPONSE_OK); + gtk_widget_set_hexpand (bar, TRUE); gtk_info_bar_set_message_type (GTK_INFO_BAR (bar), GTK_MESSAGE_QUESTION); action = gtk_info_bar_get_action_area (GTK_INFO_BAR (bar)); |