SetFont() the second
#ifdefed SetFont() in Statusbars destructor wxRadioBox setsize corrected (Still only simple layout) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@685 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1926,20 +1926,12 @@ bool wxWindow::IsOwnGtkWindow( GdkWindow *window )
|
||||
|
||||
void wxWindow::SetFont( const wxFont &font )
|
||||
{
|
||||
m_font = font;
|
||||
|
||||
// Unfortunately this results in a crash in GTK on deletion
|
||||
// of windows, e.g. the wxStatusBar in Dialog Editor.
|
||||
#if 0
|
||||
|
||||
// ADDED BY JACS: not sure if this is the right thing to do,
|
||||
// but will avoid a segv when SetFont(wxNullFont) is called.
|
||||
if (((wxFont*) &font)->Ok())
|
||||
if (((wxFont*)&font)->Ok())
|
||||
m_font = font;
|
||||
else
|
||||
m_font = *wxSWISS_FONT;
|
||||
|
||||
GtkStyle *style = (GtkStyle`*) NULL;
|
||||
GtkStyle *style = (GtkStyle*) NULL;
|
||||
if (!m_hasOwnStyle)
|
||||
{
|
||||
m_hasOwnStyle = TRUE;
|
||||
@@ -1954,7 +1946,6 @@ void wxWindow::SetFont( const wxFont &font )
|
||||
style->font = gdk_font_ref( m_font.GetInternalFont( 1.0 ) );
|
||||
|
||||
gtk_widget_set_style( m_widget, style );
|
||||
#endif
|
||||
}
|
||||
|
||||
wxFont *wxWindow::GetFont(void)
|
||||
|
Reference in New Issue
Block a user