]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/hyperlink.cpp
don't crash when IsEmpty() is called on invalid bundle; don't assert if GetIcon(...
[wxWidgets.git] / src / gtk / hyperlink.cpp
index 665dba4c4f3db21a4f6ea3adfa52194c60fa658d..046c601aeb8a811a43ad70aebb1a0af04667e33b 100644 (file)
@@ -77,7 +77,6 @@ bool wxHyperlinkCtrl::Create(wxWindow *parent, wxWindowID id,
         CheckParams(label, url, style);
 
         m_needParent = true;
-        m_acceptsFocus = true;
 
         if (!PreCreation( parent, pos, size ) ||
             !CreateBase( parent, id, pos, size, style, wxDefaultValidator, name ))
@@ -144,7 +143,7 @@ void wxHyperlinkCtrl::SetLabel(const wxString &label)
 void wxHyperlinkCtrl::SetURL(const wxString &uri)
 {
     if ( UseNative() )
-        gtk_link_button_set_uri(GTK_LINK_BUTTON(m_widget), uri.c_str());
+        gtk_link_button_set_uri(GTK_LINK_BUTTON(m_widget), wxGTK_CONV(uri));
     else
         wxGenericHyperlinkCtrl::SetURL(uri);
 }