A bit more DnD and clipbrd updates
wxTextCtrl now hides the vertical until required git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1197 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user