]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixing a few fixes..
authorRobert Roebling <robert@roebling.de>
Mon, 12 Apr 1999 14:41:43 +0000 (14:41 +0000)
committerRobert Roebling <robert@roebling.de>
Mon, 12 Apr 1999 14:41:43 +0000 (14:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2103 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/win_gtk.c
src/gtk/window.cpp
src/gtk1/win_gtk.c
src/gtk1/window.cpp

index 7e8498ea5aecaa64a2d3b759cc18de0debec2c5a..c199d05b9b188cb67ad10ef60193262de91cba5e 100644 (file)
@@ -417,8 +417,10 @@ gtk_myfixed_size_allocate (GtkWidget     *widget,
   if (myfixed->shadow_type == GTK_SHADOW_NONE)
     border = 0;
   else
-#endif
     border = 2;
+#else
+  border = 0;
+#endif
 
   widget->allocation = *allocation;
   if (GTK_WIDGET_REALIZED (widget))
index ecc4c6101fe42497ad4857e885c066d8d53f4e7b..7f2fa89f26ee38e6c66b4701c640af466d85d977 100644 (file)
 
 */
 
-//-------------------------------------------------------------------------
-// constants
-//-------------------------------------------------------------------------
-
-#define FRAME_BORDER_WIDTH 2
-
 //-----------------------------------------------------------------------------
 // data
 //-----------------------------------------------------------------------------
@@ -141,6 +135,8 @@ static wxWindow  *g_focusWindow = (wxWindow*) NULL;
    the last click here */
 static guint32 gs_timeLastClick = 0;
 
+#if (GTK_MINOR_VERSION > 0)
+
 //-----------------------------------------------------------------------------
 // local code (see below)
 //-----------------------------------------------------------------------------
@@ -227,6 +223,8 @@ static void gtk_window_own_draw_callback( GtkWidget *widget, GdkRectangle *WXUNU
     draw_frame( widget, win );
 }
 
+#endif
+
 //-----------------------------------------------------------------------------
 // "expose_event" of m_wxwindow
 //-----------------------------------------------------------------------------
@@ -1740,12 +1738,14 @@ void wxWindow::PostCreation()
         gtk_signal_connect( GTK_OBJECT(m_wxwindow), "draw",
           GTK_SIGNAL_FUNC(gtk_window_draw_callback), (gpointer)this );
          
+#if (GTK_MINOR_VERSION > 0)
        /* these are called when the "sunken" or "raised" borders are drawn */
         gtk_signal_connect( GTK_OBJECT(m_widget), "expose_event",
           GTK_SIGNAL_FUNC(gtk_window_own_expose_callback), (gpointer)this );
 
         gtk_signal_connect( GTK_OBJECT(m_widget), "draw",
           GTK_SIGNAL_FUNC(gtk_window_own_draw_callback), (gpointer)this );
+#endif
     }
 
     ConnectWidget( GetConnectWidget() );
index 7e8498ea5aecaa64a2d3b759cc18de0debec2c5a..c199d05b9b188cb67ad10ef60193262de91cba5e 100644 (file)
@@ -417,8 +417,10 @@ gtk_myfixed_size_allocate (GtkWidget     *widget,
   if (myfixed->shadow_type == GTK_SHADOW_NONE)
     border = 0;
   else
-#endif
     border = 2;
+#else
+  border = 0;
+#endif
 
   widget->allocation = *allocation;
   if (GTK_WIDGET_REALIZED (widget))
index ecc4c6101fe42497ad4857e885c066d8d53f4e7b..7f2fa89f26ee38e6c66b4701c640af466d85d977 100644 (file)
 
 */
 
-//-------------------------------------------------------------------------
-// constants
-//-------------------------------------------------------------------------
-
-#define FRAME_BORDER_WIDTH 2
-
 //-----------------------------------------------------------------------------
 // data
 //-----------------------------------------------------------------------------
@@ -141,6 +135,8 @@ static wxWindow  *g_focusWindow = (wxWindow*) NULL;
    the last click here */
 static guint32 gs_timeLastClick = 0;
 
+#if (GTK_MINOR_VERSION > 0)
+
 //-----------------------------------------------------------------------------
 // local code (see below)
 //-----------------------------------------------------------------------------
@@ -227,6 +223,8 @@ static void gtk_window_own_draw_callback( GtkWidget *widget, GdkRectangle *WXUNU
     draw_frame( widget, win );
 }
 
+#endif
+
 //-----------------------------------------------------------------------------
 // "expose_event" of m_wxwindow
 //-----------------------------------------------------------------------------
@@ -1740,12 +1738,14 @@ void wxWindow::PostCreation()
         gtk_signal_connect( GTK_OBJECT(m_wxwindow), "draw",
           GTK_SIGNAL_FUNC(gtk_window_draw_callback), (gpointer)this );
          
+#if (GTK_MINOR_VERSION > 0)
        /* these are called when the "sunken" or "raised" borders are drawn */
         gtk_signal_connect( GTK_OBJECT(m_widget), "expose_event",
           GTK_SIGNAL_FUNC(gtk_window_own_expose_callback), (gpointer)this );
 
         gtk_signal_connect( GTK_OBJECT(m_widget), "draw",
           GTK_SIGNAL_FUNC(gtk_window_own_draw_callback), (gpointer)this );
+#endif
     }
 
     ConnectWidget( GetConnectWidget() );