+ win->m_oldX = x - win->m_diffX;
+ win->m_oldY = y - win->m_diffY;
+
+ int org_x = 0;
+ int org_y = 0;
+ gdk_window_get_origin( widget->window, &org_x, &org_y );
+ x += org_x - win->m_diffX;
+ y += org_y - win->m_diffY;
+ win->m_x = x;
+ win->m_y = y;
+ gtk_window_move( GTK_WINDOW(win->m_widget), x, y );
+
+
+ return TRUE;
+}
+}
+
+//-----------------------------------------------------------------------------
+// wxMiniFrame
+//-----------------------------------------------------------------------------
+
+static unsigned char close_bits[]={
+ 0xff, 0xff, 0xff, 0xff, 0x07, 0xf0, 0xfb, 0xef, 0xdb, 0xed, 0x8b, 0xe8,
+ 0x1b, 0xec, 0x3b, 0xee, 0x1b, 0xec, 0x8b, 0xe8, 0xdb, 0xed, 0xfb, 0xef,
+ 0x07, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
+
+
+IMPLEMENT_DYNAMIC_CLASS(wxMiniFrame,wxFrame)
+
+bool wxMiniFrame::Create( wxWindow *parent, wxWindowID id, const wxString &title,
+ const wxPoint &pos, const wxSize &size,
+ long style, const wxString &name )
+{
+ if ((style & wxCAPTION) || (style & wxTINY_CAPTION_HORIZ) || (style & wxTINY_CAPTION_VERT))
+ m_miniTitle = 16;
+
+ if (style & wxRESIZE_BORDER)
+ m_miniEdge = 4;
+ else
+ m_miniEdge = 3;
+ m_isDragging = false;
+ m_oldX = -1;
+ m_oldY = -1;
+ m_diffX = 0;
+ m_diffY = 0;
+
+ wxFrame::Create( parent, id, title, pos, size, style, name );
+
+ if (m_parent && (GTK_IS_WINDOW(m_parent->m_widget)))