X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ba71852396a76dcb0e9432edd7c57e09cdd94e65..1d6560d796aefb5dbdf217109767b1054c68c291:/src/gtk1/minifram.cpp?ds=sidebyside diff --git a/src/gtk1/minifram.cpp b/src/gtk1/minifram.cpp index c23782237b..738123f286 100644 --- a/src/gtk1/minifram.cpp +++ b/src/gtk1/minifram.cpp @@ -7,10 +7,13 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation "minifram.h" +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) + #pragma implementation "minifram.h" #endif +// For compilers that support precompilation, includes "wx.h". +#include "wx/wxprec.h" + #include "wx/minifram.h" #if wxUSE_MINIFRAME @@ -386,4 +389,15 @@ bool wxMiniFrame::Create( wxWindow *parent, wxWindowID id, const wxString &title return TRUE; } +void wxMiniFrame::SetTitle( const wxString &title ) +{ + wxFrame::SetTitle( title ); + +#ifdef __WXGTK20__ + gdk_window_invalidate_rect( GTK_PIZZA(m_mainWidget)->bin_window, NULL, true ); +#else + gtk_widget_draw( m_mainWidget, (GdkRectangle*) NULL ); +#endif +} + #endif