aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-avatar-chooser.c
Commit message (Collapse)AuthorAgeFilesLines
* empathy-avatar-chooser: remove trailing tabsGuillaume Desmottes2009-06-251-3/+3
|
* Add the filename in EmpathyAvatar and fallback to stock_personXavier Claessens2009-06-121-2/+2
|
* empathy-avatar-chooser: fix coding style and update FSF addressGuillaume Desmottes2009-05-181-4/+4
|
* Add documentation for EmpathyAvatarChooser.Jonny Lamb2009-04-231-0/+53
| | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* Base EmpathyAvatarChooser on connection instead of account.Xavier Claessens2009-04-221-83/+29
|
* Fix memleak in avatar_chooser_maybe_convert_and_scale. Unref the scaled bufferLars-Peter Clausen2009-04-211-1/+2
| | | | after it has been saved and is not needed anymore.
* Fix memleak in avatar_chooser_update_preview_cb. Free string returned byLars-Peter Clausen2009-04-211-0/+2
| | | | gtk_file_chooser_get_preview_filename.
* Set the default image when clearing the avatar, even if there were no avatar ↵Xavier Claessens2009-04-131-5/+3
| | | | | | | | previously. That happens when the widget is created. Fixe bug #566905 From: Xavier Claessens <xclaesse@gmail.com> svn path=/trunk/; revision=2817
* Reuse, and properly destroy, the avatar file chooser dialog.Frederic Peters2009-01-121-1/+12
| | | | | | Fixes bug #548768 (Frederic Peters) svn path=/trunk/; revision=2225
* Port EmpathyContactFactory to the new singleton policy.Xavier Claessens2009-01-091-1/+1
| | | | svn path=/trunk/; revision=2113
* Use gi18n-lib.h instead of gi18n.h for libraries.Xavier Claessens2008-12-121-1/+1
| | | | svn path=/trunk/; revision=1967
* max_width, max_height and max_size are defined as guint in ↵Xavier Claessens2008-11-281-1/+1
| | | | | | EmpathyTpContactFactory and telepathy spec. svn path=/trunk/; revision=1923
* Use proper format string for max-size propertyMathias Hasselmann2008-11-141-1/+1
| | | | svn path=/trunk/; revision=1718
* Trivial simplification of the mathXavier Claessens2008-11-111-1/+1
| | | | svn path=/trunk/; revision=1714
* Try to keep the original image format in avatar chooser. This avoid droping ↵Xavier Claessens2008-11-111-58/+69
| | | | | | alpha layer when converting from PNG to JPEG. svn path=/trunk/; revision=1713
* Improve error message.Xavier Claessens2008-11-111-2/+3
| | | | svn path=/trunk/; revision=1712
* Report error to the user when converting the avatar fails.Xavier Claessens2008-11-111-4/+37
| | | | svn path=/trunk/; revision=1711
* Cleanup code and add some commentsXavier Claessens2008-11-111-6/+17
| | | | svn path=/trunk/; revision=1710
* Make a dichotomic search for the optimal image size. Cleanup some codeXavier Claessens2008-11-111-112/+121
| | | | svn path=/trunk/; revision=1708
* Correctly resize the image to fit required max width/heightXavier Claessens2008-11-111-13/+33
| | | | svn path=/trunk/; revision=1707
* Add empathy_pixbuf_from_data_and_mime instead of breaking API.Xavier Claessens2008-11-111-2/+4
| | | | svn path=/trunk/; revision=1706
* Don't modify EmpathyAvatar::format if gdkpixbuf disagreesXavier Claessens2008-11-111-4/+4
| | | | svn path=/trunk/; revision=1705
* Use two g_asserts rather than g_assert (foo && bar).Xavier Claessens2008-11-111-2/+4
| | | | svn path=/trunk/; revision=1704
* can_satisfy_mime_type_requirements: assume out params != NULLXavier Claessens2008-11-111-10/+2
| | | | | | (I never actually removed the assertion that they be non-NULL.) svn path=/trunk/; revision=1703
* Prefer png or jpeg if possible when converting avatarsXavier Claessens2008-11-111-20/+34
| | | | svn path=/trunk/; revision=1702
* If setting an avatar from an EmpathyAvatar, just ref it.Xavier Claessens2008-11-111-25/+66
| | | | svn path=/trunk/; revision=1699
* AvatarChooser: clarify why _scale_down_if_necessary is cheap.Xavier Claessens2008-11-111-2/+7
| | | | svn path=/trunk/; revision=1698
* Make can_satisfy_mime_type_requirements accept NULL out params.Xavier Claessens2008-11-111-6/+24
| | | | svn path=/trunk/; revision=1697
* Flip iterating across format_mime_types and accepted_mime_types.Xavier Claessens2008-11-111-2/+2
| | | | | | | | This better reflects the purpose of the conditional; "for each mime type we can convert to, is it acceptable?" is clearer than "for each acceptable mime type, can we convert to it?". svn path=/trunk/; revision=1696
* Use l and strv for list and strv iterators, not i and jXavier Claessens2008-11-111-7/+7
| | | | svn path=/trunk/; revision=1695
* Coding style: cuddle a braceXavier Claessens2008-11-111-2/+1
| | | | svn path=/trunk/; revision=1693
* AvatarChooser: don't set contact_factory to NULL after unreffing.Xavier Claessens2008-11-111-3/+2
| | | | | | The object is being destroyed anyway. svn path=/trunk/; revision=1692
* AvatarChooser: Remove empathy_ prefix from static functions.Xavier Claessens2008-11-111-10/+10
| | | | svn path=/trunk/; revision=1691
* AvatarChooser needs no ContactFactory property; it's a singleton.Xavier Claessens2008-11-111-29/+4
| | | | svn path=/trunk/; revision=1690
* Coding style: no blank lines in local variable declarationsXavier Claessens2008-11-111-4/+0
| | | | svn path=/trunk/; revision=1689
* Coding style: use FIXME rather than TODO.Xavier Claessens2008-11-111-5/+5
| | | | svn path=/trunk/; revision=1688
* Coding style: only one blank line between functions.Xavier Claessens2008-11-111-5/+0
| | | | svn path=/trunk/; revision=1687
* Coding style: use braces for one-statement blocks in AvatarChooserXavier Claessens2008-11-111-9/+19
| | | | svn path=/trunk/; revision=1686
* Check the contact factory is still ready when avatar picker is OKed.Xavier Claessens2008-11-111-0/+13
| | | | svn path=/trunk/; revision=1685
* Don't explicitly check for the new avatar being zero bytesXavier Claessens2008-11-111-1/+1
| | | | | | | empathy_pixbuf_from_data will whine if it can't parse the image, which it won't be able to. svn path=/trunk/; revision=1684
* Don't clear user's avatar if a file can't be read.Xavier Claessens2008-11-111-2/+0
| | | | svn path=/trunk/; revision=1683
* Implement scaling and converting avatars before sending.Xavier Claessens2008-11-111-65/+265
| | | | svn path=/trunk/; revision=1682
* Track whether avatar is being set locally, or received from elsewhere.Xavier Claessens2008-11-111-12/+17
| | | | svn path=/trunk/; revision=1680
* Use e_avatar_chooser_clear_image() helper.Xavier Claessens2008-11-111-1/+1
| | | | svn path=/trunk/; revision=1679
* Ref result of empathy_contact_factory_get_tp_factoryXavier Claessens2008-11-111-2/+2
| | | | svn path=/trunk/; revision=1678
* Make avatar chooser (in)sensitive when the TpContactFactory becomes (not) readyXavier Claessens2008-11-111-10/+62
| | | | svn path=/trunk/; revision=1677
* AvatarChooser: Add McAccount and EmpathyContactFactory propertiesXavier Claessens2008-11-111-2/+96
| | | | svn path=/trunk/; revision=1675
* Don't automatically resize and png-ify avatars.Xavier Claessens2008-11-111-34/+37
| | | | svn path=/trunk/; revision=1669
* Consolidate hardcoding avatars to PNG to one function.Xavier Claessens2008-11-111-1/+7
| | | | | | | (Incidentally, return "image/png" rather than "png" for the mime type, as the latter is not a mime type.) svn path=/trunk/; revision=1668
* Keep a priv pointer in the object struct instead of using ↵Xavier Claessens2008-05-061-5/+5
| | | | | | G_TYPE_INSTANCE_GET_PRIVATE all the time. svn path=/trunk/; revision=1082
* Make use of tp-glib debug system.Xavier Claessens2008-05-011-7/+6
| | | | svn path=/trunk/; revision=1066
* Move modules that make no sense to be used in other applicaton from ↵Xavier Claessens2008-03-141-1/+0
| | | | | | libempathy-gtk/ to src/ svn path=/trunk/; revision=789
* Fix leaksXavier Claessens2008-03-111-10/+11
| | | | svn path=/trunk/; revision=739
* Drop gnome-vfs dependency and use gio instead. Fixes bug #514380 (Cosimo ↵Xavier Claessens2008-03-111-20/+29
| | | | | | Cecchi). svn path=/trunk/; revision=737
* Update collabora copyright to 2008Xavier Claessens2008-03-031-1/+1
| | | | svn path=/trunk/; revision=688
* Move empathy-conf to libempathy-gtk. libempathy do not depend directly on ↵Xavier Claessens2008-01-231-1/+2
| | | | | | gconf anymore. svn path=/trunk/; revision=597
* Change EMPATHY_AVATAR_CHOOSER_TYPE to EMPATHY_TYPE_AVATAR_CHOOSERXavier Claessens2008-01-161-2/+2
| | | | svn path=/trunk/; revision=562
* Fix setting avatar. (Sjoerd Simons)Xavier Claessens2008-01-051-1/+1
| | | | svn path=/trunk/; revision=530
* Rename empathy_contact_factory_set_name() to _set_alias(). ImplementsXavier Claessens2007-11-041-2/+6
| | | | | | | | | | | | | | | | | 2007-11-03 Xavier Claessens <xclaesse@gmail.com> * libempathy-gtk/empathy-contact-widget.c: * libempathy-gtk/empathy-avatar-chooser.c: * libempathy-gtk/empathy-avatar-chooser.h: * python/pyempathy/pyempathy.defs: * libempathy/empathy-contact-factory.c: * libempathy/empathy-contact-factory.h: Rename empathy_contact_factory_set_name() to _set_alias(). Implements empathy_contact_factory_set_avatar(). Return the mime_type in empathy_avatar_chooser_get_image_data(). svn path=/trunk/; revision=417
* Makes avatar looks better in information and edit dialogs.Xavier Claessens2007-10-091-23/+15
| | | | | | | | | | | | | 2007-10-09 Xavier Claessens <xclaesse@gmail.com> * libempathy-gtk/empathy-contact-widget.glade: * libempathy-gtk/empathy-contact-widget.c: * libempathy-gtk/empathy-avatar-chooser.c: * libempathy-gtk/empathy-avatar-image.c: Makes avatar looks better in information and edit dialogs. svn path=/trunk/; revision=364
* Implement EmpathyAvatarChooser and EmpathyAvatarImage and make use of themXavier Claessens2007-10-091-0/+572
2007-10-08 Xavier Claessens <xclaesse@gmail.com> * libempathy-gtk/empathy-ui-utils.c: * libempathy-gtk/empathy-ui-utils.h: * libempathy-gtk/empathy-contact-widget.c: * libempathy-gtk/empathy-contact-widget.h: * libempathy-gtk/empathy-avatar-chooser.c: * libempathy-gtk/empathy-avatar-chooser.h: * libempathy-gtk/empathy-avatar-image.c: * libempathy-gtk/empathy-avatar-image.h: * libempathy-gtk/Makefile.am: * src/empathy.c: Implement EmpathyAvatarChooser and EmpathyAvatarImage and make use of them in contact information windows. That means we can now enlarge avatars when clicking on it and we can set our own avatar if we edit our own contact. svn path=/trunk/; revision=363