]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/dnd.cpp
Now even Julian can use wxGTK :-)
[wxWidgets.git] / src / gtk1 / dnd.cpp
index 180e6ba727a1499df92bcf1b5191f996abe81d14..d38405ec0c72283104572f54a72c807e9f3154e7 100644 (file)
@@ -642,10 +642,12 @@ void gtk_drag_callback( GtkWidget *widget, GdkEvent *event, wxDropSource *source
            
            wxString text = text_object->GetText();
            
+           char *s = WXSTRINGCAST text;
+           
             gtk_widget_dnd_data_set( widget, 
                                     event, 
-                                    (unsigned char*) text.c_str
-                                    (int) text.Length() );
+                                    (unsigned char*) s
+                                    (int) text.Length()+1 );
        
            break;
        }
@@ -656,10 +658,12 @@ void gtk_drag_callback( GtkWidget *widget, GdkEvent *event, wxDropSource *source
            
            wxString text = file_object->GetFiles();
            
+           char *s = WXSTRINGCAST text;
+           
             gtk_widget_dnd_data_set( widget, 
                                     event, 
-                                    (unsigned char*) text.c_str
-                                    (int) text.Length() );
+                                    (unsigned char*) s
+                                    (int) text.Length()+1 );
        
            break;
        }