diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-17 00:17:56 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-17 00:17:56 +0000 |
commit | cd6966178e34f1b71bdb36bb6f1b4cc39e103297 (patch) | |
tree | 44fb525549c7bee0fb145fccd4179d88a9d22785 /chrome/browser/gtk/browser_toolbar_gtk.cc | |
parent | 0195ac6a92a2348df849d367e4ec229af3f168e5 (diff) | |
download | chromium_src-cd6966178e34f1b71bdb36bb6f1b4cc39e103297.zip chromium_src-cd6966178e34f1b71bdb36bb6f1b4cc39e103297.tar.gz chromium_src-cd6966178e34f1b71bdb36bb6f1b4cc39e103297.tar.bz2 |
Allow dragging a link from the web contents to the bookmark bar to get a named bookmark.
Also, change the naming scheme of the DnD targets.
BUG=16791
TEST=select a link in the web page and drag it to the bookmark bar.
Review URL: http://codereview.chromium.org/155661
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20921 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/browser_toolbar_gtk.cc')
-rw-r--r-- | chrome/browser/gtk/browser_toolbar_gtk.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/gtk/browser_toolbar_gtk.cc b/chrome/browser/gtk/browser_toolbar_gtk.cc index 3fd79b5..ea39041 100644 --- a/chrome/browser/gtk/browser_toolbar_gtk.cc +++ b/chrome/browser/gtk/browser_toolbar_gtk.cc @@ -394,8 +394,8 @@ void BrowserToolbarGtk::SetUpDragForHomeButton() { gtk_drag_dest_set(home_->widget(), GTK_DEST_DEFAULT_ALL, NULL, 0, GDK_ACTION_COPY); GtkDndUtil::SetDestTargetListFromCodeMask(home_->widget(), - GtkDndUtil::X_CHROME_TEXT_PLAIN | - GtkDndUtil::X_CHROME_TEXT_URI_LIST); + GtkDndUtil::TEXT_PLAIN | + GtkDndUtil::TEXT_URI_LIST); g_signal_connect(home_->widget(), "drag-data-received", G_CALLBACK(OnDragDataReceived), this); @@ -526,7 +526,7 @@ void BrowserToolbarGtk::OnDragDataReceived(GtkWidget* widget, GdkDragContext* drag_context, gint x, gint y, GtkSelectionData* data, guint info, guint time, BrowserToolbarGtk* toolbar) { - if (info != GtkDndUtil::X_CHROME_TEXT_PLAIN) { + if (info != GtkDndUtil::TEXT_PLAIN) { NOTIMPLEMENTED() << "Only support plain text drops for now, sorry!"; return; } |