projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
correction to last commit: Korean and Romanian translations will only be in 2.9.1...
[wxWidgets.git]
/
src
/
gtk
/
hyperlink.cpp
diff --git
a/src/gtk/hyperlink.cpp
b/src/gtk/hyperlink.cpp
index 701aeb934da8815e003218ee9267737ab34cb217..44645ce0fab075e2486aef667c436e289b849207 100644
(file)
--- a/
src/gtk/hyperlink.cpp
+++ b/
src/gtk/hyperlink.cpp
@@
-23,7
+23,7
@@
#pragma hdrstop
#endif
#pragma hdrstop
#endif
-#if wxUSE_HYPERLINKCTRL && defined(__WXGTK210__)
+#if wxUSE_HYPERLINKCTRL && defined(__WXGTK210__)
&& !defined(__WXUNIVERSAL__)
#include "wx/hyperlink.h"
#include "wx/hyperlink.h"
@@
-76,8
+76,6
@@
bool wxHyperlinkCtrl::Create(wxWindow *parent, wxWindowID id,
// do validation checks:
CheckParams(label, url, style);
// do validation checks:
CheckParams(label, url, style);
- m_needParent = true;
-
if (!PreCreation( parent, pos, size ) ||
!CreateBase( parent, id, pos, size, style, wxDefaultValidator, name ))
{
if (!PreCreation( parent, pos, size ) ||
!CreateBase( parent, id, pos, size, style, wxDefaultValidator, name ))
{
@@
-86,6
+84,7
@@
bool wxHyperlinkCtrl::Create(wxWindow *parent, wxWindowID id,
}
m_widget = gtk_link_button_new("asdfsaf asdfdsaf asdfdsa");
}
m_widget = gtk_link_button_new("asdfsaf asdfdsaf asdfdsa");
+ g_object_ref(m_widget);
gtk_widget_show(m_widget);
// alignment
gtk_widget_show(m_widget);
// alignment
@@
-153,7
+152,7
@@
wxString wxHyperlinkCtrl::GetURL() const
if ( UseNative() )
{
const gchar *str = gtk_link_button_get_uri(GTK_LINK_BUTTON(m_widget));
if ( UseNative() )
{
const gchar *str = gtk_link_button_get_uri(GTK_LINK_BUTTON(m_widget));
- return wx
ConvFileName->cMB2WX(str
);
+ return wx
String(str, *wxConvFileName
);
}
return wxGenericHyperlinkCtrl::GetURL();
}
return wxGenericHyperlinkCtrl::GetURL();