Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3366)

Unified Diff: chrome/browser/ui/gtk/custom_drag.cc

Issue 9815006: ui/gfx: Remove the deprecated "operator const GdkPixbuf*" from Image API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/gtk/browser_titlebar.cc ('k') | chrome/browser/ui/gtk/download/download_item_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/custom_drag.cc
diff --git a/chrome/browser/ui/gtk/custom_drag.cc b/chrome/browser/ui/gtk/custom_drag.cc
index 5cc5ee81cc9a04f8d148bef89438185c204b4ab8..e60bb173b77f15b23dc5d469546d6086ac49ce49 100644
--- a/chrome/browser/ui/gtk/custom_drag.cc
+++ b/chrome/browser/ui/gtk/custom_drag.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -68,7 +68,7 @@ CustomDrag::~CustomDrag() {
void CustomDrag::OnDragBegin(GtkWidget* widget, GdkDragContext* drag_context) {
if (image_)
- gtk_drag_set_icon_pixbuf(drag_context, *image_, 0, 0);
+ gtk_drag_set_icon_pixbuf(drag_context, image_->ToGdkPixbuf(), 0, 0);
}
void CustomDrag::OnDragEnd(GtkWidget* widget, GdkDragContext* drag_context) {
@@ -111,7 +111,7 @@ void DownloadItemDrag::SetSource(GtkWidget* widget,
G_CALLBACK(OnDragDataGetStandalone), item);
if (icon)
- gtk_drag_source_set_icon_pixbuf(widget, *icon);
+ gtk_drag_source_set_icon_pixbuf(widget, icon->ToGdkPixbuf());
}
// static
« no previous file with comments | « chrome/browser/ui/gtk/browser_titlebar.cc ('k') | chrome/browser/ui/gtk/download/download_item_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698