aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-message.c
Commit message (Collapse)AuthorAgeFilesLines
* EmpathyMessage: remove flags, they are uselessXavier Claessens2013-10-031-35/+2
|
* time: move from Empathy to tp-account-widgetsMarco Barisione2013-08-201-3/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=699492
* Reorder header inclusions accordingly to the Telepathy coding styleEmanuele Aina2013-04-021-1/+1
| | | | | | | | | | | | Sort by: • "config.h" • API declarations, if any • public libraries • internal headers, alphabetically sorted (mostly) http://telepathy.freedesktop.org/wiki/Style#A.23includes https://bugzilla.gnome.org/show_bug.cgi?id=697076
* Drop unused/redundant header inclusionsEmanuele Aina2013-03-281-2/+1
| | | | | | | With the help of the script posted at http://stackoverflow.com/a/7135530 and some manual fixes, drop the unused or redundant #include directives. https://bugzilla.gnome.org/show_bug.cgi?id=696718
* include telepathy-glib.hGuillaume Desmottes2012-09-171-4/+0
| | | | | tp-glib 1.0 will enforce to only include telepathy-glib.h so best doing it to reduce the delta with the future stable branch.
* include logger single headerGuillaume Desmottes2012-04-041-5/+0
|
* Logger support for calls is no longer optionalDanielle Madeley2012-04-031-5/+1
|
* TplCallEndReason ceased to exist on March 28Danielle Madeley2012-04-031-1/+1
|
* Move empathy_message_should_highlight to EmpathyChatWill Thompson2012-01-191-70/+0
| | | | | | This will give us a place to cache the GRegex object. (Of course, this also depends on monitoring changes to the TpChat's self contact's alias, and changes to the TpChat's self contact!)
* Use /\b<nickname>\b/ to decide whether to highlightWill Thompson2012-01-191-33/+34
| | | | | | | | | | | | | | | | | The current highlighting code finds the first occurrence of the nickname, then checks whether the characters before or after are a space, a comma, a colon or a full stop (or the start or end of the string). This means that someone saying “no! That's wjt’s coffee!” didn’t highlight me, because the apostrophe isn't in the whitelist. It also means that saying “borrow some Sudafed from daf” would not highlight daf, since the first match is in the middle of a word. We’re trying to check whether the nickname occurs as a complete word within the message. The regex metacharacter \b matches word boundaries, so /\b<nickname>\b/ is what we actually want. It gets the above cases right, including Unicode punctuation. https://bugzilla.gnome.org/show_bug.cgi?id=591667
* Port to new tp-glib client factoryGuillaume Desmottes2011-08-181-5/+7
| | | | | | | | | | | | | | | | | - EmpathyChannelFactory has been changed to EmpathyClientFactory and inherit from TpAutomaticClientFactory. - We now always use the _with_am variant of TpSimple* constructors - We define our own factory as default. - Replace empathy_get_account_for_connection() by tp_connection_get_account() - The factory is passed to EmpathyTpChat and TpyCallChannel - Use tp_simple_client_factory_ensure_account() instead of tp_account_manager_ensure_account(). - Rely on the factory to prepare connection features. This should ensure that all the TpProxy and TpContact objects created in Empathy are shared and use EmpathyClientFactory. https://bugzilla.gnome.org/show_bug.cgi?id=655799
* Properly check if the backlog flag is setSjoerd Simons2011-08-121-1/+5
| | | | | | The backlog flag should be TRUE or FALSE, so the check for the flag should result in either of those two values, not some other non-false value
* Display the time when messages have been sent, not received (#653551)Guillaume Desmottes2011-06-281-1/+6
| | | | Much more useful when receiving offline messages.
* Merge branch 'message-editing-rebase'Danielle Madeley2011-06-201-4/+134
|\
| * Update for new TPL API, we now get timestamp and edit_timestampDanielle Madeley2011-06-141-5/+19
| | | | | | | | | | This makes it backwards to what we get in Telepathy, but we can manage by translating it into the Telepathy form.
| * Add 'original-timestamp' to EmpathyMessageDanielle Madeley2011-06-141-0/+37
| |
| * Set 'token' and 'supersedes' for events from the loggerDanielle Madeley2011-06-141-3/+10
| |
| * Add 'supersedes' property to EmpathyMessageDanielle Madeley2011-06-121-0/+42
| | | | | | | | | | | | It would be nice to remove EmpathyMessage, because now that TpMessages are a GObject, EmpathyMessage is just an empty abstraction layer that we have to keep punching through.
| * Add 'token' property to EmpathyMessageDanielle Madeley2011-06-121-0/+30
| | | | | | | | | | This allows us to pass the 'message-token' from the TpMessage through to the chat-view.
* | Add a translator comment.Emilio Pozuelo Monfort2011-06-141-0/+1
|/ | | | https://bugzilla.gnome.org/show_bug.cgi?id=652345
* Don't require telepathy-logger with --enable-callEmilio Pozuelo Monfort2011-06-101-3/+9
| | | | | Having it is required for displaying call events in the history window though.
* Handle unknown event types gracefullyEmilio Pozuelo Monfort2011-06-091-0/+3
|
* Don't ignore call eventsEmilio Pozuelo Monfort2011-06-091-14/+23
| | | | | | Conflicts: libempathy/empathy-message.c
* message: stop storing pending-message-idJonny Lamb2011-05-121-21/+0
| | | | | | We're storing the TpSignalledMessage for that nowadays. Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
* message: store the TpMessage when created with oneJonny Lamb2011-05-121-0/+34
| | | | Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
* Port all timestamps from time_t to gint64 (#648188)Guillaume Desmottes2011-04-191-10/+8
|
* empathy-message: cast timestamps to glongGuillaume Desmottes2011-04-191-2/+2
| | | | | | | | | tp_message_get_received_timestamp() and tpl_event_get_timestamp() both return gint64 while the timestamp is stored as a glong. We need to cast it as varargs won't do it for us and not casting will result in a a sizing mismatch on 32-bit. Ideally we should stop using time_t and always use gint64 with timestamps.
* empathy_message_new_from_tp_message: assign priv as soon as the message is ↵Guillaume Desmottes2011-04-191-1/+2
| | | | created
* empathy-message: remove useless public settersGuillaume Desmottes2011-04-181-119/+22
| | | | Also fix the GParamFlags of properties.
* remove empathy_message_new()Guillaume Desmottes2011-04-181-15/+7
|
* factor out empathy_message_new_from_tp_messageGuillaume Desmottes2011-04-181-0/+33
|
* empathy-message: add missing getter/setterGuillaume Desmottes2011-04-181-0/+18
|
* Add support for message type to support /meNicolas Dufresne2011-03-011-0/+2
|
* Port empathy to Telepathy logger 0.2.0Nicolas Dufresne2011-02-251-16/+14
|
* empathy_message_from_tpl_log_entry: don't leak receiver and senderGuillaume Desmottes2010-11-241-6/+12
|
* Fix missing entries in switch statementsPhilip Withnall2010-08-051-0/+3
| | | | Added missing default cases and missing enum cases.
* Merge EmpathyContact:name and *_set_alias() to EmpathyContact:aliasPhilip Withnall2010-07-221-1/+1
| | | | The "name" API was a relic of Gossip.
* Properly mark messages from TPL as backlog (#623914)Guillaume Desmottes2010-07-091-1/+1
| | | | If the message is build from a TplEntry it *is* a backlog one.
* Depend on telepathy-logger (#610956)Guillaume Desmottes2010-06-181-4/+0
|
* TplContact has been renamed to TplEntityGuillaume Desmottes2010-06-181-4/+4
|
* TplLogEntry(Text) has been renamed to TplEntry(Text)Guillaume Desmottes2010-06-181-14/+14
|
* port to latest tp-logger APIGuillaume Desmottes2010-06-181-3/+3
|
* empathy_message_equal: always use the timestamp+body (#621797)Guillaume Desmottes2010-06-171-4/+0
| | | | | | There is no reason to only use this new heuristic only in the TPL case. Furthermore, we're about to make TPL mandatory so it's good to have it more tested.
* TPL Enabling patch, all-in-one.Cosimo Alfarano2010-02-261-0/+78
| | | | By default TPL is disabled, use --enable-tpl configure option to enable it.
* Don't highlight scrollback messages (#602288)Guillaume Desmottes2009-12-021-0/+8
|
* empathy-message: add message flagsGuillaume Desmottes2009-12-021-0/+35
|
* Move /me and /say support from EmpathyMessage to EmpathyChat.Xavier Claessens2009-11-011-56/+0
| | | | Also make commands not case sensitive and use g_ascii_isspace to detect spaces.
* Be consistent with EmpathyMessage style.Will Thompson2009-08-311-8/+16
|
* Ack received messages from ourself.Will Thompson2009-08-311-0/+32
| | | | | | | | | | Sumana Harihareswara reported that she had started a conversation with herself, sent a message, and then tried to close the window, but whenever she did so it reappeared. This was because Empathy did not acknowledge "incoming" messages from the user themself; hence, when it Close()d the channel, Gabble respawned it, because it still had pending messages.
* Don't parse message in EmpathyMessage:body setterWill Thompson2009-08-281-15/+2
| | | | | | | | | This fixes a bug where the message (Type_Action, "/me wooo yay") is printed as " ! wjt woo yay" rather than as " ! wjt /me woo yay". This also fixes Gnome bug #593101 (Empathy exits sending empty /me message), which was caused by this deleted code walking off the end of the string "/me".
* Add empathy_message_new_from_entry()Will Thompson2009-08-281-0/+56
| | | | | | This will be the sole place that user input is parsed for special commands like /me; the parsing logic will be removed from EmpathyMessage and chat_send().
* empathy-message.c: remove a trailing spaceGuillaume Desmottes2009-07-141-1/+1
|
* Support for history message in Adium themes. Use context HTMLs.Nicolò Chieffo2009-07-081-0/+36
|
* empathy-message: update FSF addressGuillaume Desmottes2009-05-181-2/+2
|
* Use tp_strdiff in empathy_message_equal to compare body.Xavier Claessens2009-03-061-1/+3
| | | | | | From: Xavier Claessens <xclaesse@gmail.com> svn path=/trunk/; revision=2622
* Remove unused empathy_message_get_unique_idXavier Claessens2009-03-061-8/+0
| | | | | | From: Xavier Claessens <xclaesse@gmail.com> svn path=/trunk/; revision=2621
* Call GET_PRIV after checking the parameters of empathy_message_equal.Jonny Lamb2009-03-061-2/+5
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=2610
* Added checks to the arguments of empathy_message_equal.Jonny Lamb2009-03-061-0/+3
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=2604
* Added empathy_message_get_unique_id & empathy_message_equal.Jonny Lamb2009-03-061-0/+21
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=2598
* Style fixesSjoerd Simons2009-01-101-1/+3
| | | | | | Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2174
* Add id field to save the message id as received the CMSjoerd Simons2009-01-101-0/+16
| | | | | | Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2127
* Remove useless empathy_message_get_date_and_timeXavier Claessens2008-12-161-20/+0
| | | | svn path=/trunk/; revision=1989
* Add missing includeXavier Claessens2008-11-301-0/+1
| | | | svn path=/trunk/; revision=1928
* Keep a priv pointer in the object struct instead of using ↵Xavier Claessens2008-05-061-76/+42
| | | | | | G_TYPE_INSTANCE_GET_PRIVATE all the time. svn path=/trunk/; revision=1082
* Use g_date_set_time_t instead of g_date_set_time. Fixes bug #523703 ↵Xavier Claessens2008-04-091-1/+1
| | | | | | (Frederic Peters). svn path=/trunk/; revision=881
* Rework EmpathyChat's API, it is now a subclass of GtkBin.Xavier Claessens2008-04-021-0/+61
| | | | svn path=/trunk/; revision=840
* Update collabora copyright to 2008Xavier Claessens2008-03-031-1/+1
| | | | svn path=/trunk/; revision=688
* New chat theme engine imported from Gossip (Daniel Gryniewicz, Xavier ↵Xavier Claessens2007-12-211-0/+20
| | | | | | Claessens). svn path=/trunk/; revision=494
* Don't use deprecated GtkTooltips API. Add commented out lines inXavier Claessens2007-10-131-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | 2007-10-13 Xavier Claessens <xclaesse@gmail.com> * libempathy-gtk/empathy-chat-view.h: * libempathy-gtk/empathy-main-window.c: * libempathy-gtk/empathy-chat.c: * libempathy-gtk/empathy-chat-window.c: * libempathy-gtk/empathy-chat-view.c: * libempathy/empathy-log-manager.c: * libempathy/empathy-time.c: * libempathy/empathy-tp-chat.c: * libempathy/empathy-time.h: * libempathy/empathy-message.c: * libempathy/empathy-message.h: * libempathy/empathy-presence.c: * configure.ac: Don't use deprecated GtkTooltips API. Add commented out lines in configure.ac to disable GLib and GTK deprecated symbols. Replace EmpathyTime by time_t which is more appropriate for timestamps. * doc/*: Updated. svn path=/trunk/; revision=371
* Remove empathy-marshal-main.c and include empathy-marshal.h fromMarco Barisione2007-08-081-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Add missing include string.h.Xavier Claessens2007-07-301-0/+2
| | | | | | | | | | 2007-07-29 Xavier Claessens <xclaesse@gmail.com> * libempathy-gtk/empathy-profile-chooser.c: * libempathy/empathy-message.c: Add missing include string.h. svn path=/trunk/; revision=217
* Add message type in log files. Fixes bug #459579.Xavier Claessens2007-07-271-6/+39
| | | | | | | | | | | | | | 2007-07-27 Xavier Claessens <xclaesse@gmail.com> * libempathy/empathy-message.c: * libempathy/empathy-message.h: * libempathy/empathy-log-manager.c: Add message type in log files. Fixes bug #459579. * doc/*: Updated. svn path=/trunk/; revision=205
* Rename all filenames starting with "gossip" by "empathy", change namespaceXavier Claessens2007-06-221-0/+418
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