aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2013-07-31 16:49:47 +0800
committerMilan Crha <mcrha@redhat.com>2013-07-31 16:49:47 +0800
commit9f2b63e96abe929368ca6d9b5eb8f4b0dd97fd8d (patch)
tree53da8cb77d96fb24197fe6d1110508129207c6fd
parent99e63b4f7dd6be4d7a65b0d150d7cb0a69adf5f1 (diff)
downloadgsoc2013-evolution-9f2b63e96abe929368ca6d9b5eb8f4b0dd97fd8d.tar.gz
gsoc2013-evolution-9f2b63e96abe929368ca6d9b5eb8f4b0dd97fd8d.tar.zst
gsoc2013-evolution-9f2b63e96abe929368ca6d9b5eb8f4b0dd97fd8d.zip
[workaround] Bug #695633 - Attachments disappear after opening one
-rw-r--r--e-util/e-attachment-view.c2
-rw-r--r--e-util/e-attachment.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/e-util/e-attachment-view.c b/e-util/e-attachment-view.c
index a287f8e430..2d6e090dd1 100644
--- a/e-util/e-attachment-view.c
+++ b/e-util/e-attachment-view.c
@@ -1147,7 +1147,7 @@ e_attachment_view_open_path (EAttachmentView *view,
store = e_attachment_view_get_store (view);
model = GTK_TREE_MODEL (store);
- gtk_tree_model_get_iter (model, &iter, path);
+ g_return_if_fail (gtk_tree_model_get_iter (model, &iter, path));
gtk_tree_model_get (model, &iter, column_id, &attachment, -1);
parent = gtk_widget_get_toplevel (GTK_WIDGET (view));
diff --git a/e-util/e-attachment.c b/e-util/e-attachment.c
index e068b13a90..bfde09d900 100644
--- a/e-util/e-attachment.c
+++ b/e-util/e-attachment.c
@@ -560,10 +560,10 @@ attachment_set_saving (EAttachment *attachment,
attachment->priv->saving = saving;
attachment->priv->last_percent_notify = 0;
- g_object_freeze_notify (G_OBJECT (attachment));
+ /* g_object_freeze_notify (G_OBJECT (attachment));
g_object_notify (G_OBJECT (attachment), "percent");
g_object_notify (G_OBJECT (attachment), "saving");
- g_object_thaw_notify (G_OBJECT (attachment));
+ g_object_thaw_notify (G_OBJECT (attachment)); */
}
static void
@@ -587,7 +587,7 @@ attachment_progress_cb (goffset current_num_bytes,
if (new_percent != attachment->priv->percent) {
attachment->priv->percent = new_percent;
- g_object_notify (G_OBJECT (attachment), "percent");
+ /* g_object_notify (G_OBJECT (attachment), "percent"); */
}
}