aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-01-15 23:32:25 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:27 +0800
commitd95fd4173b7f10788da46f07801e06f22922ffde (patch)
tree6f31e0caeb9a452a0964098c122c85c89a862cf3
parentf4927d794a2628f2c38998b0c2ec8fff7e2cabb7 (diff)
downloadgsoc2013-evolution-d95fd4173b7f10788da46f07801e06f22922ffde.tar.gz
gsoc2013-evolution-d95fd4173b7f10788da46f07801e06f22922ffde.tar.zst
gsoc2013-evolution-d95fd4173b7f10788da46f07801e06f22922ffde.zip
Adapt EMFolderTree to latest gtk+-3.0 API.
-rw-r--r--mail/em-folder-tree.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index 5fd42c11b9..3472d690ce 100644
--- a/mail/em-folder-tree.c
+++ b/mail/em-folder-tree.c
@@ -1739,8 +1739,7 @@ tree_drag_begin (GtkWidget *widget,
EMFolderTreePrivate *priv = folder_tree->priv;
GtkTreeSelection *selection;
GtkTreeView *tree_view;
- GdkColormap *colormap;
- GdkPixmap *pixmap;
+ cairo_surface_t *s;
GtkTreeModel *model;
GtkTreePath *path;
GtkTreeIter iter;
@@ -1753,9 +1752,8 @@ tree_drag_begin (GtkWidget *widget,
path = gtk_tree_model_get_path (model, &iter);
priv->drag_row = gtk_tree_row_reference_new (model, path);
- pixmap = gtk_tree_view_create_row_drag_icon (tree_view, path);
- colormap = gdk_drawable_get_colormap (pixmap);
- gtk_drag_set_icon_pixmap (context, colormap, pixmap, NULL, 0, 0);
+ s = gtk_tree_view_create_row_drag_icon (tree_view, path);
+ gtk_drag_set_icon_surface (context, s);
gtk_tree_path_free (path);
}