[empathy: 6/7] display_error: Put 'Close' button on the bottom/end



commit bf6ec911f61590159f94d424c1a0632c439623f9
Author: Danielle Madeley <danielle madeley collabora co uk>
Date:   Fri Oct 21 17:21:29 2011 +1100

    display_error: Put 'Close' button on the bottom/end

 src/empathy-call-window.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 9da6b9c..f7efe37 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -2935,8 +2935,7 @@ display_error (EmpathyCallWindow *self,
   gchar *txt;
 
   /* Create info bar */
-  info_bar = gtk_info_bar_new_with_buttons (GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE,
-      NULL);
+  info_bar = gtk_info_bar_new ();
 
   if (button_text != NULL)
     {
@@ -2946,6 +2945,9 @@ display_error (EmpathyCallWindow *self,
           "uri", g_strdup (uri), g_free);
     }
 
+  gtk_info_bar_add_button (GTK_INFO_BAR (info_bar),
+      GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE);
+
   gtk_info_bar_set_message_type (GTK_INFO_BAR (info_bar), GTK_MESSAGE_WARNING);
 
   content_area = gtk_info_bar_get_content_area (GTK_INFO_BAR (info_bar));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]