aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-theme-adium.c
Commit message (Collapse)AuthorAgeFilesLines
* theme-adium: escape the name in actions as wellGuillaume Desmottes2011-10-241-3/+3
|
* theme_adium_append_message: escape alias before displaying itGuillaume Desmottes2011-10-191-2/+5
| | | | | | Not doing so can lead to nasty HTML injection from hostile users. https://bugzilla.gnome.org/show_bug.cgi?id=662035
* adium themes: crash less hard when Template.html is missingWill Thompson2011-10-151-1/+9
| | | | | | | | If Template.html is missing, then you haven't installed Empathy properly (or set EMPATHY_SRCDIR or whatever in my case). But previously we would just crash later down this function when passing template_html to string_with_format() without checking if it's NULL. This patch makes it fail a little less inscrutably.
* Merge branch: 'Add top-up link to chat text when there is insufficient credit'Danielle Madeley2011-10-141-0/+9
|\
| * EmpathyThemeAdium: implement append_event_markupEmilio Pozuelo Monfort2011-09-051-0/+9
| | | | | | | | | | | | Conflicts: libempathy-gtk/empathy-theme-adium.c
* | Use default variant if we can't find any variantsGuillaume Desmottes2011-10-121-1/+4
| | | | | | | | | | | | We use to crash here trying to get the first element of an empty GPtrArray. https://bugzilla.gnome.org/show_bug.cgi?id=660586
* | Add /inspector command to show webkit inspectorXavier Claessens2011-09-261-0/+14
| |
* | theme-adium: ensure we always use the same color when sending messagesGuillaume Desmottes2011-09-131-4/+10
|/ | | | https://bugzilla.gnome.org/show_bug.cgi?id=658821
* Factor out WebKit context menu as a utilityDanielle Madeley2011-08-171-118/+3
|
* Use the same font-setting utility for empathy-theme-adiumDanielle Madeley2011-08-091-62/+15
|
* Abstract WebKit string parsers into empathy-webkit-utilsDanielle Madeley2011-08-011-65/+4
| | | | | | This file is currently optionally built, but if the logviewer is going to depend on WebKit, maybe that's a bad idea? Maybe we should just make WebKit required (this will probably happen when we require Adium themes in the future).
* theme-adium: use the pending-message-id instead of message-token in ↵Guillaume Desmottes2011-07-081-18/+24
| | | | | | | | | x-empathy-message-id message-token is not guaranteed to be implemented by all CMs while pending-message-id is (for incoming messages). https://bugzilla.gnome.org/show_bug.cgi?id=654015
* empathy_contact_from_tpl_contact: don't override the aliasEmilio Pozuelo Monfort2011-07-051-1/+1
| | | | | | | Add a logged-alias property instead, which can be used by those who need the old alias. And use it in chat themes for the backlog.
* Use an enum instead of the value type to determine what kind of object it isDanielle Madeley2011-06-141-20/+57
|
* Add an icon to edited messagesDanielle Madeley2011-06-141-0/+28
| | | | | | | Currently this is using "format-text-direction-ltr" which is a crappy choice. We should ask for a better icon. Also, this should really be implemented as a class, so that the icon can change with the theme. Or be made part of the Adium theme, or something. Basically this is kludgey.
* Add a tooltip saying when the message was editedDanielle Madeley2011-06-141-0/+14
|
* [theme-adium] implement edit_message()Danielle Madeley2011-06-141-2/+66
| | | | | | | | | | | | | This is done via DOM manipulation, we find the id for the <span> tag we wrapped the message in in the previous commit. We then replace the innerHTML with the new message. This requires a version of WebKitGtk 1.3.x, but I'm not precisely sure what. I used WebKitGtk 1.4.0, but natty only has 1.3.13, so we'll try setting that as the dep. Need to somehow mark a message as edited. Could set a class on it, but that requires support in the theme. Need inspiration here.
* [theme-adium] wrap the messages in <span id=...> so we can find them againDanielle Madeley2011-06-121-4/+16
| | | | This will enable our DOM manipulation
* Adium: Let user select theme variant in preferencesXavier Claessens2011-06-071-38/+96
| | | | Fixes bug #585474
* Adium: Convert NSDateFormatter to strftimeXavier Claessens2011-05-271-6/+149
|
* adium: set has_unread_message to FALSE when we think we've cleared them allJonny Lamb2011-05-171-0/+2
| | | | Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
* adium: add comment explaining why we add x-empathy-mesage-id-*Jonny Lamb2011-05-131-1/+5
| | | | Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
* adium: implement acknowledge_message to remove unread markerJonny Lamb2011-05-131-2/+86
| | | | Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
* adium: split removing unread markers into two functionsJonny Lamb2011-05-131-26/+34
| | | | Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
* adium: set x-empathy-message-id class in messageStylesJonny Lamb2011-05-131-0/+11
| | | | Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
* theme_adium_remove_focus_marks: early return if there is no unread messageGuillaume Desmottes2011-05-111-4/+7
|
* theme-adium: remove unread marks when sending a messageGuillaume Desmottes2011-05-111-0/+3
|
* theme-adium: remove focus marks as soon as the chat is not focused (#649890)Guillaume Desmottes2011-05-111-4/+4
|
* Include gi18n-lib.h in library sources, not gi18n.h.Gabor Kelemen2011-05-051-1/+1
| | | | Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=649379
* Adium: Fix wrong html fallbacksXavier Claessens2011-05-051-208/+131
| | | | | Fallbacks are actually more complex than I though. This is exactly how adium does the fallbacks
* Adium: Correctly support action messages (/me)Xavier Claessens2011-05-041-7/+15
| | | | Fixes bug #649367
* Adium: Fix selection of default variantXavier Claessens2011-05-041-53/+163
| | | | | | | | | | For theme version >= 3, a variant CSS is mandatory. If none are set inf DefaultVariant, the first one from Variant/ should be used. For theme version <= 2, a variant CSS is optional, and by default they should not have one. If no variant is selected, fallback to main.css. This also prepare needed API to select other variants
* Adium: Also queue events when loading the pageXavier Claessens2011-05-031-11/+21
|
* Adium: Events must be queued until the Template.html loadedXavier Claessens2011-05-031-0/+7
|
* Adium: Mark autoreply messageXavier Claessens2011-05-031-2/+3
|
* Adium: highlight messages starting with our nameXavier Claessens2011-05-031-3/+3
|
* Fix crash if contact_id is NULL when selecting its colorXavier Claessens2011-05-031-3/+4
|
* Adium: Temporally disable scrolling when appending backlogXavier Claessens2011-05-021-5/+11
|
* coding style fixGuillaume Desmottes2011-05-021-1/+1
|
* theme-adium: implement %senderColor% (#541632)Guillaume Desmottes2011-05-021-2/+31
|
* Support new themes that have only Resources/Content.htmlXavier Claessens2011-05-021-39/+81
| | | | Still fallback to legacy html files if global one is missing.
* Fix a crash if replacement is NULLXavier Claessens2011-05-021-2/+2
|
* Use focus feature of adium themesXavier Claessens2011-04-271-4/+89
|
* Add FIXMEs for things we don't implement yet from adium theme specXavier Claessens2011-04-271-39/+123
| | | | | This also replaces well known keywords that we don't implement yet by "", otherwise the html is broken and webkit does not render it correctly.
* Port all timestamps from time_t to gint64 (#648188)Guillaume Desmottes2011-04-191-3/+3
|
* theme-adium: keep count of the pages loading instead of using a booleanGuillaume Desmottes2011-03-281-4/+9
| | | | | | Each time theme_adium_clear() is called, WebKit has to reload the page. If we do multi calls to clear() in a short interval, we used to think the page was loaded while it was the *old* one which was actually loaded. (#645670)
* theme-adium: use empathy_context_menu_new() and remove our hackGuillaume Desmottes2011-02-161-3/+1
| | | | | It ensures that the popup is destroyed as soon as we're done with it. (#642461)
* theme_adium_parse_body: use the cache GSettings chatGuillaume Desmottes2010-11-291-6/+6
|
* fix identationGuillaume Desmottes2010-11-161-1/+1
|
* use gsettings version of the document-font-name key (#626810)Guillaume Desmottes2010-11-161-19/+13
|
* Display text in verbatim (#625745)Vitaly Minko2010-11-111-0/+6
|
* show the date in messages coming from history (#624599)Nicolò Chieffo2010-08-021-5/+11
|
* Merge EmpathyContact:name and *_set_alias() to EmpathyContact:aliasPhilip Withnall2010-07-221-1/+1
| | | | The "name" API was a relic of Gossip.
* Use document font by default for adium themesXavier Claessens2010-06-231-2/+2
| | | | Fixes bug #622266
* Port Empathy code to GSettings, remove EmpathyConfDanielle Madeley2010-06-181-21/+17
|
* use avatar-default instead of the deprecated stock_person iconGuillaume Desmottes2010-05-201-1/+2
|
* Make empathy_string_replace_link and empathy_string_replace_escaped publicXavier Claessens2010-03-031-42/+4
| | | | The code is moved from empathy-theme-adium.c
* Move empathy_string_parser API to its own fileXavier Claessens2010-03-031-0/+1
|
* Fix leaked GtkMenuXavier Claessens2010-02-111-0/+2
| | | | | | | | | | GtkMenu is initially unowned, which means ref_count is 1 and floating flag is set. gtk_menu_popup temporarily adds a ref, that will be dropped when the menu is popped down. So once the menu is popped up, we call g_object_ref_sink() to clear the floating flag, and g_object_unref() to drop the initial ref. Only the ref from gtk_menu_popup stay, and the menu will be finalized when it is popped down. Fixes bug #609567
* add match_case option to find_abilitiesThomas Meire2010-01-211-0/+1
|
* added case sensitive search for adium themes (reverted previous commit)Thomas Meire2010-01-211-10/+8
|
* make the adium theme respect new_searchThomas Meire2010-01-211-0/+6
|
* added case sensitive highlighting for adium themesThomas Meire2010-01-211-2/+3
|
* gssize isn't an int on various platformsSjoerd Simons2009-11-261-1/+1
|
* Merge branch 'adium-events'Xavier Claessens2009-11-261-20/+28
|\ | | | | | | | | Conflicts: libempathy-gtk/empathy-theme-adium.c
| * Do not escape twice /me messages with adium theme.Xavier Claessens2009-11-251-20/+27
| |
* | Clean how we insert smileys in adium themesXavier Claessens2009-11-261-13/+5
| |
* | Clean how we insert link in adium themesXavier Claessens2009-11-261-8/+6
| |
* | Escape what is put inside <a> tagsGustavo Noronha Silva2009-11-251-1/+8
| | | | | | | | | | | | | | | | | | We should be careful here, and make sure whatever is put enclosed by <a> tags is correctly encoded. What caused bug #597049 is that what was being liked to looked like a tag, so the browser ignored it, but this is potentially a security vulnerability. Bug #597049
* | Replace GString param with a generic gpointer user_data, and port ↵Xavier Claessens2009-11-251-29/+49
| | | | | | | | EmpathyChatTextView to new parser API.
* | Make possible to define different replace function for parsersXavier Claessens2009-11-251-49/+43
| |
* | start and end positions in EmpathySmileyHit struct can't be negative. Change ↵Xavier Claessens2009-11-251-1/+1
| | | | | | | | them to guint.
* | Optimisation: Do not fetch use-smiley gconf key for each substring.Xavier Claessens2009-11-251-6/+7
| |
* | Extract empathy_string_parser_link and empathy_string_parser_escape from ↵Xavier Claessens2009-11-251-64/+2
| | | | | | | | empathy-theme-adium.c
* | Create API for generic string parserXavier Claessens2009-11-251-13/+28
| |
* | Rework the way message parsing and escaping is done.Xavier Claessens2009-11-251-90/+126
|/
* Merge branch 'accountz'Jonny Lamb2009-11-021-3/+3
|\
| * theme-adium: port to new tp-glib account APIJonny Lamb2009-10-241-3/+3
| | | | | | | | Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
* | theme_adium_parse_body: escape text between linksGuillaume Desmottes2009-10-261-2/+8
| |
* | theme_adium_parse_body: escape all the text if smileys are disabled (#599640)Guillaume Desmottes2009-10-261-0/+2
| |
* | theme_adium_append_event: escape textXavier Claessens2009-10-261-2/+6
|/
* Set default font from Gnome system if not set in the style.Matěj Cepl2009-10-231-9/+73
| | | | | | | | If the font family and font size is not set in the style, we set style based on the Gnome default settings. Signed-off-by: Matěj Cepl <mcepl@redhat.com> Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
* empathy-theme-adium.c: fix uint comparaisonsGuillaume Desmottes2009-10-221-2/+2
|
* Refactor context menu code to use new HitTestResult APIGustavo Noronha Silva2009-10-101-125/+121
| | | | | | This is a big cleanup of the context menu code. The current API in WebKit is still not perfect, but we are now able to avoid lots of hacks and work-arounds.
* Even if Next*.html are missing, we have to use the appendNextMessage js ↵Xavier Claessens2009-09-301-5/+8
| | | | function for consecutive message.
* Respect "DisableCombineConsecutive" adium theme setting. Fixes bug #596317Xavier Claessens2009-09-301-3/+6
|
* Make the correct fallbacks in case of missing html files in an Adium theme. ↵Xavier Claessens2009-09-301-50/+51
| | | | Fixes bug #596303
* Add empathy_make_absolute_url_len to limit the lenght of url stringPierre-Luc Beaudoin2009-08-291-1/+1
| | | | Related to http://bugzilla.gnome.org/show_bug.cgi?id=593207
* Merge branch 'fix-navigation-handling'Gustavo Noronha Silva2009-08-281-9/+19
|\
| * Fix assumption about navigation-request not being called for HTML string loadGustavo Noronha Silva2009-08-281-9/+19
| | | | | | | | | | | | This bug was exposed by the WebKitGTK+ bug that prevented navigation-request from being emitted in various situations being fixed.
* | Fall back to protocol name in Adium themesWill Thompson2009-08-281-0/+2
|/ | | | Reviewed-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
* Use the display name in hte adium parserCosimo Cecchi2009-08-251-1/+2
|
* Merge back from masterSjoerd Simons2009-08-221-28/+32
|\
| * Use empathy_make_absolute_url to fix URLs that have no schemePierre-Luc Beaudoin2009-08-191-1/+6
| |
| * Don't check for smileys in urlsPierre-Luc Beaudoin2009-08-191-27/+26
| | | | | | | | | | | | Moving the smiley detection after the url detection and only if not url is found. (similar to what regular themes do)
* | Merge branch 'master' into mc5Cosimo Cecchi2009-08-011-36/+48
|\|
| * - Define EMPATHY_PREFS_CHAT_WEBKIT_DEVELOPER_TOOLS instead of hardcoding ↵Xavier Claessens2009-07-291-36/+48
| | | | | | | | | | | | the gconf key everywhere. - Code cleanup in EmpathyThemeAdium
* | Merge commit 'upstream/master' into mc5Sjoerd Simons2009-07-281-37/+351
|\| | | | | | | | | | | Conflicts: libempathy-gtk/empathy-account-widget.c src/empathy.c
| * Only consider what's clicked a link when priv->hovered_uri is non-NULL ↵Gustavo Noronha Silva2009-07-181-7/+9
| | | | | | | | (Fixes: #588886)
| * Make WebKit web inspector available, when using Adium themes.Gustavo Noronha Silva2009-07-161-4/+121
| |
| * Merge branch 'fix-585882'Gustavo Noronha Silva2009-07-141-4/+90
| |\
| | * Fix Bug 585882: Can't easily copy URL's when using Adium themesGustavo Noronha Silva2009-07-011-4/+90
| | | | | | | | | | | | | | | Track the last hovered link, and use it to copy/open addresses using the context menu.
| * | empathy-theme-adium.c: remove trailing spacesGuillaume Desmottes2009-07-141-13/+13
| | |
| * | Support for history message in Adium themes. Use context HTMLs.Nicolò Chieffo2009-07-081-21/+110
| | |
| * | Use atomic operations to manage EmpathyAdiumData refcountXavier Claessens2009-07-081-3/+2
| | |
| * | List installed adium themesPierre-Luc Beaudoin2009-07-031-4/+18
| | |
| * | Merge branch 'fix-585601'Gustavo Noronha Silva2009-07-021-0/+7
| |\ \
| | * | Fix Bug 585601: Adium theme is not reloaded on /clear or Ctrl+L or clear ↵Gustavo Noronha Silva2009-07-011-0/+7
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | menu item The theme was deciding that new messages should be 'joined' to an already existing message bubble, because not enough time had passed, even after clearing the chat area. We now clear last_contact to make sure this never happens.
* | | Remove useless mission-control includesSjoerd Simons2009-07-061-1/+0
| | |
* | | Remove usage of McProfilesSjoerd Simons2009-07-051-4/+1
|/ /
* / Port libempathy-gtk to EmpathyAccountSjoerd Simons2009-07-011-2/+2
|/
* empathy-theme-adium: remove trailing tabsGuillaume Desmottes2009-06-251-8/+8
|
* Add helper API to read info.plist file of an adium theme. Will be useful for ↵Xavier Claessens2009-06-221-12/+38
| | | | upcoming theme selector
* Move all data about an adium theme into EmpathyAdiumData struct and share it ↵Xavier Claessens2009-06-221-208/+284
| | | | with all EmpathyThemeAdium instances.
* Fix warning if theme don't have footer_htmlXavier Claessens2009-06-221-1/+3
|
* Use tp_g_value_slice_new and tp_asv API for plist parser.Xavier Claessens2009-06-221-13/+12
|
* Add a plist parser and set font family, size and default variant. Fixes bug ↵Patryk Zawadzki2009-06-221-2/+35
| | | | #586387.
* Partial fix for bug #586379Patryk Zawadzki2009-06-191-1/+9
| | | | | Added naive support for footer files in adium themes. No macros are actually parsed and replaces but these are mostly used in headers.
* Stop status_html from leakingPatryk Zawadzki2009-06-191-0/+1
|
* Fix bug #585475Patryk Zawadzki2009-06-191-2/+42
| | | | | Implemented %service%, %shortTime%, %senderDisplayName%, %senderScreenName% and %messageClasses%
* Support fallback avatars provided by adium themesPatryk Zawadzki2009-06-191-5/+30
|
* Limit joining consecutive messages to 5 minutesPatryk Zawadzki2009-06-191-1/+11
| | | | Fixes bug #586352
* Introduce empathy_contact_equal, adapt themesPatryk Zawadzki2009-06-161-2/+2
| | | | | Fixed adium and boxes theme engines to check if contacts refer to the same id instead of comparing pointers. This fixes bug #585885.
* Fixed code styleJonathan Tellier2009-06-121-2/+2
|
* Update copyright to 2008-2009Xavier Claessens2009-06-121-1/+1
|
* Move g_object_unref to dispose instead of finalizeXavier Claessens2009-06-121-2/+16
|
* Correctly parse %time% if a format is providedXavier Claessens2009-06-121-5/+7
|
* New webkit needs an URI as basedir for webkit_web_view_load_html_string.Xavier Claessens2009-06-121-2/+8
|
* Do not use empathy_contact_equal(), we can now compare pointers directly.Xavier Claessens2009-06-121-2/+1
|
* Support /me command and fix crash if smiley are not enabledXavier Claessens2009-06-121-19/+34
|
* Port to new APIXavier Claessens2009-06-121-1/+1
|
* WebKit is expecting an absolute path to a file name as the last parameter of ↵Xavier Claessens2009-06-121-1/+1
| | | | | | webkit_web_view_load_html_string. But adding a extra / at the end of the path works also fine (patch to be attached).
* - Implement remaining functions on EmpathyThemeAdium.Xavier Claessens2009-06-121-127/+223
| | | | | - Fix refcounting of EmpathySmileyManager, avoid double free in its finalize. - Create our own context menu on EmpathyThemeAdium.
* Don't escape message before detecting smileys otherwise some won't be detected.Xavier Claessens2009-06-121-6/+5
|
* Cleanup little thingsXavier Claessens2009-06-121-9/+13
|
* Use a default Template.html if not provided by the theme.Xavier Claessens2009-06-121-15/+43
|
* Correctly escape message body so html tags are not interpreted by webkit.Xavier Claessens2009-06-121-29/+32
|
* Add a path property on EmpathyThemeAdium and ge the adium-path gconf key in ↵Xavier Claessens2009-06-121-11/+71
| | | | EmpathyThemeManager.
* Quick check if the theme path is OK.Xavier Claessens2009-06-121-6/+23
|
* Add UI in the preference dialog to select the path to adium themeXavier Claessens2009-06-121-0/+6
|
* Add a tooltip on smileys with the text it hidesXavier Claessens2009-06-121-2/+2
|
* Open URI when they are clicked in webkitXavier Claessens2009-06-121-1/+23
|
* Reorganise a bit the body parsing and add support for URLXavier Claessens2009-06-121-45/+89
|
* Fix a typo in a commentXavier Claessens2009-06-121-1/+1
|
* Add support for smileys with adium themesXavier Claessens2009-06-121-13/+63
|
* rename ready to page_loaded, it explains better what it does.Xavier Claessens2009-06-121-3/+3
|
* Add path in EmpathySmileyXavier Claessens2009-06-121-28/+7
|
* Update for more recent webkitXavier Claessens2009-06-121-4/+1
|
* Fallback if ContentNext or Outgoing are missing.Xavier Claessens2009-06-121-4/+7
|
* Oops, remove stupid debug g_printXavier Claessens2009-06-121-3/+0
|
* Don't load SVG icons because webkit can't load themXavier Claessens2009-06-121-1/+4
|
* Add the filename in EmpathyAvatar and fallback to stock_personXavier Claessens2009-06-121-19/+69
|
* Support for custom time formatXavier Claessens2009-06-121-11/+35
|
* Add initial adium theme support: Load the template and append messages.Xavier Claessens2009-06-121-16/+272
|
* EmpathyThemeAdium inherit from WebkitWebView and not GtkTextView.Xavier Claessens2009-06-121-4/+4
|
* Add skelet of Adium theme using webkit.Xavier Claessens2009-06-121-0/+157