]> git.saurik.com Git - wxWidgets.git/commitdiff
Added a border around dialogs. Has anyone got a better solution?
authorKarsten Ballüder <ballueder@usa.net>
Wed, 3 Nov 1999 15:53:18 +0000 (15:53 +0000)
committerKarsten Ballüder <ballueder@usa.net>
Wed, 3 Nov 1999 15:53:18 +0000 (15:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/dialog.cpp
src/gtk1/dialog.cpp

index a892614cb15f586fc1183006a016bf820fc15032..0b7bc6e2dfa15c07456cf59e2fbb39430da88d22 100644 (file)
@@ -127,6 +127,14 @@ gtk_dialog_realized_callback( GtkWidget *widget, wxDialog *win )
        recognized by other WM as well. not tested. */
     long decor = (long) GDK_DECOR_BORDER;
     long func = (long) GDK_FUNC_MOVE ;
+
+    /* Some WM don't display any border around the frame contents if
+       used with these hints, so we add a resize border around it,
+       without automatically allowinng it to be resized though.
+
+       This avoids the problem, but looks odd. What shall we do?
+    */
+    decor |= GDK_DECOR_RESIZEH;
     
     if ((win->GetWindowStyle() & wxCAPTION) != 0)
         decor |= GDK_DECOR_TITLE;
index a892614cb15f586fc1183006a016bf820fc15032..0b7bc6e2dfa15c07456cf59e2fbb39430da88d22 100644 (file)
@@ -127,6 +127,14 @@ gtk_dialog_realized_callback( GtkWidget *widget, wxDialog *win )
        recognized by other WM as well. not tested. */
     long decor = (long) GDK_DECOR_BORDER;
     long func = (long) GDK_FUNC_MOVE ;
+
+    /* Some WM don't display any border around the frame contents if
+       used with these hints, so we add a resize border around it,
+       without automatically allowinng it to be resized though.
+
+       This avoids the problem, but looks odd. What shall we do?
+    */
+    decor |= GDK_DECOR_RESIZEH;
     
     if ((win->GetWindowStyle() & wxCAPTION) != 0)
         decor |= GDK_DECOR_TITLE;