X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ed8efd46d9c8fa3bf5d10b2a6efd295a6dd71bdb..fc672a2aba52bee363e606707ce0e1848cfec79b:/src/gtk/infobar.cpp diff --git a/src/gtk/infobar.cpp b/src/gtk/infobar.cpp index 604838abfc..f6ceee09db 100644 --- a/src/gtk/infobar.cpp +++ b/src/gtk/infobar.cpp @@ -3,7 +3,7 @@ // Purpose: wxInfoBar implementation for GTK // Author: Vadim Zeitlin // Created: 2009-09-27 -// RCS-ID: $Id: wxhead.cpp,v 1.10 2009-06-29 10:23:04 zeitlin Exp $ +// RCS-ID: $Id$ // Copyright: (c) 2009 Vadim Zeitlin // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -30,9 +30,49 @@ #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