diff options
author | Milan Crha <mcrha@redhat.com> | 2013-07-31 16:49:47 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2013-07-31 16:51:06 +0800 |
commit | 856b0e7450b1f0efd8075cf9a74fd0d5188c2dd6 (patch) | |
tree | ce7f5b677975851037e0b8ef0ea00f8383a45649 | |
parent | 05d0c5f26019eddee1cad15cd7792704902cb148 (diff) | |
download | gsoc2013-evolution-856b0e7450b1f0efd8075cf9a74fd0d5188c2dd6.tar gsoc2013-evolution-856b0e7450b1f0efd8075cf9a74fd0d5188c2dd6.tar.gz gsoc2013-evolution-856b0e7450b1f0efd8075cf9a74fd0d5188c2dd6.tar.bz2 gsoc2013-evolution-856b0e7450b1f0efd8075cf9a74fd0d5188c2dd6.tar.lz gsoc2013-evolution-856b0e7450b1f0efd8075cf9a74fd0d5188c2dd6.tar.xz gsoc2013-evolution-856b0e7450b1f0efd8075cf9a74fd0d5188c2dd6.tar.zst gsoc2013-evolution-856b0e7450b1f0efd8075cf9a74fd0d5188c2dd6.zip |
[workaround] Bug #695633 - Attachments disappear after opening one
-rw-r--r-- | e-util/e-attachment-view.c | 2 | ||||
-rw-r--r-- | e-util/e-attachment.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/e-util/e-attachment-view.c b/e-util/e-attachment-view.c index 1bf4b7cd88..b0c4fd8513 100644 --- a/e-util/e-attachment-view.c +++ b/e-util/e-attachment-view.c @@ -1150,7 +1150,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 864d82b2ab..1b42693072 100644 --- a/e-util/e-attachment.c +++ b/e-util/e-attachment.c @@ -582,10 +582,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 @@ -609,7 +609,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"); */ } } |