gtk+-2.8 compatibility for WX_2_4_BRANCH.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@35241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -160,6 +160,7 @@ public:
|
|||||||
// Returns the X11 context which renders on the X11 client
|
// Returns the X11 context which renders on the X11 client
|
||||||
// side (which can be remote) and which usually is not
|
// side (which can be remote) and which usually is not
|
||||||
// anti-aliased and is thus faster
|
// anti-aliased and is thus faster
|
||||||
|
// MR: Deprecated and returning GtkGetPangoDefaultContext to avoid libpangox dependancy
|
||||||
PangoContext *GtkGetPangoX11Context();
|
PangoContext *GtkGetPangoX11Context();
|
||||||
PangoContext *m_x11Context;
|
PangoContext *m_x11Context;
|
||||||
#endif
|
#endif
|
||||||
|
@@ -160,6 +160,7 @@ public:
|
|||||||
// Returns the X11 context which renders on the X11 client
|
// Returns the X11 context which renders on the X11 client
|
||||||
// side (which can be remote) and which usually is not
|
// side (which can be remote) and which usually is not
|
||||||
// anti-aliased and is thus faster
|
// anti-aliased and is thus faster
|
||||||
|
// MR: Deprecated and returning GtkGetPangoDefaultContext to avoid libpangox dependancy
|
||||||
PangoContext *GtkGetPangoX11Context();
|
PangoContext *GtkGetPangoX11Context();
|
||||||
PangoContext *m_x11Context;
|
PangoContext *m_x11Context;
|
||||||
#endif
|
#endif
|
||||||
|
@@ -1799,10 +1799,7 @@ void wxWindowDC::SetFont( const wxFont &font )
|
|||||||
|
|
||||||
if (m_owner)
|
if (m_owner)
|
||||||
{
|
{
|
||||||
if (m_font.GetNoAntiAliasing())
|
m_context = m_owner->GtkGetPangoDefaultContext();
|
||||||
m_context = m_owner->GtkGetPangoX11Context();
|
|
||||||
else
|
|
||||||
m_context = m_owner->GtkGetPangoDefaultContext();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@@ -4008,12 +4008,10 @@ PangoContext *wxWindowGTK::GtkGetPangoDefaultContext()
|
|||||||
return gtk_widget_get_pango_context( m_widget );
|
return gtk_widget_get_pango_context( m_widget );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MR: Deprecated and now returns the same as GtkGetPangoDefaultContext to avoid libpangox dependancy
|
||||||
PangoContext *wxWindowGTK::GtkGetPangoX11Context()
|
PangoContext *wxWindowGTK::GtkGetPangoX11Context()
|
||||||
{
|
{
|
||||||
if (!m_x11Context)
|
return gtk_widget_get_pango_context( m_widget );
|
||||||
m_x11Context = pango_x_get_context( gdk_display );
|
|
||||||
|
|
||||||
return m_x11Context;
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -1799,10 +1799,7 @@ void wxWindowDC::SetFont( const wxFont &font )
|
|||||||
|
|
||||||
if (m_owner)
|
if (m_owner)
|
||||||
{
|
{
|
||||||
if (m_font.GetNoAntiAliasing())
|
m_context = m_owner->GtkGetPangoDefaultContext();
|
||||||
m_context = m_owner->GtkGetPangoX11Context();
|
|
||||||
else
|
|
||||||
m_context = m_owner->GtkGetPangoDefaultContext();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@@ -4008,12 +4008,10 @@ PangoContext *wxWindowGTK::GtkGetPangoDefaultContext()
|
|||||||
return gtk_widget_get_pango_context( m_widget );
|
return gtk_widget_get_pango_context( m_widget );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MR: Deprecated and now returns the same as GtkGetPangoDefaultContext to avoid libpangox dependancy
|
||||||
PangoContext *wxWindowGTK::GtkGetPangoX11Context()
|
PangoContext *wxWindowGTK::GtkGetPangoX11Context()
|
||||||
{
|
{
|
||||||
if (!m_x11Context)
|
return gtk_widget_get_pango_context( m_widget );
|
||||||
m_x11Context = pango_x_get_context( gdk_display );
|
|
||||||
|
|
||||||
return m_x11Context;
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user