display_error: Put 'Close' button on the bottom/end
authorDanielle Madeley <danielle.madeley@collabora.co.uk>
Fri, 21 Oct 2011 06:21:29 +0000 (17:21 +1100)
committerDanielle Madeley <danielle.madeley@collabora.co.uk>
Fri, 21 Oct 2011 06:21:29 +0000 (17:21 +1100)
src/empathy-call-window.c

index 9da6b9ced3c0b3faeb4b47650dd5231009a20480..f7efe37a2b6ec321a00b4baa0711a4e90af8f6f9 100644 (file)
@@ -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));