|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Programmatically Invoking Contact EditorGreetings,
I have a pointer to an EContact in an application I am working on and I'd like to progmatically invoke the contact editor GUI in Evolution with this EContact loaded in it. Can this be done, and if so, what steps are required? I took a look at the Evolution API reference and I could find a lot on the EDS aspect, but nothing on interacting with the GUI itself. Thanks. -- Kip Warner -- Software Developer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com _______________________________________________ Evolution-hackers mailing list Evolution-hackers@... http://mail.gnome.org/mailman/listinfo/evolution-hackers |
|
|
Re: Programmatically Invoking Contact EditorOn Thu, 2009-08-13 at 11:08 -0700, Kip Warner wrote:
> I have a pointer to an EContact in an application I am working on and > I'd like to progmatically invoke the contact editor GUI in Evolution > with this EContact loaded in it. > > Can this be done, and if so, what steps are required? I took a look at > the Evolution API reference and I could find a lot on the EDS aspect, > but nothing on interacting with the GUI itself. In theory you should be able to pass the EContact's URI as a command-line option to Evolution to invoke the editor, but I'm not certain if this works at the moment. Looking at the code that handles the URI, it seems to expect a contact:// scheme and "source-uid" and "contact-uid" parameters, but I don't have an example handy. Hopefully the EContact's URI gives you something close to that form. You'll have to play around with it. Matthew Barnes _______________________________________________ Evolution-hackers mailing list Evolution-hackers@... http://mail.gnome.org/mailman/listinfo/evolution-hackers |
|
|
Re: Programmatically Invoking Contact EditorOn Thu, 2009-08-13 at 14:24 -0400, Matthew Barnes wrote:
> > In theory you should be able to pass the EContact's URI as a > command-line option to Evolution to invoke the editor, but I'm not > certain if this works at the moment. > > Looking at the code that handles the URI, it seems to expect a > contact:// scheme and "source-uid" and "contact-uid" parameters, but I > don't have an example handy. Hopefully the EContact's URI gives you > something close to that form. You'll have to play around with it. > > Matthew Barnes via e_contact_get_const(contact, E_CONTACT_UID), but I can't seem to find the "source-uid" anywhere. -- Kip Warner -- Software Developer President & CEO Kshatra Corp. OpenPGP encrypted/signed mail preferred http://www.thevertigo.com _______________________________________________ Evolution-hackers mailing list Evolution-hackers@... http://mail.gnome.org/mailman/listinfo/evolution-hackers |
|
|
Re: Programmatically Invoking Contact EditorOn Thu, 2009-08-13 at 16:41 -0700, Kip Warner wrote:
> Thanks Matt. I've found the contact-uid by querying the EContact > pointer via e_contact_get_const(contact, E_CONTACT_UID), but I can't > seem to find the "source-uid" anywhere. Hi, source-uid is the UID of an EBook you've your contact stored in. If it's just the contact not stored in any EBook, then no such thing is possible. Bye, Milan _______________________________________________ Evolution-hackers mailing list Evolution-hackers@... http://mail.gnome.org/mailman/listinfo/evolution-hackers |
|
|
Re: Programmatically Invoking Contact EditorOn Fri, 2009-08-14 at 09:22 +0200, Milan Crha wrote:
> Hi, > source-uid is the UID of an EBook you've your contact stored in. If > it's > just the contact not stored in any EBook, then no such thing is > possible. > Bye, > Milan Thanks Milan. I figured it out. -- Kip Warner -- Software Developer President & CEO Kshatra Corp. OpenPGP encrypted/signed mail preferred http://www.thevertigo.com _______________________________________________ Evolution-hackers mailing list Evolution-hackers@... http://mail.gnome.org/mailman/listinfo/evolution-hackers |
| Free embeddable forum powered by Nabble | Forum Help |