]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/minifram.cpp
added mingw32 host platform to configure.in, added WINVER define for windows
[wxWidgets.git] / src / gtk / minifram.cpp
index e4267e0a7fc8875a49f174f8bf5dc43518efcf01..ee93f8546cc811b76b80411eb69b59a82d3a4021 100644 (file)
@@ -12,6 +12,9 @@
 #endif
 
 #include "wx/minifram.h"
 #endif
 
 #include "wx/minifram.h"
+
+#if wxUSE_MINIFRAME
+
 #include "wx/dcscreen.h"
 
 #include "gtk/gtk.h"
 #include "wx/dcscreen.h"
 
 #include "gtk/gtk.h"
@@ -209,7 +212,8 @@ static gint gtk_window_button_release_callback( GtkWidget *widget, GdkEventButto
     gdk_window_get_origin( widget->window, &org_x, &org_y );
     x += org_x - win->m_diffX;
     y += org_y - win->m_diffY;
     gdk_window_get_origin( widget->window, &org_x, &org_y );
     x += org_x - win->m_diffX;
     y += org_y - win->m_diffY;
-    win->InternalSetPosition(x, y);
+    win->m_x = x;
+    win->m_y = y;
     gtk_widget_set_uposition( win->m_widget, x, y );
 
     return TRUE;
     gtk_widget_set_uposition( win->m_widget, x, y );
 
     return TRUE;
@@ -317,3 +321,5 @@ bool wxMiniFrame::Create( wxWindow *parent, wxWindowID id, const wxString &title
 
     return TRUE;
 }
 
     return TRUE;
 }
+
+#endif