Mercurial > pidgin.yaz
comparison gtk/gtkutils.h @ 14852:cf25420b074d
[gaim-migrate @ 17621]
Allow custom buddy icons for people in the buddylist. It's done completely in
the UI side. The custom icon does not overwrite the original icon, which is
displayed in the tooltip.
You can set the icon by dragging an image on the conv window, or on the buddy in
the buddylist. You can also set/remove custom icon from the conversation window
by right clicking on the icon in the conv window.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 29 Oct 2006 23:35:57 +0000 |
parents | c18bdf510325 |
children | 2d3c7f76cea0 |
comparison
equal
deleted
inserted
replaced
14851:036927fddcba | 14852:cf25420b074d |
---|---|
473 /** | 473 /** |
474 * Converts a buddy icon to the required size and format | 474 * Converts a buddy icon to the required size and format |
475 * | 475 * |
476 * @param plugin The prpl to conver the icon | 476 * @param plugin The prpl to conver the icon |
477 * @param path The path of a buddy icon to convert | 477 * @param path The path of a buddy icon to convert |
478 * @return The path of a new buddy icon | 478 * @return The name of a new buddy icon |
479 */ | 479 */ |
480 char* gaim_gtk_convert_buddy_icon(GaimPlugin *plugin, const char *path); | 480 char* gaim_gtk_convert_buddy_icon(GaimPlugin *plugin, const char *path); |
481 | 481 |
482 #if !GTK_CHECK_VERSION(2,6,0) | 482 #if !GTK_CHECK_VERSION(2,6,0) |
483 /** | 483 /** |
489 gboolean preserve_aspect_ratio, | 489 gboolean preserve_aspect_ratio, |
490 GError **error); | 490 GError **error); |
491 #endif | 491 #endif |
492 | 492 |
493 #endif /* _GAIM_GTKUTILS_H_ */ | 493 #endif /* _GAIM_GTKUTILS_H_ */ |
494 | |
495 /** | |
496 * Set or unset a custom buddyicon for a user. | |
497 * | |
498 * @param account The account the user belongs to. | |
499 * @param who The name of the user. | |
500 * @param filename The path of the custom icon. If this is @c NULL, then any | |
501 * previously set custom buddy icon for the user is removed. | |
502 */ | |
503 void gaim_gtk_set_custom_buddy_icon(GaimAccount *account, const char *who, const char *filename); |