With the exceptions of DnD, wxGTk now works with
both GTK 1.0.6 and GTK 1.2.1 - the latter still produces warnings and blah. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -385,6 +385,26 @@ bool wxClipboard::AddData( wxDataObject *data )
|
||||
|
||||
/* Add handlers if someone requests data */
|
||||
|
||||
|
||||
#if (GTK_MINOR_VERSION > 0)
|
||||
|
||||
gtk_selection_add_target( GTK_WIDGET(m_clipboardWidget),
|
||||
GDK_SELECTION_PRIMARY,
|
||||
format,
|
||||
0 ); /* what is info ? */
|
||||
|
||||
gtk_selection_add_target( GTK_WIDGET(m_clipboardWidget),
|
||||
g_clipboardAtom,
|
||||
format,
|
||||
0 ); /* what is info ? */
|
||||
|
||||
gtk_signal_connect( GTK_OBJECT(m_clipboardWidget),
|
||||
"selection_get",
|
||||
GTK_SIGNAL_FUNC(selection_handler),
|
||||
(gpointer) NULL );
|
||||
|
||||
#else
|
||||
|
||||
gtk_selection_add_handler( m_clipboardWidget,
|
||||
g_clipboardAtom,
|
||||
format,
|
||||
@@ -396,6 +416,7 @@ bool wxClipboard::AddData( wxDataObject *data )
|
||||
format,
|
||||
selection_handler,
|
||||
(gpointer) NULL );
|
||||
#endif
|
||||
|
||||
/* Tell the world we offer clipboard data */
|
||||
|
||||
|
Reference in New Issue
Block a user