Don't implement wxStaticText::WX[SG]etVisibleLabel() in wxGTK
These functions are never used in this port, so make it clear, both in the code and in the comment preceding them.
This commit is contained in:
@@ -270,17 +270,23 @@ void wxStaticText::GTKWidgetDoSetMnemonic(GtkWidget* w)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// These functions should be used only when GTK+ < 2.6 by wxStaticTextBase::UpdateLabel()
|
// These functions are not used as GTK supports ellipsization natively and we
|
||||||
|
// never call the base class UpdateText() which uses them.
|
||||||
|
//
|
||||||
|
// Note that, unfortunately, we still need to define them because they still
|
||||||
|
// exist, as pure virtuals, in the base class even in wxGTK to allow
|
||||||
|
// wxGenericStaticText to override them.
|
||||||
|
|
||||||
wxString wxStaticText::WXGetVisibleLabel() const
|
wxString wxStaticText::WXGetVisibleLabel() const
|
||||||
{
|
{
|
||||||
GtkLabel *label = GTK_LABEL(m_widget);
|
wxFAIL_MSG(wxS("Unreachable"));
|
||||||
return wxGTK_CONV_BACK( gtk_label_get_text( label ) );
|
|
||||||
|
return wxString();
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxStaticText::WXSetVisibleLabel(const wxString& str)
|
void wxStaticText::WXSetVisibleLabel(const wxString& WXUNUSED(str))
|
||||||
{
|
{
|
||||||
GTKSetLabelForLabel(GTK_LABEL(m_widget), str);
|
wxFAIL_MSG(wxS("Unreachable"));
|
||||||
}
|
}
|
||||||
|
|
||||||
// static
|
// static
|
||||||
|
Reference in New Issue
Block a user