diff options
author | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-15 01:27:13 +0000 |
---|---|---|
committer | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-15 01:27:13 +0000 |
commit | c114d071107fd3997bb1feb66767156f9b85f84d (patch) | |
tree | 75997b4cb378933b109193e69ff16e51e129dff0 /app/gtk_dnd_util.h | |
parent | 46fc912073cc67de0e21ac4e3bc7db33980d2376 (diff) | |
download | chromium_src-c114d071107fd3997bb1feb66767156f9b85f84d.zip chromium_src-c114d071107fd3997bb1feb66767156f9b85f84d.tar.gz chromium_src-c114d071107fd3997bb1feb66767156f9b85f84d.tar.bz2 |
Allow link drags from Chrome to create a shortcut on the desktop.
This required adding the netscape link+title format to the drag data
(we were already doing this on windows) and adding GDK_ACTION_LINK
to the GdkDragAction passed into gtk_drag_begin.
BUG=27337
TEST=Drag a link to the desktop, it should create a shortcut (.desktop file).
Review URL: http://codereview.chromium.org/542072
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36321 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/gtk_dnd_util.h')
-rw-r--r-- | app/gtk_dnd_util.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/gtk_dnd_util.h b/app/gtk_dnd_util.h index 7365cec..4b6155e 100644 --- a/app/gtk_dnd_util.h +++ b/app/gtk_dnd_util.h @@ -27,7 +27,11 @@ class GtkDndUtil { TEXT_URI_LIST = 1 << 5, TEXT_HTML = 1 << 6, - INVALID_TARGET = 1 << 7, + // Other types. NETSCAPE_URL is provided for compatibility with other + // apps. + NETSCAPE_URL = 1 << 7, + + INVALID_TARGET = 1 << 8, }; // Get the atom for a given target (of the above enum type). Will return NULL |