X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dcd18dd3002051ae93bfc1a91dff4a3d788fc146..68f64b40bfdffd1fc4967dc422a7d89b42545d82:/src/gtk/hyperlink.cpp diff --git a/src/gtk/hyperlink.cpp b/src/gtk/hyperlink.cpp index dc90de7e58..21610311c5 100644 --- a/src/gtk/hyperlink.cpp +++ b/src/gtk/hyperlink.cpp @@ -47,9 +47,6 @@ static inline bool UseNative() // implementation // ============================================================================ -IMPLEMENT_DYNAMIC_CLASS(wxHyperlinkCtrl, wxGenericHyperlinkCtrl) - - // ---------------------------------------------------------------------------- // "clicked" // ---------------------------------------------------------------------------- @@ -126,6 +123,13 @@ wxSize wxHyperlinkCtrl::DoGetBestSize() const return wxGenericHyperlinkCtrl::DoGetBestSize(); } +wxSize wxHyperlinkCtrl::DoGetBestClientSize() const +{ + if ( UseNative() ) + return wxControl::DoGetBestClientSize(); + return wxGenericHyperlinkCtrl::DoGetBestClientSize(); +} + void wxHyperlinkCtrl::SetLabel(const wxString &label) { if ( UseNative() ) @@ -151,7 +155,7 @@ wxString wxHyperlinkCtrl::GetURL() const if ( UseNative() ) { const gchar *str = gtk_link_button_get_uri(GTK_LINK_BUTTON(m_widget)); - return wxString(str, *wxConvFileName); + return wxString::FromUTF8(str); } return wxGenericHyperlinkCtrl::GetURL();