X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d394f0c93f547ceb1e9efe8b5e5c9edc7516becf..1de8d512b7c844d67b2dab36addc89868e68c9b6:/src/gtk1/clipbrd.cpp diff --git a/src/gtk1/clipbrd.cpp b/src/gtk1/clipbrd.cpp index 294e0fb3cb..9f06257b3d 100644 --- a/src/gtk1/clipbrd.cpp +++ b/src/gtk1/clipbrd.cpp @@ -257,7 +257,7 @@ selection_handler( GtkWidget *WXUNUSED(widget), // It shall return the time which was used to set the data. if (selection_data->target == g_timestampAtom) { - uint timestamp = GPOINTER_TO_UINT (signal_data); + guint timestamp = GPOINTER_TO_UINT (signal_data); gtk_selection_data_set(selection_data, GDK_SELECTION_TYPE_INTEGER, 32, @@ -298,7 +298,7 @@ selection_handler( GtkWidget *WXUNUSED(widget), GDK_SELECTION_TYPE_STRING, 8 * sizeof(gchar), (unsigned char*) d, - size-1 ); + size ); free(d); } @@ -474,7 +474,7 @@ bool wxClipboard::AddData( wxDataObject *data ) gtk_signal_connect( GTK_OBJECT(m_clipboardWidget), "selection_get", GTK_SIGNAL_FUNC(selection_handler), - GUINT_TO_POINTER( gtk_get_current_event_time() ) ); + GUINT_TO_POINTER( gdk_event_get_time(gtk_get_current_event()) ) ); #if wxUSE_THREADS /* disable GUI threads */