aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-tree.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-01-15 23:32:25 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-01-26 21:49:12 +0800
commitbd838ce9261fdd6489b8bd327fc6a0e698dd8cda (patch)
treea277c01fb3b030e8f06243ae387490d91cf84ac5 /mail/em-folder-tree.c
parentf1cf07c14e0331571ab7b27f068906ba40fe18eb (diff)
downloadgsoc2013-evolution-bd838ce9261fdd6489b8bd327fc6a0e698dd8cda.tar.gz
gsoc2013-evolution-bd838ce9261fdd6489b8bd327fc6a0e698dd8cda.tar.zst
gsoc2013-evolution-bd838ce9261fdd6489b8bd327fc6a0e698dd8cda.zip
Adapt EMFolderTree to latest gtk+-3.0 API.
Diffstat (limited to 'mail/em-folder-tree.c')
-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);
}