pidgin/gtkutils.c

changeset 24569
5dbd0617a27d
parent 23501
55185be28a1b
child 24672
3e12ba88e3b9
equal deleted inserted replaced
24568:c90b00f17f7e 24569:5dbd0617a27d
21 * 21 *
22 * You should have received a copy of the GNU General Public License 22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software 23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA 24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
25 */ 25 */
26 #define _PIDGIN_GTKUTILS_C_
27
26 #include "internal.h" 28 #include "internal.h"
27 #include "pidgin.h" 29 #include "pidgin.h"
28 30
29 #ifndef _WIN32 31 #ifndef _WIN32
30 # include <X11/Xlib.h> 32 # include <X11/Xlib.h>
2876 2878
2877 return pixbuf; 2879 return pixbuf;
2878 } 2880 }
2879 #endif /* ! Gtk 2.6.0 */ 2881 #endif /* ! Gtk 2.6.0 */
2880 2882
2881 #ifndef PURPLE_DISABLE_DEPRECATED
2882 void pidgin_set_custom_buddy_icon(PurpleAccount *account, const char *who, const char *filename) 2883 void pidgin_set_custom_buddy_icon(PurpleAccount *account, const char *who, const char *filename)
2883 { 2884 {
2884 PurpleBuddy *buddy; 2885 PurpleBuddy *buddy;
2885 PurpleContact *contact; 2886 PurpleContact *contact;
2886 2887
2891 } 2892 }
2892 2893
2893 contact = purple_buddy_get_contact(buddy); 2894 contact = purple_buddy_get_contact(buddy);
2894 purple_buddy_icons_node_set_custom_icon_from_file((PurpleBlistNode*)contact, filename); 2895 purple_buddy_icons_node_set_custom_icon_from_file((PurpleBlistNode*)contact, filename);
2895 } 2896 }
2896 #endif
2897 2897
2898 char *pidgin_make_pretty_arrows(const char *str) 2898 char *pidgin_make_pretty_arrows(const char *str)
2899 { 2899 {
2900 char *ret; 2900 char *ret;
2901 char **split = g_strsplit(str, "->", -1); 2901 char **split = g_strsplit(str, "->", -1);

mercurial