Re: [Evolution-hackers] Switching the current folder from a plugin
- From: "Paarvai Naai" <opensource3141 gmail com>
- To: "Srinivasa Ragavan" <sragavan novell com>
- Cc: evolution-hackers gnome org
- Subject: Re: [Evolution-hackers] Switching the current folder from a plugin
- Date: Thu, 29 May 2008 07:50:11 -0700
I appreciate the quick reply. Perhaps I should have been a bit more
specific. I had previously read through the em-*.c code and have a
general understanding of how it works. The difficulty lies in the
details.
Are the following steps sufficient to change the current folder view:
1) Get the EMFolderTree object for the GUI
2) Obtain the URI for the folder to be selected
3) Call em_folder_tree_set_selected()
If so, the problem is with step #1. I am able to get an
EMFolderTreeModel object by using mail_component_peek_tree_model(),
but have not found a way to get the current EMFolderTree object. Is
there a direct method or is it necessary to walk the GUI widget
hierarchy to find the pointer?
Thanks,
Paarvai
On Wed, May 28, 2008 at 9:43 PM, Srinivasa Ragavan <sragavan novell com> wrote:
> You need to look at em-folder-tree.c. That holds the code.
>
> -Srini.
> On Wed, 2008-05-28 at 14:58 -0700, Paarvai Naai wrote:
>> Hi all,
>>
>> I'm hoping that somebody on this list will have a quick answer to this
>> question. I am currently writing a plugin that manipulates folders in
>> Evolution. I was able to figure out how to move messages between
>> folders, but was not able to find the required API calls to make
>> Evolution switch the current folder view in the GUI. I'd like the
>> behavior to be as if the user clicked on a folder in the tree. If
>> anyone can point me in the right direction, the help would be much
>> appreciated.
>>
>> Thanks,
>> Paarvai
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]