[gtk+] Fix a crash in recent chooser DND
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix a crash in recent chooser DND
- Date: Sat, 6 Sep 2014 14:39:06 +0000 (UTC)
commit e5eb59a2f863dbcd98f7ef0870495c7799049533
Author: Hiroyuki Ito <ZXB01226 nifty com>
Date: Sat Sep 6 01:02:00 2014 +0000
Fix a crash in recent chooser DND
Reported in https://bugzilla.gnome.org/show_bug.cgi?id=736173
gtk/gtkrecentchooserdefault.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkrecentchooserdefault.c b/gtk/gtkrecentchooserdefault.c
index 62955f3..379d04f 100644
--- a/gtk/gtkrecentchooserdefault.c
+++ b/gtk/gtkrecentchooserdefault.c
@@ -1453,16 +1453,10 @@ append_uri_to_urilist (GtkTreeModel *model,
gpointer user_data)
{
DragData *drag_data = (DragData *) user_data;
- GtkTreeModel *child_model;
- GtkTreeIter child_iter;
gchar *uri = NULL;
gsize pos;
- child_model = gtk_tree_model_filter_get_model (GTK_TREE_MODEL_FILTER (model));
- gtk_tree_model_filter_convert_iter_to_child_iter (GTK_TREE_MODEL_FILTER (model),
- &child_iter,
- iter);
- gtk_tree_model_get (child_model, &child_iter,
+ gtk_tree_model_get (model, iter,
RECENT_URI_COLUMN, &uri,
-1);
g_assert (uri != NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]