- wxString label(str);
- if (gtk_check_version(2,6,0) &&
- IsEllipsized())
- {
- // GTK+ < 2.6 does not support ellipsization:
- // since we need to use our generic code for ellipsization (which does not
- // behaves well in conjunction with markup; i.e. it may break the markup
- // validity erasing portions of the string), we also need to strip out
- // the markup (if present) from the label.
-
- label = GetEllipsizedLabelWithoutMarkup();
- }
-
- if ( HasFlag(wxST_MARKUP) )
- GTKSetLabelWithMarkupForLabel(GTK_LABEL(m_widget), label);
- else
- GTKSetLabelForLabel(GTK_LABEL(m_widget), label);