From: Robert Roebling <robert@roebling.de>
Date: Sat, 20 Mar 2004 12:24:16 +0000 (+0000)
Subject:   Fix conversion error in tooltips.
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/aa154cb1578ba9d44c7e24c5e76d8238bf8809d0?ds=inline

  Fix conversion error in tooltips.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26278 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp
index 622470a474..a471eeda22 100644
--- a/src/gtk/window.cpp
+++ b/src/gtk/window.cpp
@@ -3995,7 +3995,8 @@ void wxWindowGTK::DoSetToolTip( wxToolTip *tip )
 
 void wxWindowGTK::ApplyToolTip( GtkTooltips *tips, const wxChar *tip )
 {
-    gtk_tooltips_set_tip( tips, GetConnectWidget(), wxConvCurrent->cWX2MB(tip), (gchar*) NULL );
+    wxString tmp( tip );
+    gtk_tooltips_set_tip( tips, GetConnectWidget(), wxGTK_CONV(tmp), (gchar*) NULL );
 }
 #endif // wxUSE_TOOLTIPS
 
diff --git a/src/gtk1/window.cpp b/src/gtk1/window.cpp
index 622470a474..a471eeda22 100644
--- a/src/gtk1/window.cpp
+++ b/src/gtk1/window.cpp
@@ -3995,7 +3995,8 @@ void wxWindowGTK::DoSetToolTip( wxToolTip *tip )
 
 void wxWindowGTK::ApplyToolTip( GtkTooltips *tips, const wxChar *tip )
 {
-    gtk_tooltips_set_tip( tips, GetConnectWidget(), wxConvCurrent->cWX2MB(tip), (gchar*) NULL );
+    wxString tmp( tip );
+    gtk_tooltips_set_tip( tips, GetConnectWidget(), wxGTK_CONV(tmp), (gchar*) NULL );
 }
 #endif // wxUSE_TOOLTIPS