After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 319376 - evolution fails to display mail message list
evolution fails to display mail message list
Status: RESOLVED OBSOLETE
Product: evolution
Classification: Applications
Component: Mailer
2.4.x (obsolete)
Other All
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2005-10-21 07:09 UTC by Jeff Cai
Modified: 2010-02-16 09:40 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12


Attachments
Don't check preview_active (530 bytes, patch)
2007-08-21 03:22 UTC, Jeff Cai
reviewed Details | Review

Description Jeff Cai 2005-10-21 07:09:24 UTC
Please describe the problem:
When switch to the mail component from other components, it fails to display
both the preview frame and the message list. The height of the message list
nearly becomes 0.


Steps to reproduce:
1. Select contact or task conponment except mail conponent.
2. Quit evolution
3. Restart evolution, Now it should be on the component last used.
4. Switch to mail component


Actual results:
The message list can't nearly be seen. The preview window is so lary that it is
full of the folder view window on the right.

Expected results:
The message list can be seen normally.

Does this happen every time?
Yes. 

Other information:
You have to use the most recent version of Evolution. For older version on
linux, it will not happen. But on solaris version, it will happen on both new
and old. 

It seems that the initialzition of EMFolder is incorrect. The message list is
not set correct size. In older version, em_folder_show_preview will always
invoked no matter whether the preview frame is active or not.
Comment 1 Jeff Cai 2005-10-21 07:15:25 UTC
Earlier there is a modification that changes the flag declartion
"preview_active" from one bit of int to one bit gunit. After this modification,
the folder view will not redrawn every time. So we can see this bug.
But you can see it's not the earlier modification to cause the bug. In fact, the
bug is caused by other codes.
Comment 2 Sankar P 2005-10-21 07:41:52 UTC
Jeff: Can you revert the patch that makes this bug visible? Once we fix this bug
which was hidden for so long, we can include your patch once again. 
Comment 3 Jeff Cai 2005-10-21 08:02:21 UTC
OK.
But even without my patch, the message list can't be seen on solaris. 

That is beacuse:

in file em-folder-view.h

old declaration:
    int preview_active:1
new declaration in my patch:
    guint preview_active:1

On solaris, it doesn't have any influence no matter it is 'int' or 'guint'.
If preview_active it TRUE, it is '1' in fact. but on linux, for guint, it is
'-1'.
So the bug can appear on solaris but not on linux.

Comment 4 Jeff Cai 2007-08-21 03:22:38 UTC
Created attachment 94034 [details] [review]
Don't check preview_active
Comment 5 Srinivasa Ragavan 2007-08-21 06:15:19 UTC
jeff, what do you think this patch does? Im not able to get it.
Comment 6 Jeff Cai 2007-08-21 06:30:21 UTC
I can't provide better solution on Solaris yet. Just put here and I hope someone can provide  another patch for this.
Comment 7 Srinivasa Ragavan 2007-08-21 07:58:09 UTC
jeff, what is the implication of this comment on non-solaris build?
Comment 8 Jeff Cai 2007-08-21 08:20:53 UTC
Please see following code:

        if ((emfb->view.preview_active ^ state) == 0
            || emfb->view.list == NULL) {
                if (state && emfb->priv->scope_restricted && emfb->view.list->cursor_uid && *(emfb->view.list->cursor_uid)) {
                        e_search_bar_scope_enable ((ESearchBar *)emfb->search, E_FILTERBAR_CURRENT_MESSAGE_ID, TRUE);
                        emfb->priv->scope_restricted = FALSE;
                }

                return;
        }


currently preview_active is defined as guint. On Linux, when this flag should be true, preview_active=-1 (it should be 1). This will cause the condition can never be met  and the code under that "if" section become trash because it will never be executed. On Solaris, preview_active is 1 (this is correct), the sentences under the "if" can be executed .

Comment 9 Srinivasa Ragavan 2007-08-21 08:33:39 UTC
OK, if the condition gets executed, it sets the preview. but how does it help this bug? Sorry, Im not getting anything here.
Comment 10 Jeff Cai 2007-08-21 08:44:36 UTC
On solaris, when the condition is met it will not recalculate the size of preview window . This will cause the window to become very large. So the patch removes the "if" section.
Comment 11 Srinivasa Ragavan 2007-08-21 09:44:39 UTC
Jeff, to over come all these, things, I think you can make that a boolean or so and rewrite it. I think that commenting would have some side effects on non-solaris.
Comment 12 Akhil Laddha 2009-09-09 12:00:18 UTC
Panel resize issues have been addressed in kill-bonobo branch which is merged in 2.29.x
Comment 13 Milan Crha 2009-12-22 12:32:29 UTC
Jeff, can you try with 2.29.3 or 2.29.4 and report back, please?
Comment 14 Tobias Mueller 2010-02-16 09:40:51 UTC
I assume this issue is OBSOLETE by now. If not, please reopen.