/////////////////////////////////////////////////////////////////////////////// // Name: src/gtk/infobar.cpp // Purpose: wxInfoBar implementation for GTK // Author: Vadim Zeitlin // Created: 2009-09-27 // Copyright: (c) 2009 Vadim Zeitlin // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// // ============================================================================ // declarations // ============================================================================ // ---------------------------------------------------------------------------- // headers // ---------------------------------------------------------------------------- // for compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif #include "wx/infobar.h" #if wxUSE_INFOBAR && defined(wxHAS_NATIVE_INFOBAR) #ifndef WX_PRECOMP #endif // WX_PRECOMP #include "wx/vector.h" #include "wx/stockitem.h" #include "wx/gtk/private.h" #include "wx/gtk/private/messagetype.h" // ---------------------------------------------------------------------------- // local classes // ---------------------------------------------------------------------------- class wxInfoBarGTKImpl { public: wxInfoBarGTKImpl() { m_label = NULL; m_close = NULL; } // label for the text shown in the bar GtkWidget *m_label; // the default close button, NULL if not needed (m_buttons is not empty) or // not created yet GtkWidget *m_close; // information about the buttons added using AddButton() struct Button { Button(GtkWidget *button_, int id_) : button(button_), id(id_) { } GtkWidget *button; int id; }; typedef wxVector