]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix conversion error in tooltips.
authorRobert Roebling <robert@roebling.de>
Sat, 20 Mar 2004 12:24:16 +0000 (12:24 +0000)
committerRobert Roebling <robert@roebling.de>
Sat, 20 Mar 2004 12:24:16 +0000 (12:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26278 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/window.cpp
src/gtk1/window.cpp

index 622470a474e1f6ae6173cbf1a77b1e5ebe3dad25..a471eeda228fd19323301fae4154d6ca70d1ac00 100644 (file)
@@ -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
 
index 622470a474e1f6ae6173cbf1a77b1e5ebe3dad25..a471eeda228fd19323301fae4154d6ca70d1ac00 100644 (file)
@@ -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