pidgin/pidginpresenceicon.c

changeset 41027
aa0e688f2f46
parent 40652
0006f8158d6e
child 41355
cb48a8dd1bfc
equal deleted inserted replaced
41026:961691c45150 41027:aa0e688f2f46
20 * along with this program; if not, see <https://www.gnu.org/licenses/>. 20 * along with this program; if not, see <https://www.gnu.org/licenses/>.
21 */ 21 */
22 22
23 #include "pidgin/pidginpresenceicon.h" 23 #include "pidgin/pidginpresenceicon.h"
24 24
25 #include "pidgin/pidginpresence.h" 25 #include "pidgin/pidginiconname.h"
26 26
27 struct _PidginPresenceIcon { 27 struct _PidginPresenceIcon {
28 GtkImage parent; 28 GtkImage parent;
29 29
30 PurplePresence *presence; 30 PurplePresence *presence;
48 *****************************************************************************/ 48 *****************************************************************************/
49 static void 49 static void
50 pidgin_presence_icon_update(PidginPresenceIcon *icon) { 50 pidgin_presence_icon_update(PidginPresenceIcon *icon) {
51 const gchar *icon_name = NULL; 51 const gchar *icon_name = NULL;
52 52
53 icon_name = pidgin_presence_get_icon_name(icon->presence, icon->fallback); 53 icon_name = pidgin_icon_name_from_presence(icon->presence, icon->fallback);
54 54
55 gtk_image_set_from_icon_name(GTK_IMAGE(icon), icon_name, icon->icon_size); 55 gtk_image_set_from_icon_name(GTK_IMAGE(icon), icon_name, icon->icon_size);
56 } 56 }
57 57
58 static void 58 static void

mercurial