[evolution/webkit] Adapt EMFolderTree to latest gtk+-3.0 API.
- From: Dan VrÃtil <dvratil src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit] Adapt EMFolderTree to latest gtk+-3.0 API.
- Date: Mon, 11 Jul 2011 14:07:06 +0000 (UTC)
commit 3feb0d4a73f103a8bc383a4ffae365b0b22a7e8c
Author: Matthew Barnes <mbarnes redhat com>
Date: Sat Jan 15 10:32:25 2011 -0500
Adapt EMFolderTree to latest gtk+-3.0 API.
mail/em-folder-tree.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index 5fd42c1..3472d69 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]