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 596303 - Missing file fallback for Adium themes not implemented.
Missing file fallback for Adium themes not implemented.
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: Chat themes
unspecified
Other Linux
: Normal normal
: ---
Assigned To: empathy-maint
Depends on:
Blocks:
 
 
Reported: 2009-09-25 13:01 UTC by Alistair Buxton
Modified: 2009-09-30 14:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Adium theme with only the minimum required files. (10.00 KB, application/x-tar)
2009-09-25 13:01 UTC, Alistair Buxton
Details
Adium theme with all required files (20.00 KB, application/x-tar)
2009-09-25 13:02 UTC, Alistair Buxton
Details

Description Alistair Buxton 2009-09-25 13:01:45 UTC
Created attachment 143985 [details]
Adium theme with only the minimum required files.

If files are missing from the Adium theme, the messages types handled by those
files are just thrown away. Instead, the formatting should fall back to another
file such as Incoming/Content.html

Particularly this causes a problem with the option Incoming/NextContent.html
and Outgoing/NextContent.html. If these files are present then NextContent is
handled specially (by stuffing it into the html parent object which might not
exist). If they are not present then continued messages are not shown at all.
This means it is not possible to make a theme which does not do special
handling on continued messages.
Comment 1 Alistair Buxton 2009-09-25 13:02:50 UTC
Created attachment 143986 [details]
Adium theme with all required files

This still doesn't work because now NextContent.html is present, empathy attempts to stuff the content into the html parent, which does not exist.
Comment 2 Alistair Buxton 2009-09-25 15:14:44 UTC
In fact, fallback does work for some files. It fails in some conditions though, such as supplying an empty Outgoing directory. In these cases it tends to segfault. 

The original problem was in fact caused because fallback *does* work when sometimes it shouldn't: https://bugzilla.gnome.org/show_bug.cgi?id=596317
Comment 3 Xavier Claessens 2009-09-28 07:55:42 UTC
This branch makes the correct fallbacks, as defined there: http://trac.adium.im/wiki/CreatingMessageStyles

http://git.collabora.co.uk/?p=user/xclaesse/empathy.git;a=shortlog;h=refs/heads/adium-fallback

I tested the first theme you attached and it seems to work perfectly. Can you confirm?
Comment 4 Alistair Buxton 2009-09-28 10:31:34 UTC
Faillback seems to work perfectly with this patch. I cannot reproduce the crashes I was getting with an empty Outgoing directory for example.
Comment 5 Alistair Buxton 2009-09-28 13:50:54 UTC
Also note, in Adium 1.4 all html files can fallback to Resources/Content.html
Comment 6 Xavier Claessens 2009-09-30 14:20:08 UTC
Branch merged to both master and gnome-2-28