[evolution] Adapt EMFolderTree to latest gtk+-3.0 API.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Adapt EMFolderTree to latest gtk+-3.0 API.
- Date: Wed, 26 Jan 2011 16:54:12 +0000 (UTC)
commit bd838ce9261fdd6489b8bd327fc6a0e698dd8cda
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]