git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18595
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
ret.x = 0;
if ( m_widget )
{
ret.x = 0;
if ( m_widget )
{
- GdkFont *font = m_font.GetInternalFont();
-
- wxCoord width;
size_t count = GetCount();
for ( size_t n = 0; n < count; n++ )
{
size_t count = GetCount();
for ( size_t n = 0; n < count; n++ )
{
- // FIXME GTK 2.0
- width = (wxCoord)gdk_string_width(font, wxGTK_CONV( GetString(n) ) );
+ GetTextExtent( GetString(n), &width, NULL, NULL, NULL, &m_font );
if ( width > ret.x )
ret.x = width;
}
if ( width > ret.x )
ret.x = width;
}
ret.x = 0;
if ( m_widget )
{
ret.x = 0;
if ( m_widget )
{
- GdkFont *font = m_font.GetInternalFont();
-
- wxCoord width;
- size_t count = Number();
+ int width;
+ size_t count = GetCount();
for ( size_t n = 0; n < count; n++ )
{
for ( size_t n = 0; n < count; n++ )
{
- width = (wxCoord)gdk_string_width(font, wxGTK_CONV( GetString(n) ) );
+ GetTextExtent( GetString(n), &width, NULL, NULL, NULL, &m_font );
if ( width > ret.x )
ret.x = width;
}
if ( width > ret.x )
ret.x = width;
}
ret.x = 0;
if ( m_widget )
{
ret.x = 0;
if ( m_widget )
{
- GdkFont *font = m_font.GetInternalFont();
-
- wxCoord width;
size_t count = GetCount();
for ( size_t n = 0; n < count; n++ )
{
size_t count = GetCount();
for ( size_t n = 0; n < count; n++ )
{
- // FIXME GTK 2.0
- width = (wxCoord)gdk_string_width(font, wxGTK_CONV( GetString(n) ) );
+ GetTextExtent( GetString(n), &width, NULL, NULL, NULL, &m_font );
if ( width > ret.x )
ret.x = width;
}
if ( width > ret.x )
ret.x = width;
}
ret.x = 0;
if ( m_widget )
{
ret.x = 0;
if ( m_widget )
{
- GdkFont *font = m_font.GetInternalFont();
-
- wxCoord width;
- size_t count = Number();
+ int width;
+ size_t count = GetCount();
for ( size_t n = 0; n < count; n++ )
{
for ( size_t n = 0; n < count; n++ )
{
- width = (wxCoord)gdk_string_width(font, wxGTK_CONV( GetString(n) ) );
+ GetTextExtent( GetString(n), &width, NULL, NULL, NULL, &m_font );
if ( width > ret.x )
ret.x = width;
}
if ( width > ret.x )
ret.x = width;
}