]> git.saurik.com Git - wxWidgets.git/commitdiff
Corrected frame.cpp to recognise wxNO_BORDER properly
authorJulian Smart <julian@anthemion.co.uk>
Mon, 11 Sep 2000 13:02:54 +0000 (13:02 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 11 Sep 2000 13:02:54 +0000 (13:02 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8328 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/frame.cpp
src/gtk1/frame.cpp

index a8f5c7644d956805469e637648633ce65e087e65..23b5ea9c9f3d1e82c279fb61349fc6b0f0bb2ecd 100644 (file)
@@ -252,7 +252,7 @@ gtk_frame_realized_callback( GtkWidget * WXUNUSED(widget), wxFrame *win )
     if (g_isIdle)
         wxapp_install_idle_handler();
 
-    if ((win->m_miniEdge > 0) || (win->HasFlag(wxSIMPLE_BORDER)))
+    if ((win->m_miniEdge > 0) || (win->HasFlag(wxSIMPLE_BORDER)) || (win->HasFlag(wxNO_BORDER)))
     {
         /* This is a mini-frame or a borderless frame. */
         gdk_window_set_decorations( win->m_widget->window, (GdkWMDecoration)0 );
index a8f5c7644d956805469e637648633ce65e087e65..23b5ea9c9f3d1e82c279fb61349fc6b0f0bb2ecd 100644 (file)
@@ -252,7 +252,7 @@ gtk_frame_realized_callback( GtkWidget * WXUNUSED(widget), wxFrame *win )
     if (g_isIdle)
         wxapp_install_idle_handler();
 
-    if ((win->m_miniEdge > 0) || (win->HasFlag(wxSIMPLE_BORDER)))
+    if ((win->m_miniEdge > 0) || (win->HasFlag(wxSIMPLE_BORDER)) || (win->HasFlag(wxNO_BORDER)))
     {
         /* This is a mini-frame or a borderless frame. */
         gdk_window_set_decorations( win->m_widget->window, (GdkWMDecoration)0 );