diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-06 21:09:50 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-06 21:09:50 +0000 |
commit | 97a1d694d347ce8b84fca7ed1e17782726138f54 (patch) | |
tree | 22decd8b3a703cd63ae9da9f9bdbd0cd9f9817ff /chrome | |
parent | 312200a31582330d0c68b9c29ab9aa10775c3568 (diff) | |
download | chromium_src-97a1d694d347ce8b84fca7ed1e17782726138f54.zip chromium_src-97a1d694d347ce8b84fca7ed1e17782726138f54.tar.gz chromium_src-97a1d694d347ce8b84fca7ed1e17782726138f54.tar.bz2 |
Add another drag flavor for bookmark menu controller menu items.
BUG=26835
Review URL: http://codereview.chromium.org/372003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31295 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/gtk/bookmark_menu_controller_gtk.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/gtk/bookmark_menu_controller_gtk.cc b/chrome/browser/gtk/bookmark_menu_controller_gtk.cc index b835dcc..6b4ca8c 100644 --- a/chrome/browser/gtk/bookmark_menu_controller_gtk.cc +++ b/chrome/browser/gtk/bookmark_menu_controller_gtk.cc @@ -188,8 +188,10 @@ void BookmarkMenuController::BuildMenu(const BookmarkNode* parent, gtk_drag_source_set(menu_item, GDK_BUTTON1_MASK, NULL, 0, GDK_ACTION_MOVE); - GtkDndUtil::SetSourceTargetListFromCodeMask( - menu_item, GtkDndUtil::CHROME_BOOKMARK_ITEM); + int target_mask = GtkDndUtil::CHROME_BOOKMARK_ITEM; + if (node->is_url()) + target_mask |= GtkDndUtil::TEXT_URI_LIST; + GtkDndUtil::SetSourceTargetListFromCodeMask(menu_item, target_mask); g_signal_connect(G_OBJECT(menu_item), "drag-begin", G_CALLBACK(&OnMenuItemDragBegin), this); g_signal_connect(G_OBJECT(menu_item), "drag-end", |