Re: Nautilus incorrecting displaying a warning dialog?
- From: Alexander Larsson <alexl redhat com>
- To: Dennis Cranston <dennis_cranston yahoo com>
- Cc: Nautilus <nautilus-list gnome org>
- Subject: Re: Nautilus incorrecting displaying a warning dialog?
- Date: 13 Oct 2003 15:26:55 +0200
On Sat, 2003-10-11 at 06:55, Dennis Cranston wrote:
> Hi,
>
> Today, I added drag and drop support using the middle mouse button (GDK_BUTTON2_MASK) to
> gnome-search-tool. I wanted to include support for the GDK_ACTION_ASK drag action so that users
> could select copy, move, link or cancel from nautilus' popup menu.
>
> I have this working, but I am seeing an oddity when I select the cancel menu item. If I drop a
> file on the desktop and select cancel, nautilus will display the warning dialog, "An invalid drag
> type was used." Nautilus should not display this warning if a user selects cancel.
>
> After a little research, I found in the file nautilus/src/file-manager/fm-icon-view.c that the
> function nautilus_drag_drop_action_ask() is returning 0 (an invalid GdkDragAction) which triggers
> the warning dialog.
>
> Any ideas why nautilus isn't handling cancel correctly? I am attached a proposed patch to disable
> the the warning dialog if no GdkDragAction is selected.
That change isn't entierly right. It should just check for action == 0
inside the if (action == GDK_ACTION_ASK) block. If someone externally
passes 0 for action we probably want the dialog.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Alexander Larsson Red Hat, Inc
alexl redhat com alla lysator liu se
He's a scarfaced arachnophobic librarian searching for his wife's true killer.
She's a sharp-shooting belly-dancing queen of the dead with only herself to
blame. They fight crime!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]