pidgin/gtkaccount.c

changeset 31889
96183796df0c
parent 31734
cec02d1d1c13
child 32433
f539a2c083b2
child 32900
9985c4a0e27b
child 34023
6bc30809f7fe
child 35929
ada9d85d4e38
equal deleted inserted replaced
31888:8300e1e9a38c 31889:96183796df0c
2133 const char *path; 2133 const char *path;
2134 2134
2135 gtk_list_store_clear(dialog->model); 2135 gtk_list_store_clear(dialog->model);
2136 2136
2137 if ((path = purple_prefs_get_path(PIDGIN_PREFS_ROOT "/accounts/buddyicon")) != NULL) { 2137 if ((path = purple_prefs_get_path(PIDGIN_PREFS_ROOT "/accounts/buddyicon")) != NULL) {
2138 GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file(path, NULL); 2138 GdkPixbuf *pixbuf = pidgin_pixbuf_new_from_file(path);
2139 if (pixbuf != NULL) { 2139 if (pixbuf != NULL) {
2140 global_buddyicon = gdk_pixbuf_scale_simple(pixbuf, 22, 22, GDK_INTERP_HYPER); 2140 global_buddyicon = gdk_pixbuf_scale_simple(pixbuf, 22, 22, GDK_INTERP_HYPER);
2141 g_object_unref(G_OBJECT(pixbuf)); 2141 g_object_unref(G_OBJECT(pixbuf));
2142 } 2142 }
2143 } 2143 }

mercurial