aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-idle.c
Commit message (Collapse)AuthorAgeFilesLines
* rename EmpathyIdle to EmpathyPresenceManager (#640532)Guillaume Desmottes2011-01-251-732/+0
| | | | It's doing more than idle management now.
* libempathy/empathy-idle.c: use tp_g_signal_connect_object instead of ↵Guillaume Desmottes2010-04-091-2/+2
| | | | empathy_signal_connect_weak
* empathy-idle: stop using tp_dbus_daemon_dupGuillaume Desmottes2010-04-011-1/+7
| | | | It has been deprecated.
* idle: Only restore state but not status message when getting back from idle ↵Brian Curtis2010-03-151-14/+3
| | | | (#566832)
* Ensure that the EmpathyIdle is not used in account_manager_ready_cb after ↵Travis Reitter2010-02-081-3/+16
| | | | | | being finalized Fixes #608813
* idle: make empathy_idle_get_status staticGuillaume Desmottes2009-11-191-18/+18
| | | | | It's not used anymore and other components should use the account manager directly.
* remove empathy_idle_{get,set}_flash_stateGuillaume Desmottes2009-11-181-46/+0
|
* [EmpathyIdle] track whether the AccountManager is ready, warn if it is notDanielle Madeley2009-11-091-0/+16
|
* idle: added a comment to explain _is_just_connectedJonny Lamb2009-10-301-0/+3
| | | | Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
* idle: don't hardcode 10 seconds as the "just connected" timeJonny Lamb2009-10-301-1/+5
| | | | Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
* idle: add comment about the connect_times hash table typesJonny Lamb2009-10-301-0/+2
| | | | Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
* idle: updated commentJonny Lamb2009-10-301-2/+4
| | | | Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
* all: log error messages if preparing the account manager failsJonny Lamb2009-10-301-1/+4
| | | | Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
* idle: use the TpAccount pointer as key to the hash table, and remove values ↵Jonny Lamb2009-10-251-12/+8
| | | | | | | | on disconnect https://bugzilla.gnome.org/show_bug.cgi?id=599169#c2 Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
* Add empathy_idle_account_is_just_connected function.Jonny Lamb2009-10-241-0/+68
| | | | Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
* idle: port to new tp-glib account APIJonny Lamb2009-10-241-20/+22
| | | | Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
* Add empathy_idle_get_requested_presence function.Jonny Lamb2009-10-241-12/+39
| | | | Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
* idle: work around the case if the session doesn't tell us when we go idle ↵Jonny Lamb2009-10-171-6/+17
| | | | | | (fixes bug #594619) Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
* idle: wait for the account manager to be ready before setting initial stateJonny Lamb2009-09-181-2/+29
| | | | | | | | | | Also, if we can get the global presence from the account manager straight away (in _init), then don't bother signalling the change. Otherwise, do signal the initial setting so things like the presence chooser and status icon will be updated with the initial presence. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* When not connected don't apply !offline states but save themSjoerd Simons2009-08-281-5/+7
| | | | | | When we're not connected to a network don't allow setting the status to anything else then offline, but when a status is set do save it so it can be applied as soon as soon as we get network connectivity
* Merge back from masterSjoerd Simons2009-08-221-125/+34
|\
| * all: save the signal id and use that to disconnect from the signalJonny Lamb2009-08-201-4/+6
| | | | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
| * empathy-connectivity: only send the new state in the state-change signalJonny Lamb2009-08-191-3/+2
| | | | | | | | | | | | | | | | It can be assumed that the old state was always the opposite to the new state, because the signal is only ever fired if the new state differs from the old state. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
| * empathy-idle: no need to listen to use-connJonny Lamb2009-08-191-20/+0
| | | | | | | | | | | | | | | | If use_conn is set to FALSE, then EmpathyConnectivity will signal status-change with a new online status of TRUE, which will do the right thing. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
| * empathy-idle: disconnect from connectivity signals before unreffingJonny Lamb2009-08-191-16/+21
| | | | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
| * empathy-idle: use EmpathyConnectivity instead of messing with NM itselfJonny Lamb2009-08-191-123/+49
| | | | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* | the status in EmpathyIdle is the status_message not the status stringSjoerd Simons2009-08-191-5/+6
| |
* | Fix typoSjoerd Simons2009-07-311-2/+2
| |
* | Remove last references to mission-control 4Sjoerd Simons2009-07-161-4/+0
| |
* | Use default status identifiers when setting the presenceSjoerd Simons2009-07-161-4/+20
| |
* | Get the presence from the AccountManager instead of MC4Sjoerd Simons2009-07-161-52/+7
| |
* | Use the account manager to set the presenceSjoerd Simons2009-07-081-24/+11
|/
* Fallback to OFFLINE when getting an unknown presence from MCSjoerd Simons2009-07-011-1/+1
|
* Use NM by defaultSjoerd Simons2009-07-011-4/+2
|
* Always react when disconnecting from the networkSjoerd Simons2009-07-011-3/+3
|
* Optionally use libnm-glib for NetworkManager integrationSjoerd Simons2009-07-011-47/+34
| | | | | | | | | | | | Previously Empathy use the NM D-Bus interface directly. Unfortunately the d-bus calls used were deprecated and somewhat buggy (if NM wasn't running on empathy startup, it would never detect network changes). Given that NetworkManager isn't a blessed gnome dependency the code has been made optional, but it's expected that every distribution will build with NetworkManager integration anyway. Based on a patch by Tambet Ingo <tambet@novell.com>. Fixes #587446
* Use gnome-session instead of gnome-screensaver to know when session is idleGiedrius Slavinskas2009-06-261-11/+21
|
* empathy-idle: remove trailing tabsGuillaume Desmottes2009-06-251-1/+1
|
* Assume our presence is offline if MC reports it as UNSET (#586645)Guillaume Desmottes2009-06-221-0/+4
|
* empathy_idle_init: fallback to OFFLINE instead of UNSET if ↵Guillaume Desmottes2009-06-151-1/+4
| | | | | | | | | empathy_idle_get_actual_presence failed If MC is not running, mission_control_get_presence_actual will return OFFLINE and set an error. Empathy should do the same and use OFFLINE instead of UNSET to avoid to not display the status icon in such cases (there is no UNSET presence icon).
* Don't set NM presence state on connect when it was unsetSjoerd Simons2009-06-011-1/+2
| | | | | When the presence state that was saved upon disconnect was _UNSET don't try to set it when we reconnect.
* Remove usage of McPresence as much as possibleSjoerd Simons2009-05-311-37/+97
|
* empathy-idle: fix coding styleGuillaume Desmottes2009-05-181-2/+2
|
* Fix type punned pointers warningsOlivier Crête2009-02-121-1/+1
| | | | | | | | | Remove senseless (void **) From: Olivier Crête <olivier.crete@collabora.co.uk> Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2440
* Save status message on NetworkManager disconnect and restore on reconnectDavyd Madeley2009-02-111-3/+12
| | | | | | From: Davyd Madeley <davyd@madeley.id.au> svn path=/trunk/; revision=2432
* Renamed G_STR_EMPTY to EMP_STR_EMPTY.Jonny Lamb2009-01-231-3/+3
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=2249
* empathy_mission_control_new -> dup_singleton.Xavier Claessens2009-01-161-1/+1
| | | | svn path=/trunk/; revision=2233
* Set the right weak pointer.Xavier Claessens2009-01-091-1/+1
| | | | svn path=/trunk/; revision=2122
* Port EmpathyIdle to the new singleton policy.Xavier Claessens2009-01-091-12/+26
| | | | svn path=/trunk/; revision=2114
* Set to NULL the status message if it's empty.Xavier Claessens2009-01-071-4/+6
| | | | svn path=/trunk/; revision=2084
* Add debug messages.Xavier Claessens2009-01-071-0/+4
| | | | svn path=/trunk/; revision=2081
* Don't set random values in EmpathyIdle init if MC is not running.Xavier Claessens2009-01-071-3/+8
| | | | svn path=/trunk/; revision=2026
* Use gi18n-lib.h instead of gi18n.h for libraries.Xavier Claessens2008-12-121-1/+1
| | | | svn path=/trunk/; revision=1967
* Reword presence handling. Save requested presence and correctly set ↵Xavier Claessens2008-08-141-55/+61
| | | | | | auto-away even if NM is disconnected. Fixes bug #540356. svn path=/trunk/; revision=1334
* reorder some functionsXavier Claessens2008-08-141-23/+23
| | | | svn path=/trunk/; revision=1333
* Do not stop and restart ext_away_timeout when already running.Xavier Claessens2008-08-141-1/+3
| | | | svn path=/trunk/; revision=1332
* Reorder functions to not have to declare them in the beginning of the fileXavier Claessens2008-08-141-282/+259
| | | | svn path=/trunk/; revision=1331
* Do not include empathy-debug.h twiceXavier Claessens2008-05-071-1/+0
| | | | svn path=/trunk/; revision=1085
* Keep a priv pointer in the object struct instead of using ↵Xavier Claessens2008-05-061-18/+14
| | | | | | G_TYPE_INSTANCE_GET_PRIVATE all the time. svn path=/trunk/; revision=1082
* If self presence message is "" do like if it was NULL.Xavier Claessens2008-05-051-0/+4
| | | | svn path=/trunk/; revision=1081
* Make use of tp-glib debug system.Xavier Claessens2008-05-011-23/+21
| | | | svn path=/trunk/; revision=1066
* Remove useless libtelepathy headersXavier Claessens2008-03-111-1/+1
| | | | svn path=/trunk/; revision=777
* Update collabora copyright to 2008Xavier Claessens2008-03-031-1/+1
| | | | svn path=/trunk/; revision=688
* Remove EmpathyPresence object and have "presence" and "presence-message" ↵Xavier Claessens2008-01-251-2/+2
| | | | | | properties directly in EmpathyContact svn path=/trunk/; revision=601
* Make use of PresenceChanged signal now that it got fixed in MC 4.53. Fixes ↵Xavier Claessens2008-01-141-7/+10
| | | | | | bug #466960. svn path=/trunk/; revision=547
* Reset status message when coming back from away and the status was manually ↵Xavier Claessens2008-01-121-4/+16
| | | | | | set to away. svn path=/trunk/; revision=537
* Correctly store/restore presence when NM state changesXavier Claessens2007-12-131-7/+10
| | | | svn path=/trunk/; revision=473
* When NM is in sleeping (=disabled) state, do just like if it wasXavier Claessens2007-12-061-8/+13
| | | | | | | | | | | | | 2007-12-06 Xavier Claessens <xclaesse@gmail.com> * libempathy-gtk/empathy-preferences.c: * libempathy-gtk/empathy-preferences.glade: * libempathy/empathy-idle.c: When NM is in sleeping (=disabled) state, do just like if it was connected. Remove option from preference dialog to disabled NM support because NM can be disabled using nm-applet, but let the option in gconf, it can be useful in case of buggy NM. svn path=/trunk/; revision=469
* Add a preference option to disable/enable NM support.Xavier Claessens2007-12-061-74/+75
| | | | | | | | | | | | | | | 2007-12-06 Xavier Claessens <xclaesse@gmail.com> * data/empathy.schemas.in: * libempathy-gtk/empathy-preferences.c: * libempathy-gtk/empathy-preferences.glade: * libempathy-gtk/empathy-preferences.h: * libempathy-gtk/empathy-status-icon.c: * libempathy/empathy-idle.c: * libempathy/empathy-idle.h: Add a preference option to disable/enable NM support. svn path=/trunk/; revision=468
* Cleanup licences and copyrights, Modules with 100% collabora code are nowXavier Claessens2007-10-181-10/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-10-18 Xavier Claessens <xclaesse@gmail.com> * libempathy/empathy-log-manager.c: * libempathy/empathy-log-manager.h: * libempathy/empathy-tp-chat.c: * libempathy/empathy-contact-manager.c: * libempathy/empathy-tp-chat.h: * libempathy/empathy-contact-manager.h: * libempathy/empathy-avatar.c: * libempathy/empathy-chandler.c: * libempathy/empathy-tp-contact-list.c: * libempathy/empathy-chandler.h: * libempathy/empathy-filter.c: * libempathy/empathy-tp-roomlist.c: * libempathy/empathy-tp-contact-list.h: * libempathy/empathy-filter.h: * libempathy/empathy-tp-chatroom.c: * libempathy/empathy-tp-roomlist.h: * libempathy/empathy-contact-factory.c: * libempathy/empathy-tp-chatroom.h: * libempathy/empathy-contact-list.c: * libempathy/empathy-contact-factory.h: * libempathy/empathy-contact-list.h: * libempathy/empathy-chatroom.c: * libempathy/empathy-idle.c: * libempathy/empathy-tp-group.c: * libempathy/empathy-chatroom.h: * libempathy/empathy-idle.h: * libempathy/empathy-tp-group.h: Cleanup licences and copyrights, Modules with 100% collabora code are now relicenced to LGPL. svn path=/trunk/; revision=377
* Use g_timeout_add_seconds when appropriated to avoid weaking the processXavier Claessens2007-10-131-3/+3
| | | | | | | | | | | | | | | | | | 2007-10-13 Xavier Claessens <xclaesse@gmail.com> * libempathy-gtk/empathy-main-window.c: * libempathy-gtk/empathy-presence-chooser.c: * libempathy-gtk/empathy-contact-list-view.c: * libempathy-gtk/empathy-contact-widget.c: * libempathy-gtk/empathy-chat.c: * libempathy-gtk/empathy-contact-list-store.c: * libempathy-gtk/empathy-chat-window.c: * libempathy/empathy-idle.c: * tests/contact-manager.c: Use g_timeout_add_seconds when appropriated to avoid weaking the process too much. svn path=/trunk/; revision=370
* Add 2 properties to EmpathyIdle to activate auto-away and auto-disconnect,Xavier Claessens2007-09-201-4/+77
| | | | | | | | | | | | | | | | 2007-09-20 Xavier Claessens <xclaesse@gmail.com> * libempathy-gtk/empathy-status-icon.c: * libempathy/empathy-idle.c: * libempathy/empathy-idle.h: * doc/libempathy/tmpl/empathy-idle.sgml: Add 2 properties to EmpathyIdle to activate auto-away and auto-disconnect, default to off. Only empathy main client will turn them on, like that if other processes are running with an EmpathyIdle instance they won't change presence in the same time than Empathy client. svn path=/trunk/; revision=301
* Remove workaround for mc-enum-types.h not being installed by MC and bumpXavier Claessens2007-08-091-8/+1
| | | | | | | | | | | | 2007-08-09 Xavier Claessens <xclaesse@gmail.com> * libempathy/empathy-presence.c: * libempathy/empathy-idle.c: * configure.ac: Remove workaround for mc-enum-types.h not being installed by MC and bump MC minimal version to 4.33. svn path=/trunk/; revision=239
* Remove empathy-marshal-main.c and include empathy-marshal.h fromMarco Barisione2007-08-081-10/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-08-07 Marco Barisione <marco@barisione.org> * libempathy/Makefile.am: * libempathy/empathy-marshal-main.c: Remove empathy-marshal-main.c and include empathy-marshal.h from empathy-marshal.c. * libempathy/Makefile.am: * libempathy-gtk/Makefile.am: Generate files for enum types with glib-mkenums. * libempathy/empathy-contact.c: * libempathy/empathy-idle.c: * libempathy/empathy-message.c: * libempathy/empathy-presence.c: * libempathy-gtk/empathy-main-window.c: * libempathy-gtk/empathy-preferences.c: * doc/libempathy-gtk/libempathy-gtk.types: * doc/libempathy-gtk/tmpl/empathy-contact-list-store.sgml: Use g_param_spec_enum() and g_param_spec_flags() instead of g_param_spec_(u)int. Fixes bug #462465. * libempathy-gtk/empathy-contact-list-store.c: * libempathy-gtk/empathy-contact-list-store.h: Remove empathy_contact_list_store_sort_get_type() as it's now auto-generated by glib-mkenums. svn path=/trunk/; revision=234
* Fix problems when NM is not running. Fixes bug #460419.Xavier Claessens2007-07-261-3/+15
| | | | | | | | | | | | 2007-07-26 Xavier Claessens <xclaesse@gmail.com> * libempathy/empathy-idle.c: Fix problems when NM is not running. Fixes bug #460419. * doc/*: Updated documentation. svn path=/trunk/; revision=195
* Initial room list support. It does not works yet.Xavier Claessens2007-07-201-7/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-07-20 Xavier Claessens <xclaesse@gmail.com> * libempathy/Makefile.am: * libempathy/empathy-tp-roomlist.h: * libempathy/empathy-tp-roomlist.c: * libempathy-gtk/empathy-chatrooms-window.c: * libempathy-gtk/empathy-new-chatroom-dialog.c: Initial room list support. It does not works yet. * libempathy-gtk/empathy-account-widget-generic.c: Add support for all types of integer and float. Fixes bug #457740 (Jamey Hicks). * libempathy/empathy-tp-chat.c: * libempathy-gtk/empathy-chat.c: If there is an error sending a message, show an error message to the user. * libempathy-gtk/empathy-accounts-dialog.c: Fix a leak, profile should be unrefed after mc_account_get_profile. * libempathy/empathy-utils.c: * libempathy/empathy-utils.h: * libempathy/empathy-tp-chatroom.c: * libempathy/empathy-tp-group.h: * libempathy/empathy-tp-group.c: * src/empathy.c: Rename empathy_get_channel_id() to empathy_inspect_channel(). We now have empathy_inspect_handle(). * po/POTFILES.in: * libempathy/empathy-tp-contact-list.c: Set all contacts from salut protocol to the "Local Network" group. * libempathy/empathy-idle.c: Fix NetworkManager support. * libempathy/empathy-chatroom.h: Fix indentation. * libempathy-gtk/empathy-status-icon.c: * libempathy-gtk/empathy-ui-utils.c: * libempathy-gtk/empathy-ui-utils.h: - Iconify main window to the status icon like in rhythmbox. Fixes bug #458106 (Jaap A. Haitsma). - Rounded avatars. Fixes bug #457992 (Raphael Slinckx) * Makefile.am: Fix distcheck for gtkdoc (Vincent Untz) * data/empathy.desktop.in.in: Change application description (Jaap A. Haitsma). svn path=/trunk/; revision=190
* Rename all filenames starting with "gossip" by "empathy", change namespaceXavier Claessens2007-06-221-13/+13
| | | | | | | | | | | | | 2007-06-22 Xavier Claessens <xclaesse@gmail.com> * libempathy/*.[ch]: * libempathy-gtk/*.[ch]: * src/*.[ch]: Rename all filenames starting with "gossip" by "empathy", change namespace of all gossip_*() functions to empathy_*(). Fixes bug #444490 (Mario Danic, Xavier Claessens). svn path=/trunk/; revision=170
* Adding NetworkManager support.Xavier Claessens2007-06-211-38/+116
| | | | | | | | | | 2007-06-15 Xavier Claessens <xclaesse@gmail.com> * src/empathy.c: * libempathy/empathy-idle.c: Adding NetworkManager support. svn path=/trunk/; revision=162
* Prepare for slack time when coming back from auto away. Not yet fullyXavier Claessens2007-06-151-17/+36
| | | | | | | | | | | | | | 2007-06-15 Xavier Claessens <xclaesse@gmail.com> * libempathy-gtk/empathy-status-icon.c: * libempathy-gtk/gossip-presence-chooser.c: * libempathy-gtk/gossip-presence-chooser.h: * libempathy/empathy-idle.c: * libempathy/empathy-idle.h: Prepare for slack time when coming back from auto away. Not yet fully implemented. svn path=/trunk/; revision=159
* Add support for blinking when there is an event. Make use of EmpathyIdleXavier Claessens2007-06-061-16/+217
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-06-06 Xavier Claessens <xclaesse@gmail.com> * libempathy-gtk/empathy-status-icon.c: Add support for blinking when there is an event. Make use of EmpathyIdle for presence handling. Add an event when a contact requets subscription. * libempathy-gtk/gossip-contact-list-store.c: * libempathy-gtk/gossip-contact-list-view.c: * libempathy/empathy-contact-manager.c: * libempathy/empathy-tp-contact-list.c: * libempathy/empathy-tp-chatroom.c: * libempathy/empathy-contact-list.c: * libempathy/empathy-contact-list.h: get_contacts() is renamed to get_members(). Adding a signal and a method for local-pending with contacts with the message. Rework completely the contact-list handling in EmpathyTpContactList to follow tp spec. * libempathy/empathy-idle.c: * libempathy/empathy-idle.h: Add properties for the state and the status message. EmpathyIdle is now a singleton to manager self presence. * TODO: Updated. svn path=/trunk/; revision=123
* Do not restore away presence message when coming back after the user setXavier Claessens2007-05-311-2/+1
| | | | | | | | | | 2007-05-31 Xavier Claessens <xclaesse@gmail.com> * libempathy/empathy-idle.c: Do not restore away presence message when coming back after the user set manually to away. svn path=/trunk/; revision=101
* Do not highlight contacts already known when creating the contact list. DoXavier Claessens2007-05-261-1/+1
| | | | | | | | | | | | | | 2007-05-26 Xavier Claessens <xclaesse@gmail.com> * libempathy-gtk/gossip-contact-list-store.c: Do not highlight contacts already known when creating the contact list. * libempathy/empathy-tp-contact-list.c: Do not set alias if DBus returns an error. * libempathy/empathy-idle.c: Do not set status message to "Extended autoaway", let user's message unchanged. svn path=/trunk/; revision=99
* If we are offline do not set away on idle. If we are already away restoreXavier Claessens2007-05-211-13/+28
| | | | | | | | | | | 2007-05-21 Xavier Claessens <xclaesse@gmail.com> * libempathy/empathy-idle.c: If we are offline do not set away on idle. If we are already away restore to available when we are no mode idle. Do no modify status message. svn path=/trunk/; revision=88
* Auto away when session id idle, instead of when screensaver is active.Xavier Claessens2007-05-191-25/+25
| | | | | | | | | | 2006-05-19 Xavier Claessens <xclaesse@gmail.com> * libempathy/empathy-idle.c: Auto away when session id idle, instead of when screensaver is active. svn path=/trunk/; revision=73
* New object EmpathyIdle to manage autoaway and extended autoaway states.Xavier Claessens2007-05-171-0/+226
2006-05-16 Xavier Claessens <xclaesse@gmail.com> * libempathy-gtk/empathy-status-icon.c: * libempathy/empathy-idle.c: * libempathy/empathy-idle.h: * libempathy/Makefile.am: * po/POTFILES.in: New object EmpathyIdle to manage autoaway and extended autoaway states. svn path=/trunk/; revision=70