pkgsrc/x11/wxGTK26/patches/patch-ab
2008-09-22 19:44:05 +00:00

28 lines
988 B
Text

$NetBSD: patch-ab,v 1.1.1.1 2008/09/22 19:44:05 joerg Exp $
--- src/gtk/clipbrd.cpp.orig 2006-04-03 18:45:23.000000000 +0200
+++ src/gtk/clipbrd.cpp
@@ -494,16 +494,21 @@ bool wxClipboard::AddData( wxDataObject
delete[] array;
+#ifdef __WXGTK20__
gtk_signal_connect( GTK_OBJECT(m_clipboardWidget),
"selection_get",
GTK_SIGNAL_FUNC(selection_handler),
GUINT_TO_POINTER(
-#ifdef __WXGTK20__
gtk_get_current_event_time()
+ ) );
#else
+ gtk_signal_connect( GTK_OBJECT(m_clipboardWidget),
+ "selection_get",
+ GTK_SIGNAL_FUNC(selection_handler),
+ GUINT_TO_POINTER(
gdk_event_get_time(gtk_get_current_event())
-#endif
) );
+#endif
#if wxUSE_THREADS
/* disable GUI threads */