diff options
Diffstat (limited to 'app/gtk_dnd_util.cc')
-rw-r--r-- | app/gtk_dnd_util.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/gtk_dnd_util.cc b/app/gtk_dnd_util.cc index a7933ab..da4362dc 100644 --- a/app/gtk_dnd_util.cc +++ b/app/gtk_dnd_util.cc @@ -44,6 +44,11 @@ GdkAtom GtkDndUtil::GetAtomForTarget(int target) { const_cast<char*>("application/x-chrome-named-url"), false); return named_url; + case NETSCAPE_URL: + static GdkAtom netscape_url = gdk_atom_intern( + const_cast<char*>("_NETSCAPE_URL"), false); + return netscape_url; + default: NOTREACHED(); } @@ -101,6 +106,11 @@ void GtkDndUtil::AddTargetToList(GtkTargetList* targets, int target_code) { gtk_target_list_add(targets, GetAtomForTarget(TEXT_PLAIN), 0, TEXT_HTML); break; + case NETSCAPE_URL: + gtk_target_list_add(targets, GetAtomForTarget(NETSCAPE_URL), 0, + NETSCAPE_URL); + break; + case CHROME_TAB: case CHROME_BOOKMARK_ITEM: case CHROME_NAMED_URL: |