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))
*/
-//-------------------------------------------------------------------------
-// constants
-//-------------------------------------------------------------------------
-
-#define FRAME_BORDER_WIDTH 2
-
//-----------------------------------------------------------------------------
// data
//-----------------------------------------------------------------------------
the last click here */
static guint32 gs_timeLastClick = 0;
+#if (GTK_MINOR_VERSION > 0)
+
//-----------------------------------------------------------------------------
// local code (see below)
//-----------------------------------------------------------------------------
draw_frame( widget, win );
}
+#endif
+
//-----------------------------------------------------------------------------
// "expose_event" of m_wxwindow
//-----------------------------------------------------------------------------
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() );
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))
*/
-//-------------------------------------------------------------------------
-// constants
-//-------------------------------------------------------------------------
-
-#define FRAME_BORDER_WIDTH 2
-
//-----------------------------------------------------------------------------
// data
//-----------------------------------------------------------------------------
the last click here */
static guint32 gs_timeLastClick = 0;
+#if (GTK_MINOR_VERSION > 0)
+
//-----------------------------------------------------------------------------
// local code (see below)
//-----------------------------------------------------------------------------
draw_frame( widget, win );
}
+#endif
+
//-----------------------------------------------------------------------------
// "expose_event" of m_wxwindow
//-----------------------------------------------------------------------------
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() );