failed attempt to change the default action for GTK dnd (nothing changed finally)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -571,7 +571,7 @@ source_drag_data_get (GtkWidget *WXUNUSED(widget),
|
|||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
||||||
static void source_drag_data_delete( GtkWidget *WXUNUSED(widget),
|
static void source_drag_data_delete( GtkWidget *WXUNUSED(widget),
|
||||||
GdkDragContext *WXUNUSED(context),
|
GdkDragContext *context,
|
||||||
wxDropSource *WXUNUSED(drop_source) )
|
wxDropSource *WXUNUSED(drop_source) )
|
||||||
{
|
{
|
||||||
if (g_isIdle)
|
if (g_isIdle)
|
||||||
@@ -800,8 +800,9 @@ wxDragResult wxDropSource::DoDragDrop( bool allowMove )
|
|||||||
/* don't start dragging if no button is down */
|
/* don't start dragging if no button is down */
|
||||||
if (button_number)
|
if (button_number)
|
||||||
{
|
{
|
||||||
GdkDragAction action = GDK_ACTION_COPY;
|
int action = GDK_ACTION_COPY;
|
||||||
if (allowMove) action = (GdkDragAction)(GDK_ACTION_MOVE|GDK_ACTION_COPY);
|
if ( allowMove )
|
||||||
|
action |= GDK_ACTION_MOVE;
|
||||||
GdkDragContext *context = gtk_drag_begin( m_widget,
|
GdkDragContext *context = gtk_drag_begin( m_widget,
|
||||||
target_list,
|
target_list,
|
||||||
action,
|
action,
|
||||||
|
@@ -571,7 +571,7 @@ source_drag_data_get (GtkWidget *WXUNUSED(widget),
|
|||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
||||||
static void source_drag_data_delete( GtkWidget *WXUNUSED(widget),
|
static void source_drag_data_delete( GtkWidget *WXUNUSED(widget),
|
||||||
GdkDragContext *WXUNUSED(context),
|
GdkDragContext *context,
|
||||||
wxDropSource *WXUNUSED(drop_source) )
|
wxDropSource *WXUNUSED(drop_source) )
|
||||||
{
|
{
|
||||||
if (g_isIdle)
|
if (g_isIdle)
|
||||||
@@ -800,8 +800,9 @@ wxDragResult wxDropSource::DoDragDrop( bool allowMove )
|
|||||||
/* don't start dragging if no button is down */
|
/* don't start dragging if no button is down */
|
||||||
if (button_number)
|
if (button_number)
|
||||||
{
|
{
|
||||||
GdkDragAction action = GDK_ACTION_COPY;
|
int action = GDK_ACTION_COPY;
|
||||||
if (allowMove) action = (GdkDragAction)(GDK_ACTION_MOVE|GDK_ACTION_COPY);
|
if ( allowMove )
|
||||||
|
action |= GDK_ACTION_MOVE;
|
||||||
GdkDragContext *context = gtk_drag_begin( m_widget,
|
GdkDragContext *context = gtk_drag_begin( m_widget,
|
||||||
target_list,
|
target_list,
|
||||||
action,
|
action,
|
||||||
|
Reference in New Issue
Block a user