]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/minifram.cpp
adding explicit copy and assignment
[wxWidgets.git] / src / gtk1 / minifram.cpp
index a7803836b3e9ddb6b1ae03a36e7d4c9c40597a7b..f0ad104feaaa404c0975827a8fc4cb8f4c655c87 100644 (file)
@@ -21,6 +21,7 @@
 #include "gtk/gtk.h"
 #include "wx/gtk1/win_gtk.h"
 #include "wx/gtk1/private.h"
+#include "wx/gtk1/dcclient.h"
 
 #include <gdk/gdk.h>
 #include <gdk/gdkprivate.h>
@@ -103,7 +104,7 @@ static void gtk_window_own_expose_callback( GtkWidget *widget, GdkEventExpose *g
         gdk_gc_unref( gc );
 
         // Hack alert
-        dc.m_window = pizza->bin_window;
+        wx_static_cast(wxClientDCImpl *, dc.GetImpl())->m_window = pizza->bin_window;
         dc.SetTextForeground( *wxWHITE );
         dc.DrawText( win->GetTitle(), 6, 3 );
     }
@@ -149,7 +150,7 @@ static void gtk_window_own_draw_callback( GtkWidget *widget, GdkRectangle *WXUNU
         gdk_gc_unref( gc );
 
         // Hack alert
-        dc.m_window = pizza->bin_window;
+        wx_static_cast(wxClientDCImpl *, dc.GetImpl())->m_window = pizza->bin_window;
         dc.SetTextForeground( *wxWHITE );
         dc.DrawText( win->GetTitle(), 6, 3 );
     }