1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: src/gtk1/dnd.cpp
3 // Purpose: wxDropTarget class
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 ///////////////////////////////////////////////////////////////////////////////
10 // For compilers that support precompilation, includes "wx.h".
11 #include "wx/wxprec.h"
13 #if wxUSE_DRAG_AND_DROP
22 #include "wx/window.h"
23 #include "wx/gdicmn.h"
26 #include "wx/gtk1/private.h"
28 #include <gdk/gdkprivate.h>
30 #include <gtk/gtkdnd.h>
31 #include <gtk/gtkselection.h>
33 //-----------------------------------------------------------------------------
35 //-----------------------------------------------------------------------------
37 extern void wxapp_install_idle_handler();
40 //----------------------------------------------------------------------------
42 //----------------------------------------------------------------------------
44 extern bool g_blockEventsOnDrag
;
46 // the flags used for the last DoDragDrop()
47 static long gs_flagsForDrag
= 0;
49 // the trace mask we use with wxLogTrace() - call
50 // wxLog::AddTraceMask(TRACE_DND) to enable the trace messages from here
51 // (there are quite a few of them, so don't enable this by default)
52 #define TRACE_DND wxT("dnd")
54 // global variables because GTK+ DnD want to have the
55 // mouse event that caused it
56 extern GdkEvent
*g_lastMouseEvent
;
57 extern int g_lastButtonNumber
;
59 //----------------------------------------------------------------------------
61 //----------------------------------------------------------------------------
63 /* Copyright (c) Julian Smart */
64 static const char * page_xpm
[] = {
65 /* columns rows colors chars-per-pixel */
114 " 56477<<<<8<<9&:X ",
115 " 59642%&*=-;<09&:5 ",
116 " 5q9642%&*=-<<<<<# ",
117 " 5qqw777<<<<<88:>+ ",
118 " erqq9642%&*=t;::+ ",
119 " eyrqq9642%&*=t;:O ",
120 " eyywwww777<<<<t;O ",
121 " e0yyrqq9642%&*=to ",
122 " e00yyrqq9642%&*=o ",
123 " eu0wwwwwww777<&*X ",
124 " euu00yyrqq9642%&X ",
125 " eiuu00yyrqq9642%X ",
126 " eiiwwwwwwwwww742$ ",
127 " eiiiuu00yyrqq964$ ",
128 " eiiiiuu00yyrqq96$ ",
129 " eiiiiiuu00yyrqq95 ",
130 " eiiiiiiuu00yyrqq5 ",
131 " eeeeeeeeeeeeee55e ",
140 // ============================================================================
142 // ============================================================================
144 // ----------------------------------------------------------------------------
145 // convert between GTK+ and wxWidgets DND constants
146 // ----------------------------------------------------------------------------
148 static wxDragResult
ConvertFromGTK(long action
)
152 case GDK_ACTION_COPY
:
155 case GDK_ACTION_LINK
:
158 case GDK_ACTION_MOVE
:
165 // ----------------------------------------------------------------------------
167 // ----------------------------------------------------------------------------
170 static void target_drag_leave( GtkWidget
*WXUNUSED(widget
),
171 GdkDragContext
*context
,
172 guint
WXUNUSED(time
),
173 wxDropTarget
*drop_target
)
175 if (g_isIdle
) wxapp_install_idle_handler();
177 /* inform the wxDropTarget about the current GdkDragContext.
178 this is only valid for the duration of this call */
179 drop_target
->SetDragContext( context
);
181 /* we don't need return values. this event is just for
183 drop_target
->OnLeave();
185 /* this has to be done because GDK has no "drag_enter" event */
186 drop_target
->m_firstMotion
= true;
188 /* after this, invalidate the drop_target's GdkDragContext */
189 drop_target
->SetDragContext( NULL
);
193 // ----------------------------------------------------------------------------
195 // ----------------------------------------------------------------------------
198 static gboolean
target_drag_motion( GtkWidget
*WXUNUSED(widget
),
199 GdkDragContext
*context
,
203 wxDropTarget
*drop_target
)
205 if (g_isIdle
) wxapp_install_idle_handler();
207 /* Owen Taylor: "if the coordinates not in a drop zone,
208 return FALSE, otherwise call gtk_drag_status() and
211 /* inform the wxDropTarget about the current GdkDragContext.
212 this is only valid for the duration of this call */
213 drop_target
->SetDragContext( context
);
215 // GTK+ always supposes that we want to copy the data by default while we
216 // might want to move it, so examine not only suggested_action - which is
217 // only good if we don't have our own preferences - but also the actions
220 if (drop_target
->GetDefaultAction() == wxDragNone
)
222 // use default action set by wxDropSource::DoDragDrop()
223 if ( (gs_flagsForDrag
& wxDrag_DefaultMove
) == wxDrag_DefaultMove
&&
224 (context
->actions
& GDK_ACTION_MOVE
) )
226 // move is requested by the program and allowed by GTK+ - do it, even
227 // though suggested_action may be currently wxDragCopy
230 else // use whatever GTK+ says we should
232 result
= ConvertFromGTK(context
->suggested_action
);
234 if ( (result
== wxDragMove
) && !(gs_flagsForDrag
& wxDrag_AllowMove
) )
236 // we're requested to move but we can't
241 else if (drop_target
->GetDefaultAction() == wxDragMove
&&
242 (context
->actions
& GDK_ACTION_MOVE
))
248 if (context
->actions
& GDK_ACTION_COPY
)
250 else if (context
->actions
& GDK_ACTION_MOVE
)
256 if (drop_target
->m_firstMotion
)
258 /* the first "drag_motion" event substitutes a "drag_enter" event */
259 result
= drop_target
->OnEnter( x
, y
, result
);
263 /* give program a chance to react (i.e. to say no by returning FALSE) */
264 result
= drop_target
->OnDragOver( x
, y
, result
);
267 bool ret
= wxIsDragResultOk( result
);
270 GdkDragAction action
;
271 if (result
== wxDragCopy
)
272 action
= GDK_ACTION_COPY
;
273 else if (result
== wxDragLink
)
274 action
= GDK_ACTION_LINK
;
276 action
= GDK_ACTION_MOVE
;
278 gdk_drag_status( context
, action
, time
);
281 /* after this, invalidate the drop_target's GdkDragContext */
282 drop_target
->SetDragContext( NULL
);
284 /* this has to be done because GDK has no "drag_enter" event */
285 drop_target
->m_firstMotion
= false;
291 // ----------------------------------------------------------------------------
293 // ----------------------------------------------------------------------------
296 static gboolean
target_drag_drop( GtkWidget
*widget
,
297 GdkDragContext
*context
,
301 wxDropTarget
*drop_target
)
303 if (g_isIdle
) wxapp_install_idle_handler();
305 /* Owen Taylor: "if the drop is not in a drop zone,
306 return FALSE, otherwise, if you aren't accepting
307 the drop, call gtk_drag_finish() with success == FALSE
308 otherwise call gtk_drag_data_get()" */
310 // printf( "drop.\n" );
312 /* this seems to make a difference between not accepting
313 due to wrong target area and due to wrong format. let
314 us hope that this is not required.. */
316 /* inform the wxDropTarget about the current GdkDragContext.
317 this is only valid for the duration of this call */
318 drop_target
->SetDragContext( context
);
320 /* inform the wxDropTarget about the current drag widget.
321 this is only valid for the duration of this call */
322 drop_target
->SetDragWidget( widget
);
324 /* inform the wxDropTarget about the current drag time.
325 this is only valid for the duration of this call */
326 drop_target
->SetDragTime( time
);
329 wxDragResult result = wxDragMove;
330 if (context->suggested_action == GDK_ACTION_COPY) result = wxDragCopy;
333 /* reset the block here as someone might very well
334 show a dialog as a reaction to a drop and this
335 wouldn't work without events */
336 g_blockEventsOnDrag
= false;
338 bool ret
= drop_target
->OnDrop( x
, y
);
342 wxLogTrace(TRACE_DND
, wxT( "Drop target: OnDrop returned FALSE") );
344 /* cancel the whole thing */
345 gtk_drag_finish( context
,
346 FALSE
, /* no success */
347 FALSE
, /* don't delete data on dropping side */
352 wxLogTrace(TRACE_DND
, wxT( "Drop target: OnDrop returned TRUE") );
355 /* disable GUI threads */
358 GdkAtom format
= drop_target
->GetMatchingPair();
360 // this does happen somehow, see bug 555111
361 wxCHECK_MSG( format
, FALSE
, wxT("no matching GdkAtom for format?") );
364 GdkDragAction action = GDK_ACTION_MOVE;
365 if (result == wxDragCopy) action == GDK_ACTION_COPY;
366 context->action = action;
368 /* this should trigger an "drag_data_received" event */
369 gtk_drag_get_data( widget
,
375 /* re-enable GUI threads */
379 /* after this, invalidate the drop_target's GdkDragContext */
380 drop_target
->SetDragContext( NULL
);
382 /* after this, invalidate the drop_target's drag widget */
383 drop_target
->SetDragWidget( NULL
);
385 /* this has to be done because GDK has no "drag_enter" event */
386 drop_target
->m_firstMotion
= true;
392 // ----------------------------------------------------------------------------
393 // "drag_data_received"
394 // ----------------------------------------------------------------------------
397 static void target_drag_data_received( GtkWidget
*WXUNUSED(widget
),
398 GdkDragContext
*context
,
401 GtkSelectionData
*data
,
402 guint
WXUNUSED(info
),
404 wxDropTarget
*drop_target
)
406 if (g_isIdle
) wxapp_install_idle_handler();
408 /* Owen Taylor: "call gtk_drag_finish() with
411 if ((data
->length
<= 0) || (data
->format
!= 8))
413 /* negative data length and non 8-bit data format
414 qualifies for junk */
415 gtk_drag_finish (context
, FALSE
, FALSE
, time
);
420 wxLogTrace(TRACE_DND
, wxT( "Drop target: data received event") );
422 /* inform the wxDropTarget about the current GtkSelectionData.
423 this is only valid for the duration of this call */
424 drop_target
->SetDragData( data
);
426 wxDragResult result
= ConvertFromGTK(context
->action
);
428 if ( wxIsDragResultOk( drop_target
->OnData( x
, y
, result
) ) )
430 wxLogTrace(TRACE_DND
, wxT( "Drop target: OnData returned TRUE") );
432 /* tell GTK that data transfer was successful */
433 gtk_drag_finish( context
, TRUE
, FALSE
, time
);
437 wxLogTrace(TRACE_DND
, wxT( "Drop target: OnData returned FALSE") );
439 /* tell GTK that data transfer was not successful */
440 gtk_drag_finish( context
, FALSE
, FALSE
, time
);
443 /* after this, invalidate the drop_target's drag data */
444 drop_target
->SetDragData( NULL
);
448 //----------------------------------------------------------------------------
450 //----------------------------------------------------------------------------
452 wxDropTarget::wxDropTarget( wxDataObject
*data
)
453 : wxDropTargetBase( data
)
455 m_firstMotion
= true;
456 m_dragContext
= NULL
;
462 wxDragResult
wxDropTarget::OnDragOver( wxCoord
WXUNUSED(x
),
466 // GetMatchingPair() checks for m_dataObject too, no need to do it here
468 // disable the debug message from GetMatchingPair() by passing true to it
469 return (GetMatchingPair(true) != (GdkAtom
) 0) ? def
: wxDragNone
;
472 bool wxDropTarget::OnDrop( wxCoord
WXUNUSED(x
), wxCoord
WXUNUSED(y
) )
477 return (GetMatchingPair() != (GdkAtom
) 0);
480 wxDragResult
wxDropTarget::OnData( wxCoord
WXUNUSED(x
), wxCoord
WXUNUSED(y
),
486 if (GetMatchingPair() == (GdkAtom
) 0)
489 return GetData() ? def
: wxDragNone
;
492 GdkAtom
wxDropTarget::GetMatchingPair(bool quiet
)
500 GList
*child
= m_dragContext
->targets
;
503 GdkAtom formatAtom
= GPOINTER_TO_INT(child
->data
);
504 wxDataFormat
format( formatAtom
);
508 wxLogTrace(TRACE_DND
, wxT("Drop target: drag has format: %s"),
509 format
.GetId().c_str());
512 if (m_dataObject
->IsSupportedFormat( format
))
521 bool wxDropTarget::GetData()
529 wxDataFormat
dragFormat( m_dragData
->target
);
531 if (!m_dataObject
->IsSupportedFormat( dragFormat
))
534 m_dataObject
->SetData( dragFormat
, (size_t)m_dragData
->length
, (const void*)m_dragData
->data
);
539 void wxDropTarget::UnregisterWidget( GtkWidget
*widget
)
541 wxCHECK_RET( widget
!= NULL
, wxT("unregister widget is NULL") );
543 gtk_drag_dest_unset( widget
);
545 gtk_signal_disconnect_by_func( GTK_OBJECT(widget
),
546 GTK_SIGNAL_FUNC(target_drag_leave
), (gpointer
) this );
548 gtk_signal_disconnect_by_func( GTK_OBJECT(widget
),
549 GTK_SIGNAL_FUNC(target_drag_motion
), (gpointer
) this );
551 gtk_signal_disconnect_by_func( GTK_OBJECT(widget
),
552 GTK_SIGNAL_FUNC(target_drag_drop
), (gpointer
) this );
554 gtk_signal_disconnect_by_func( GTK_OBJECT(widget
),
555 GTK_SIGNAL_FUNC(target_drag_data_received
), (gpointer
) this );
558 void wxDropTarget::RegisterWidget( GtkWidget
*widget
)
560 wxCHECK_RET( widget
!= NULL
, wxT("register widget is NULL") );
562 /* gtk_drag_dest_set() determines what default behaviour we'd like
563 GTK to supply. we don't want to specify out targets (=formats)
564 or actions in advance (i.e. not GTK_DEST_DEFAULT_MOTION and
565 not GTK_DEST_DEFAULT_DROP). instead we react individually to
566 "drag_motion" and "drag_drop" events. this makes it possible
567 to allow dropping on only a small area. we should set
568 GTK_DEST_DEFAULT_HIGHLIGHT as this will switch on the nice
569 highlighting if dragging over standard controls, but this
570 seems to be broken without the other two. */
572 gtk_drag_dest_set( widget
,
573 (GtkDestDefaults
) 0, /* no default behaviour */
574 NULL
, /* we don't supply any formats here */
575 0, /* number of targets = 0 */
576 (GdkDragAction
) 0 ); /* we don't supply any actions here */
578 gtk_signal_connect( GTK_OBJECT(widget
), "drag_leave",
579 GTK_SIGNAL_FUNC(target_drag_leave
), (gpointer
) this );
581 gtk_signal_connect( GTK_OBJECT(widget
), "drag_motion",
582 GTK_SIGNAL_FUNC(target_drag_motion
), (gpointer
) this );
584 gtk_signal_connect( GTK_OBJECT(widget
), "drag_drop",
585 GTK_SIGNAL_FUNC(target_drag_drop
), (gpointer
) this );
587 gtk_signal_connect( GTK_OBJECT(widget
), "drag_data_received",
588 GTK_SIGNAL_FUNC(target_drag_data_received
), (gpointer
) this );
591 //----------------------------------------------------------------------------
593 //----------------------------------------------------------------------------
597 source_drag_data_get (GtkWidget
*WXUNUSED(widget
),
598 GdkDragContext
*WXUNUSED(context
),
599 GtkSelectionData
*selection_data
,
600 guint
WXUNUSED(info
),
601 guint
WXUNUSED(time
),
602 wxDropSource
*drop_source
)
604 if (g_isIdle
) wxapp_install_idle_handler();
606 wxDataFormat
format( selection_data
->target
);
608 wxLogTrace(TRACE_DND
, wxT("Drop source: format requested: %s"),
609 format
.GetId().c_str());
611 drop_source
->m_retValue
= wxDragCancel
;
613 wxDataObject
*data
= drop_source
->GetDataObject();
617 wxLogTrace(TRACE_DND
, wxT("Drop source: no data object") );
621 if (!data
->IsSupportedFormat(format
))
623 wxLogTrace(TRACE_DND
, wxT("Drop source: unsupported format") );
627 if (data
->GetDataSize(format
) == 0)
629 wxLogTrace(TRACE_DND
, wxT("Drop source: empty data") );
633 size_t size
= data
->GetDataSize(format
);
635 // printf( "data size: %d.\n", (int)data_size );
637 guchar
*d
= new guchar
[size
];
639 if (!data
->GetDataHere( format
, (void*)d
))
646 /* disable GUI threads */
649 gtk_selection_data_set( selection_data
,
650 selection_data
->target
,
656 /* enable GUI threads */
663 //----------------------------------------------------------------------------
664 // "drag_data_delete"
665 //----------------------------------------------------------------------------
668 static void source_drag_data_delete( GtkWidget
*WXUNUSED(widget
),
669 GdkDragContext
*WXUNUSED(context
),
670 wxDropSource
*WXUNUSED(drop_source
) )
673 wxapp_install_idle_handler();
675 // printf( "Drag source: drag_data_delete\n" );
679 //----------------------------------------------------------------------------
681 //----------------------------------------------------------------------------
684 static void source_drag_begin( GtkWidget
*WXUNUSED(widget
),
685 GdkDragContext
*WXUNUSED(context
),
686 wxDropSource
*WXUNUSED(drop_source
) )
689 wxapp_install_idle_handler();
691 // printf( "Drag source: drag_begin.\n" );
695 //----------------------------------------------------------------------------
697 //----------------------------------------------------------------------------
700 static void source_drag_end( GtkWidget
*WXUNUSED(widget
),
701 GdkDragContext
*WXUNUSED(context
),
702 wxDropSource
*drop_source
)
704 if (g_isIdle
) wxapp_install_idle_handler();
706 // printf( "Drag source: drag_end.\n" );
708 drop_source
->m_waiting
= false;
712 //-----------------------------------------------------------------------------
713 // "configure_event" from m_iconWindow
714 //-----------------------------------------------------------------------------
718 gtk_dnd_window_configure_callback( GtkWidget
*WXUNUSED(widget
), GdkEventConfigure
*WXUNUSED(event
), wxDropSource
*source
)
721 wxapp_install_idle_handler();
723 source
->GiveFeedback( ConvertFromGTK(source
->m_dragContext
->action
) );
729 //---------------------------------------------------------------------------
731 //---------------------------------------------------------------------------
733 wxDropSource::wxDropSource(wxWindow
*win
,
734 const wxIcon
&iconCopy
,
735 const wxIcon
&iconMove
,
736 const wxIcon
&iconNone
)
743 m_widget
= win
->m_widget
;
744 if (win
->m_wxwindow
) m_widget
= win
->m_wxwindow
;
746 m_retValue
= wxDragCancel
;
748 SetIcons(iconCopy
, iconMove
, iconNone
);
751 wxDropSource::wxDropSource(wxDataObject
& data
,
753 const wxIcon
&iconCopy
,
754 const wxIcon
&iconMove
,
755 const wxIcon
&iconNone
)
764 m_widget
= win
->m_widget
;
765 if (win
->m_wxwindow
) m_widget
= win
->m_wxwindow
;
767 m_retValue
= wxDragCancel
;
769 SetIcons(iconCopy
, iconMove
, iconNone
);
772 void wxDropSource::SetIcons(const wxIcon
&iconCopy
,
773 const wxIcon
&iconMove
,
774 const wxIcon
&iconNone
)
776 m_iconCopy
= iconCopy
;
777 m_iconMove
= iconMove
;
778 m_iconNone
= iconNone
;
780 if ( !m_iconCopy
.IsOk() )
781 m_iconCopy
= wxIcon(page_xpm
);
782 if ( !m_iconMove
.IsOk() )
783 m_iconMove
= m_iconCopy
;
784 if ( !m_iconNone
.IsOk() )
785 m_iconNone
= m_iconCopy
;
788 wxDropSource::~wxDropSource()
792 void wxDropSource::PrepareIcon( int action
, GdkDragContext
*context
)
794 // get the right icon to display
796 if ( action
& GDK_ACTION_MOVE
)
798 else if ( action
& GDK_ACTION_COPY
)
804 if ( icon
->GetMask() )
805 mask
= icon
->GetMask()->GetBitmap();
809 GdkPixmap
*pixmap
= icon
->GetPixmap();
812 gdk_window_get_size (pixmap
, &width
, &height
);
814 GdkColormap
*colormap
= gtk_widget_get_colormap( m_widget
);
815 gtk_widget_push_visual (gdk_colormap_get_visual (colormap
));
816 gtk_widget_push_colormap (colormap
);
818 m_iconWindow
= gtk_window_new (GTK_WINDOW_POPUP
);
819 gtk_widget_set_events (m_iconWindow
, GDK_BUTTON_PRESS_MASK
| GDK_BUTTON_RELEASE_MASK
);
820 gtk_widget_set_app_paintable (GTK_WIDGET (m_iconWindow
), TRUE
);
822 gtk_widget_pop_visual ();
823 gtk_widget_pop_colormap ();
825 gtk_widget_set_usize (m_iconWindow
, width
, height
);
826 gtk_widget_realize (m_iconWindow
);
828 gtk_signal_connect( GTK_OBJECT(m_iconWindow
), "configure_event",
829 GTK_SIGNAL_FUNC(gtk_dnd_window_configure_callback
), (gpointer
)this );
831 gdk_window_set_back_pixmap (m_iconWindow
->window
, pixmap
, FALSE
);
834 gtk_widget_shape_combine_mask (m_iconWindow
, mask
, 0, 0);
836 gtk_drag_set_icon_widget( context
, m_iconWindow
, 0, 0 );
839 wxDragResult
wxDropSource::DoDragDrop(int flags
)
841 wxCHECK_MSG( m_data
&& m_data
->GetFormatCount(), wxDragNone
,
842 wxT("Drop source: no data") );
845 if (g_blockEventsOnDrag
)
848 // don't start dragging if no button is down
849 if (g_lastButtonNumber
== 0)
852 // we can only start a drag after a mouse event
853 if (g_lastMouseEvent
== NULL
)
857 g_blockEventsOnDrag
= true;
863 GtkTargetList
*target_list
= gtk_target_list_new( NULL
, 0 );
865 wxDataFormat
*array
= new wxDataFormat
[ m_data
->GetFormatCount() ];
866 m_data
->GetAllFormats( array
);
867 size_t count
= m_data
->GetFormatCount();
868 for (size_t i
= 0; i
< count
; i
++)
870 GdkAtom atom
= array
[i
];
871 wxLogTrace(TRACE_DND
, wxT("Drop source: Supported atom %s"), gdk_atom_name( atom
));
872 gtk_target_list_add( target_list
, atom
, 0, 0 );
876 int action
= GDK_ACTION_COPY
;
877 if ( flags
& wxDrag_AllowMove
)
878 action
|= GDK_ACTION_MOVE
;
880 // VZ: as we already use g_blockEventsOnDrag it shouldn't be that bad
881 // to use a global to pass the flags to the drop target but I'd
882 // surely prefer a better way to do it
883 gs_flagsForDrag
= flags
;
885 GdkDragContext
*context
= gtk_drag_begin( m_widget
,
887 (GdkDragAction
)action
,
888 g_lastButtonNumber
, // number of mouse button which started drag
889 (GdkEvent
*) g_lastMouseEvent
);
891 m_dragContext
= context
;
893 PrepareIcon( action
, context
);
896 gtk_main_iteration();
898 m_retValue
= ConvertFromGTK(context
->action
);
899 if ( m_retValue
== wxDragNone
)
900 m_retValue
= wxDragCancel
;
902 g_blockEventsOnDrag
= false;
909 void wxDropSource::RegisterWindow()
911 if (!m_widget
) return;
913 gtk_signal_connect( GTK_OBJECT(m_widget
), "drag_data_get",
914 GTK_SIGNAL_FUNC (source_drag_data_get
), (gpointer
) this);
915 gtk_signal_connect (GTK_OBJECT(m_widget
), "drag_data_delete",
916 GTK_SIGNAL_FUNC (source_drag_data_delete
), (gpointer
) this );
917 gtk_signal_connect (GTK_OBJECT(m_widget
), "drag_begin",
918 GTK_SIGNAL_FUNC (source_drag_begin
), (gpointer
) this );
919 gtk_signal_connect (GTK_OBJECT(m_widget
), "drag_end",
920 GTK_SIGNAL_FUNC (source_drag_end
), (gpointer
) this );
924 void wxDropSource::UnregisterWindow()
926 if (!m_widget
) return;
928 gtk_signal_disconnect_by_func( GTK_OBJECT(m_widget
),
929 GTK_SIGNAL_FUNC(source_drag_data_get
), (gpointer
) this );
930 gtk_signal_disconnect_by_func( GTK_OBJECT(m_widget
),
931 GTK_SIGNAL_FUNC(source_drag_data_delete
), (gpointer
) this );
932 gtk_signal_disconnect_by_func( GTK_OBJECT(m_widget
),
933 GTK_SIGNAL_FUNC(source_drag_begin
), (gpointer
) this );
934 gtk_signal_disconnect_by_func( GTK_OBJECT(m_widget
),
935 GTK_SIGNAL_FUNC(source_drag_end
), (gpointer
) this );
939 // wxUSE_DRAG_AND_DROP