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 535129 - allow presenting the accounts dialog programmatically
allow presenting the accounts dialog programmatically
Status: RESOLVED OBSOLETE
Product: empathy
Classification: Core
Component: General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: empathy-maint
empathy-maint
Depends on:
Blocks:
 
 
Reported: 2008-05-27 18:09 UTC by Marco Pesenti Gritti
Modified: 2009-08-28 12:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add a DBus service (9.70 KB, patch)
2008-05-27 18:11 UTC, Marco Pesenti Gritti
rejected Details | Review

Description Marco Pesenti Gritti 2008-05-27 18:09:33 UTC
The bigboard (http://live.gnome.org/BigBoard) needs to communicate with empathy to:

1 Open a chat with a certain user, or present the current one if already open.
2 Open account configuration.

I'm going to attach a patch which implements a dbus service to offer these functionalities.
Comment 1 Marco Pesenti Gritti 2008-05-27 18:11:42 UTC
Created attachment 111623 [details] [review]
Add a DBus service

A couple of notes:

* I have to call empathy_dispatcher_chat_with_contact on idle, otherwise it blocks, not sure what is going on.
* EditAccounts would ideally just present the current dialog if one is already open. I can do that in a separate patch.
Comment 2 Xavier Claessens 2008-05-27 20:08:09 UTC
Thanks for your interest in Empathy. This is not how it is supposed to work. Telepathy is already fully accessible via DBus, clients don't have to expose an interface. Even better empathy is composed of 2 librairies: libempathy and libempathy-gtk, they can be used by any program either by using the C API or the python binding.

1. Link on libempathy and call empathy_dispatcher_chat_with_contact()
2. Link on libempathy-gtk and call empathy_accounts_dialog_show()

If that's not enough feel free to reopen.
Comment 3 Marco Pesenti Gritti 2008-05-27 20:30:44 UTC
Xavier,

yeah I found these two possibilities while writing the patch. I see two issues with them:

1 If I call empathy_dispatcher_chat_with_contact I will get every time a new dialog, right? That's not what I want, the current conversation dialog should be raised instead.

2 Similary for the accounts dialog, I'd prefer to not have multiple instances of it around. If there is one open, I want to just present it. That's minor compared with 1, but still...
Comment 4 Xavier Claessens 2008-05-27 21:02:19 UTC
1. No, it will present an existing window.
2. Right it creates a new window so you could have 2 windows to configure accounts open at the same time. I think that's a minor issue.
Comment 5 Marco Pesenti Gritti 2008-05-27 21:07:22 UTC
(In reply to comment #4)
> 1. No, it will present an existing window.

Great.

> 2. Right it creates a new window so you could have 2 windows to configure
> accounts open at the same time. I think that's a minor issue.

Yeah, I don't think it's worth a DBus service, for now at least.

Comment 6 Marco Pesenti Gritti 2008-07-17 09:32:00 UTC
(In reply to comment #2)
> 2. Link on libempathy-gtk and call empathy_accounts_dialog_show()

This is not working anymore on trunk, because the dialog has been made private. How do we go about it?
Comment 7 Xavier Claessens 2008-07-17 10:49:56 UTC
The plan is to have a "empathy --show-account-dialog", or directly calling the empathy-accounts binary, or something like that, so we can avoid having multiple dialogs.
Comment 8 Xavier Claessens 2008-09-07 16:34:35 UTC
Forgot the close this bug. You can launch "empathy -a" to get the account dialog.
Comment 9 Danielle Madeley 2009-04-22 07:20:34 UTC
Zdra: maybe we should break this feature out into a capplet?
Comment 10 Xavier Claessens 2009-04-22 07:51:31 UTC
What's the future of applets with gnome-shell? I don't think we should add more applets using gnome-panel's crappy bonobo stuff...
Comment 11 Frederic Peters 2009-04-22 07:57:54 UTC
Do note Davyd proposed a *c*applet, not an applet.
Comment 12 Guillaume Desmottes 2009-04-22 08:58:15 UTC
A capplet could be a good idea actually. Not sure how this would fit with the about-me capplet though.
Comment 13 Guillaume Desmottes 2009-08-28 12:21:03 UTC
Empathy is now a single instance so launching "empathy -a" multi times won't open a lot of dialog any more. Closing this bug.