summaryrefslogtreecommitdiff
path: root/x11/wxGTK/patches/patch-ab
blob: ef6b969fd4abf7a21794da8417f9e15a0493061b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
$NetBSD: patch-ab,v 1.16 2006/04/08 13:12:07 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 */