[empathy] accounts-plugin-widget: keep a ref on the 'Done' button
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] accounts-plugin-widget: keep a ref on the 'Done' button
- Date: Mon, 6 Aug 2012 14:02:32 +0000 (UTC)
commit 542d2b972846a8ef2f2465393f2e3dfd54472697
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Mon Aug 6 16:01:43 2012 +0200
accounts-plugin-widget: keep a ref on the 'Done' button
.../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 8a16904..c1ba45f 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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]