+GtkWidget *wxInfoBar::GTKAddButton(wxWindowID btnid, const wxString& label)
+{
+ // as GTK+ lays out the buttons vertically, adding another button changes
+ // our best size (at least in vertical direction)
+ InvalidateBestSize();
+
+ GtkWidget *button = gtk_info_bar_add_button
+ (
+ GTK_INFO_BAR(m_widget),
+ (label.empty()
+ ? GTKConvertMnemonics(wxGetStockGtkID(btnid))
+ : label).utf8_str(),
+ btnid
+ );
+
+ wxASSERT_MSG( button, "unexpectedly failed to add button to info bar" );
+
+ return button;