1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: src/gtk1/dnd.cpp
3 // Purpose: wxDropTarget class
4 // Author: Robert Roebling
5 // Copyright: (c) 1998 Robert Roebling
6 // Licence: wxWindows licence
7 ///////////////////////////////////////////////////////////////////////////////
9 // For compilers that support precompilation, includes "wx.h".
10 #include "wx/wxprec.h"
12 #if wxUSE_DRAG_AND_DROP
21 #include "wx/window.h"
22 #include "wx/gdicmn.h"
25 #include "wx/gtk1/private.h"
27 #include <gdk/gdkprivate.h>
29 #include <gtk/gtkdnd.h>
30 #include <gtk/gtkselection.h>
32 //-----------------------------------------------------------------------------
34 //-----------------------------------------------------------------------------
36 extern void wxapp_install_idle_handler();
39 //----------------------------------------------------------------------------
41 //----------------------------------------------------------------------------
43 extern bool g_blockEventsOnDrag
;
45 // the flags used for the last DoDragDrop()
46 static long gs_flagsForDrag
= 0;
48 // the trace mask we use with wxLogTrace() - call
49 // wxLog::AddTraceMask(TRACE_DND) to enable the trace messages from here
50 // (there are quite a few of them, so don't enable this by default)
51 #define TRACE_DND wxT("dnd")
53 // global variables because GTK+ DnD want to have the
54 // mouse event that caused it
55 extern GdkEvent
*g_lastMouseEvent
;
56 extern int g_lastButtonNumber
;
58 //----------------------------------------------------------------------------
60 //----------------------------------------------------------------------------
62 /* Copyright (c) Julian Smart */
63 static const char * page_xpm
[] = {
64 /* columns rows colors chars-per-pixel */
113 " 56477<<<<8<<9&:X ",
114 " 59642%&*=-;<09&:5 ",
115 " 5q9642%&*=-<<<<<# ",
116 " 5qqw777<<<<<88:>+ ",
117 " erqq9642%&*=t;::+ ",
118 " eyrqq9642%&*=t;:O ",
119 " eyywwww777<<<<t;O ",
120 " e0yyrqq9642%&*=to ",
121 " e00yyrqq9642%&*=o ",
122 " eu0wwwwwww777<&*X ",
123 " euu00yyrqq9642%&X ",
124 " eiuu00yyrqq9642%X ",
125 " eiiwwwwwwwwww742$ ",
126 " eiiiuu00yyrqq964$ ",
127 " eiiiiuu00yyrqq96$ ",
128 " eiiiiiuu00yyrqq95 ",
129 " eiiiiiiuu00yyrqq5 ",
130 " eeeeeeeeeeeeee55e ",
139 // ============================================================================
141 // ============================================================================
143 // ----------------------------------------------------------------------------
144 // convert between GTK+ and wxWidgets DND constants
145 // ----------------------------------------------------------------------------
147 static wxDragResult
ConvertFromGTK(long action
)
151 case GDK_ACTION_COPY
:
154 case GDK_ACTION_LINK
:
157 case GDK_ACTION_MOVE
:
164 // ----------------------------------------------------------------------------
166 // ----------------------------------------------------------------------------
169 static void target_drag_leave( GtkWidget
*WXUNUSED(widget
),
170 GdkDragContext
*context
,
171 guint
WXUNUSED(time
),
172 wxDropTarget
*drop_target
)
174 if (g_isIdle
) wxapp_install_idle_handler();
176 /* inform the wxDropTarget about the current GdkDragContext.
177 this is only valid for the duration of this call */
178 drop_target
->SetDragContext( context
);
180 /* we don't need return values. this event is just for
182 drop_target
->OnLeave();
184 /* this has to be done because GDK has no "drag_enter" event */
185 drop_target
->m_firstMotion
= true;
187 /* after this, invalidate the drop_target's GdkDragContext */
188 drop_target
->SetDragContext( NULL
);
192 // ----------------------------------------------------------------------------
194 // ----------------------------------------------------------------------------
197 static gboolean
target_drag_motion( GtkWidget
*WXUNUSED(widget
),
198 GdkDragContext
*context
,
202 wxDropTarget
*drop_target
)
204 if (g_isIdle
) wxapp_install_idle_handler();
206 /* Owen Taylor: "if the coordinates not in a drop zone,
207 return FALSE, otherwise call gtk_drag_status() and
210 /* inform the wxDropTarget about the current GdkDragContext.
211 this is only valid for the duration of this call */
212 drop_target
->SetDragContext( context
);
214 // GTK+ always supposes that we want to copy the data by default while we
215 // might want to move it, so examine not only suggested_action - which is
216 // only good if we don't have our own preferences - but also the actions
219 if (drop_target
->GetDefaultAction() == wxDragNone
)
221 // use default action set by wxDropSource::DoDragDrop()
222 if ( (gs_flagsForDrag
& wxDrag_DefaultMove
) == wxDrag_DefaultMove
&&
223 (context
->actions
& GDK_ACTION_MOVE
) )
225 // move is requested by the program and allowed by GTK+ - do it, even
226 // though suggested_action may be currently wxDragCopy
229 else // use whatever GTK+ says we should
231 result
= ConvertFromGTK(context
->suggested_action
);
233 if ( (result
== wxDragMove
) && !(gs_flagsForDrag
& wxDrag_AllowMove
) )
235 // we're requested to move but we can't
240 else if (drop_target
->GetDefaultAction() == wxDragMove
&&
241 (context
->actions
& GDK_ACTION_MOVE
))
247 if (context
->actions
& GDK_ACTION_COPY
)
249 else if (context
->actions
& GDK_ACTION_MOVE
)
255 if (drop_target
->m_firstMotion
)
257 /* the first "drag_motion" event substitutes a "drag_enter" event */
258 result
= drop_target
->OnEnter( x
, y
, result
);
262 /* give program a chance to react (i.e. to say no by returning FALSE) */
263 result
= drop_target
->OnDragOver( x
, y
, result
);
266 bool ret
= wxIsDragResultOk( result
);
269 GdkDragAction action
;
270 if (result
== wxDragCopy
)
271 action
= GDK_ACTION_COPY
;
272 else if (result
== wxDragLink
)
273 action
= GDK_ACTION_LINK
;
275 action
= GDK_ACTION_MOVE
;
277 gdk_drag_status( context
, action
, time
);
280 /* after this, invalidate the drop_target's GdkDragContext */
281 drop_target
->SetDragContext( NULL
);
283 /* this has to be done because GDK has no "drag_enter" event */
284 drop_target
->m_firstMotion
= false;
290 // ----------------------------------------------------------------------------
292 // ----------------------------------------------------------------------------
295 static gboolean
target_drag_drop( GtkWidget
*widget
,
296 GdkDragContext
*context
,
300 wxDropTarget
*drop_target
)
302 if (g_isIdle
) wxapp_install_idle_handler();
304 /* Owen Taylor: "if the drop is not in a drop zone,
305 return FALSE, otherwise, if you aren't accepting
306 the drop, call gtk_drag_finish() with success == FALSE
307 otherwise call gtk_drag_data_get()" */
309 // printf( "drop.\n" );
311 /* this seems to make a difference between not accepting
312 due to wrong target area and due to wrong format. let
313 us hope that this is not required.. */
315 /* inform the wxDropTarget about the current GdkDragContext.
316 this is only valid for the duration of this call */
317 drop_target
->SetDragContext( context
);
319 /* inform the wxDropTarget about the current drag widget.
320 this is only valid for the duration of this call */
321 drop_target
->SetDragWidget( widget
);
323 /* inform the wxDropTarget about the current drag time.
324 this is only valid for the duration of this call */
325 drop_target
->SetDragTime( time
);
328 wxDragResult result = wxDragMove;
329 if (context->suggested_action == GDK_ACTION_COPY) result = wxDragCopy;
332 /* reset the block here as someone might very well
333 show a dialog as a reaction to a drop and this
334 wouldn't work without events */
335 g_blockEventsOnDrag
= false;
337 bool ret
= drop_target
->OnDrop( x
, y
);
341 wxLogTrace(TRACE_DND
, wxT( "Drop target: OnDrop returned FALSE") );
343 /* cancel the whole thing */
344 gtk_drag_finish( context
,
345 FALSE
, /* no success */
346 FALSE
, /* don't delete data on dropping side */
351 wxLogTrace(TRACE_DND
, wxT( "Drop target: OnDrop returned TRUE") );
354 /* disable GUI threads */
357 GdkAtom format
= drop_target
->GetMatchingPair();
359 // this does happen somehow, see bug 555111
360 wxCHECK_MSG( format
, FALSE
, wxT("no matching GdkAtom for format?") );
363 GdkDragAction action = GDK_ACTION_MOVE;
364 if (result == wxDragCopy) action == GDK_ACTION_COPY;
365 context->action = action;
367 /* this should trigger an "drag_data_received" event */
368 gtk_drag_get_data( widget
,
374 /* re-enable GUI threads */
378 /* after this, invalidate the drop_target's GdkDragContext */
379 drop_target
->SetDragContext( NULL
);
381 /* after this, invalidate the drop_target's drag widget */
382 drop_target
->SetDragWidget( NULL
);
384 /* this has to be done because GDK has no "drag_enter" event */
385 drop_target
->m_firstMotion
= true;
391 // ----------------------------------------------------------------------------
392 // "drag_data_received"
393 // ----------------------------------------------------------------------------
396 static void target_drag_data_received( GtkWidget
*WXUNUSED(widget
),
397 GdkDragContext
*context
,
400 GtkSelectionData
*data
,
401 guint
WXUNUSED(info
),
403 wxDropTarget
*drop_target
)
405 if (g_isIdle
) wxapp_install_idle_handler();
407 /* Owen Taylor: "call gtk_drag_finish() with
410 if ((data
->length
<= 0) || (data
->format
!= 8))
412 /* negative data length and non 8-bit data format
413 qualifies for junk */
414 gtk_drag_finish (context
, FALSE
, FALSE
, time
);
419 wxLogTrace(TRACE_DND
, wxT( "Drop target: data received event") );
421 /* inform the wxDropTarget about the current GtkSelectionData.
422 this is only valid for the duration of this call */
423 drop_target
->SetDragData( data
);
425 wxDragResult result
= ConvertFromGTK(context
->action
);
427 if ( wxIsDragResultOk( drop_target
->OnData( x
, y
, result
) ) )
429 wxLogTrace(TRACE_DND
, wxT( "Drop target: OnData returned TRUE") );
431 /* tell GTK that data transfer was successful */
432 gtk_drag_finish( context
, TRUE
, FALSE
, time
);
436 wxLogTrace(TRACE_DND
, wxT( "Drop target: OnData returned FALSE") );
438 /* tell GTK that data transfer was not successful */
439 gtk_drag_finish( context
, FALSE
, FALSE
, time
);
442 /* after this, invalidate the drop_target's drag data */
443 drop_target
->SetDragData( NULL
);
447 //----------------------------------------------------------------------------
449 //----------------------------------------------------------------------------
451 wxDropTarget::wxDropTarget( wxDataObject
*data
)
452 : wxDropTargetBase( data
)
454 m_firstMotion
= true;
455 m_dragContext
= NULL
;
461 wxDragResult
wxDropTarget::OnDragOver( wxCoord
WXUNUSED(x
),
465 // GetMatchingPair() checks for m_dataObject too, no need to do it here
467 // disable the debug message from GetMatchingPair() by passing true to it
468 return (GetMatchingPair(true) != (GdkAtom
) 0) ? def
: wxDragNone
;
471 bool wxDropTarget::OnDrop( wxCoord
WXUNUSED(x
), wxCoord
WXUNUSED(y
) )
476 return (GetMatchingPair() != (GdkAtom
) 0);
479 wxDragResult
wxDropTarget::OnData( wxCoord
WXUNUSED(x
), wxCoord
WXUNUSED(y
),
485 if (GetMatchingPair() == (GdkAtom
) 0)
488 return GetData() ? def
: wxDragNone
;
491 GdkAtom
wxDropTarget::GetMatchingPair(bool quiet
)
499 GList
*child
= m_dragContext
->targets
;
502 GdkAtom formatAtom
= GPOINTER_TO_INT(child
->data
);
503 wxDataFormat
format( formatAtom
);
507 wxLogTrace(TRACE_DND
, wxT("Drop target: drag has format: %s"),
508 format
.GetId().c_str());
511 if (m_dataObject
->IsSupportedFormat( format
))
520 bool wxDropTarget::GetData()
528 wxDataFormat
dragFormat( m_dragData
->target
);
530 if (!m_dataObject
->IsSupportedFormat( dragFormat
))
533 m_dataObject
->SetData( dragFormat
, (size_t)m_dragData
->length
, (const void*)m_dragData
->data
);
538 void wxDropTarget::UnregisterWidget( GtkWidget
*widget
)
540 wxCHECK_RET( widget
!= NULL
, wxT("unregister widget is NULL") );
542 gtk_drag_dest_unset( widget
);
544 gtk_signal_disconnect_by_func( GTK_OBJECT(widget
),
545 GTK_SIGNAL_FUNC(target_drag_leave
), (gpointer
) this );
547 gtk_signal_disconnect_by_func( GTK_OBJECT(widget
),
548 GTK_SIGNAL_FUNC(target_drag_motion
), (gpointer
) this );
550 gtk_signal_disconnect_by_func( GTK_OBJECT(widget
),
551 GTK_SIGNAL_FUNC(target_drag_drop
), (gpointer
) this );
553 gtk_signal_disconnect_by_func( GTK_OBJECT(widget
),
554 GTK_SIGNAL_FUNC(target_drag_data_received
), (gpointer
) this );
557 void wxDropTarget::RegisterWidget( GtkWidget
*widget
)
559 wxCHECK_RET( widget
!= NULL
, wxT("register widget is NULL") );
561 /* gtk_drag_dest_set() determines what default behaviour we'd like
562 GTK to supply. we don't want to specify out targets (=formats)
563 or actions in advance (i.e. not GTK_DEST_DEFAULT_MOTION and
564 not GTK_DEST_DEFAULT_DROP). instead we react individually to
565 "drag_motion" and "drag_drop" events. this makes it possible
566 to allow dropping on only a small area. we should set
567 GTK_DEST_DEFAULT_HIGHLIGHT as this will switch on the nice
568 highlighting if dragging over standard controls, but this
569 seems to be broken without the other two. */
571 gtk_drag_dest_set( widget
,
572 (GtkDestDefaults
) 0, /* no default behaviour */
573 NULL
, /* we don't supply any formats here */
574 0, /* number of targets = 0 */
575 (GdkDragAction
) 0 ); /* we don't supply any actions here */
577 gtk_signal_connect( GTK_OBJECT(widget
), "drag_leave",
578 GTK_SIGNAL_FUNC(target_drag_leave
), (gpointer
) this );
580 gtk_signal_connect( GTK_OBJECT(widget
), "drag_motion",
581 GTK_SIGNAL_FUNC(target_drag_motion
), (gpointer
) this );
583 gtk_signal_connect( GTK_OBJECT(widget
), "drag_drop",
584 GTK_SIGNAL_FUNC(target_drag_drop
), (gpointer
) this );
586 gtk_signal_connect( GTK_OBJECT(widget
), "drag_data_received",
587 GTK_SIGNAL_FUNC(target_drag_data_received
), (gpointer
) this );
590 //----------------------------------------------------------------------------
592 //----------------------------------------------------------------------------
596 source_drag_data_get (GtkWidget
*WXUNUSED(widget
),
597 GdkDragContext
*WXUNUSED(context
),
598 GtkSelectionData
*selection_data
,
599 guint
WXUNUSED(info
),
600 guint
WXUNUSED(time
),
601 wxDropSource
*drop_source
)
603 if (g_isIdle
) wxapp_install_idle_handler();
605 wxDataFormat
format( selection_data
->target
);
607 wxLogTrace(TRACE_DND
, wxT("Drop source: format requested: %s"),
608 format
.GetId().c_str());
610 drop_source
->m_retValue
= wxDragCancel
;
612 wxDataObject
*data
= drop_source
->GetDataObject();
616 wxLogTrace(TRACE_DND
, wxT("Drop source: no data object") );
620 if (!data
->IsSupportedFormat(format
))
622 wxLogTrace(TRACE_DND
, wxT("Drop source: unsupported format") );
626 if (data
->GetDataSize(format
) == 0)
628 wxLogTrace(TRACE_DND
, wxT("Drop source: empty data") );
632 size_t size
= data
->GetDataSize(format
);
634 // printf( "data size: %d.\n", (int)data_size );
636 guchar
*d
= new guchar
[size
];
638 if (!data
->GetDataHere( format
, (void*)d
))
645 /* disable GUI threads */
648 gtk_selection_data_set( selection_data
,
649 selection_data
->target
,
655 /* enable GUI threads */
662 //----------------------------------------------------------------------------
663 // "drag_data_delete"
664 //----------------------------------------------------------------------------
667 static void source_drag_data_delete( GtkWidget
*WXUNUSED(widget
),
668 GdkDragContext
*WXUNUSED(context
),
669 wxDropSource
*WXUNUSED(drop_source
) )
672 wxapp_install_idle_handler();
674 // printf( "Drag source: drag_data_delete\n" );
678 //----------------------------------------------------------------------------
680 //----------------------------------------------------------------------------
683 static void source_drag_begin( GtkWidget
*WXUNUSED(widget
),
684 GdkDragContext
*WXUNUSED(context
),
685 wxDropSource
*WXUNUSED(drop_source
) )
688 wxapp_install_idle_handler();
690 // printf( "Drag source: drag_begin.\n" );
694 //----------------------------------------------------------------------------
696 //----------------------------------------------------------------------------
699 static void source_drag_end( GtkWidget
*WXUNUSED(widget
),
700 GdkDragContext
*WXUNUSED(context
),
701 wxDropSource
*drop_source
)
703 if (g_isIdle
) wxapp_install_idle_handler();
705 // printf( "Drag source: drag_end.\n" );
707 drop_source
->m_waiting
= false;
711 //-----------------------------------------------------------------------------
712 // "configure_event" from m_iconWindow
713 //-----------------------------------------------------------------------------
717 gtk_dnd_window_configure_callback( GtkWidget
*WXUNUSED(widget
), GdkEventConfigure
*WXUNUSED(event
), wxDropSource
*source
)
720 wxapp_install_idle_handler();
722 source
->GiveFeedback( ConvertFromGTK(source
->m_dragContext
->action
) );
728 //---------------------------------------------------------------------------
730 //---------------------------------------------------------------------------
732 wxDropSource::wxDropSource(wxWindow
*win
,
733 const wxIcon
&iconCopy
,
734 const wxIcon
&iconMove
,
735 const wxIcon
&iconNone
)
742 m_widget
= win
->m_widget
;
743 if (win
->m_wxwindow
) m_widget
= win
->m_wxwindow
;
745 m_retValue
= wxDragCancel
;
747 SetIcons(iconCopy
, iconMove
, iconNone
);
750 wxDropSource::wxDropSource(wxDataObject
& data
,
752 const wxIcon
&iconCopy
,
753 const wxIcon
&iconMove
,
754 const wxIcon
&iconNone
)
763 m_widget
= win
->m_widget
;
764 if (win
->m_wxwindow
) m_widget
= win
->m_wxwindow
;
766 m_retValue
= wxDragCancel
;
768 SetIcons(iconCopy
, iconMove
, iconNone
);
771 void wxDropSource::SetIcons(const wxIcon
&iconCopy
,
772 const wxIcon
&iconMove
,
773 const wxIcon
&iconNone
)
775 m_iconCopy
= iconCopy
;
776 m_iconMove
= iconMove
;
777 m_iconNone
= iconNone
;
779 if ( !m_iconCopy
.IsOk() )
780 m_iconCopy
= wxIcon(page_xpm
);
781 if ( !m_iconMove
.IsOk() )
782 m_iconMove
= m_iconCopy
;
783 if ( !m_iconNone
.IsOk() )
784 m_iconNone
= m_iconCopy
;
787 wxDropSource::~wxDropSource()
791 void wxDropSource::PrepareIcon( int action
, GdkDragContext
*context
)
793 // get the right icon to display
795 if ( action
& GDK_ACTION_MOVE
)
797 else if ( action
& GDK_ACTION_COPY
)
803 if ( icon
->GetMask() )
804 mask
= icon
->GetMask()->GetBitmap();
808 GdkPixmap
*pixmap
= icon
->GetPixmap();
811 gdk_window_get_size (pixmap
, &width
, &height
);
813 GdkColormap
*colormap
= gtk_widget_get_colormap( m_widget
);
814 gtk_widget_push_visual (gdk_colormap_get_visual (colormap
));
815 gtk_widget_push_colormap (colormap
);
817 m_iconWindow
= gtk_window_new (GTK_WINDOW_POPUP
);
818 gtk_widget_set_events (m_iconWindow
, GDK_BUTTON_PRESS_MASK
| GDK_BUTTON_RELEASE_MASK
);
819 gtk_widget_set_app_paintable (GTK_WIDGET (m_iconWindow
), TRUE
);
821 gtk_widget_pop_visual ();
822 gtk_widget_pop_colormap ();
824 gtk_widget_set_usize (m_iconWindow
, width
, height
);
825 gtk_widget_realize (m_iconWindow
);
827 gtk_signal_connect( GTK_OBJECT(m_iconWindow
), "configure_event",
828 GTK_SIGNAL_FUNC(gtk_dnd_window_configure_callback
), (gpointer
)this );
830 gdk_window_set_back_pixmap (m_iconWindow
->window
, pixmap
, FALSE
);
833 gtk_widget_shape_combine_mask (m_iconWindow
, mask
, 0, 0);
835 gtk_drag_set_icon_widget( context
, m_iconWindow
, 0, 0 );
838 wxDragResult
wxDropSource::DoDragDrop(int flags
)
840 wxCHECK_MSG( m_data
&& m_data
->GetFormatCount(), wxDragNone
,
841 wxT("Drop source: no data") );
844 if (g_blockEventsOnDrag
)
847 // don't start dragging if no button is down
848 if (g_lastButtonNumber
== 0)
851 // we can only start a drag after a mouse event
852 if (g_lastMouseEvent
== NULL
)
856 g_blockEventsOnDrag
= true;
862 GtkTargetList
*target_list
= gtk_target_list_new( NULL
, 0 );
864 wxDataFormat
*array
= new wxDataFormat
[ m_data
->GetFormatCount() ];
865 m_data
->GetAllFormats( array
);
866 size_t count
= m_data
->GetFormatCount();
867 for (size_t i
= 0; i
< count
; i
++)
869 GdkAtom atom
= array
[i
];
870 wxLogTrace(TRACE_DND
, wxT("Drop source: Supported atom %s"), gdk_atom_name( atom
));
871 gtk_target_list_add( target_list
, atom
, 0, 0 );
875 int action
= GDK_ACTION_COPY
;
876 if ( flags
& wxDrag_AllowMove
)
877 action
|= GDK_ACTION_MOVE
;
879 // VZ: as we already use g_blockEventsOnDrag it shouldn't be that bad
880 // to use a global to pass the flags to the drop target but I'd
881 // surely prefer a better way to do it
882 gs_flagsForDrag
= flags
;
884 GdkDragContext
*context
= gtk_drag_begin( m_widget
,
886 (GdkDragAction
)action
,
887 g_lastButtonNumber
, // number of mouse button which started drag
888 (GdkEvent
*) g_lastMouseEvent
);
890 m_dragContext
= context
;
892 PrepareIcon( action
, context
);
895 gtk_main_iteration();
897 m_retValue
= ConvertFromGTK(context
->action
);
898 if ( m_retValue
== wxDragNone
)
899 m_retValue
= wxDragCancel
;
901 g_blockEventsOnDrag
= false;
908 void wxDropSource::RegisterWindow()
910 if (!m_widget
) return;
912 gtk_signal_connect( GTK_OBJECT(m_widget
), "drag_data_get",
913 GTK_SIGNAL_FUNC (source_drag_data_get
), (gpointer
) this);
914 gtk_signal_connect (GTK_OBJECT(m_widget
), "drag_data_delete",
915 GTK_SIGNAL_FUNC (source_drag_data_delete
), (gpointer
) this );
916 gtk_signal_connect (GTK_OBJECT(m_widget
), "drag_begin",
917 GTK_SIGNAL_FUNC (source_drag_begin
), (gpointer
) this );
918 gtk_signal_connect (GTK_OBJECT(m_widget
), "drag_end",
919 GTK_SIGNAL_FUNC (source_drag_end
), (gpointer
) this );
923 void wxDropSource::UnregisterWindow()
925 if (!m_widget
) return;
927 gtk_signal_disconnect_by_func( GTK_OBJECT(m_widget
),
928 GTK_SIGNAL_FUNC(source_drag_data_get
), (gpointer
) this );
929 gtk_signal_disconnect_by_func( GTK_OBJECT(m_widget
),
930 GTK_SIGNAL_FUNC(source_drag_data_delete
), (gpointer
) this );
931 gtk_signal_disconnect_by_func( GTK_OBJECT(m_widget
),
932 GTK_SIGNAL_FUNC(source_drag_begin
), (gpointer
) this );
933 gtk_signal_disconnect_by_func( GTK_OBJECT(m_widget
),
934 GTK_SIGNAL_FUNC(source_drag_end
), (gpointer
) this );
938 // wxUSE_DRAG_AND_DROP