pidgin/pidginstock.c

changeset 39045
ad2b0e960d3c
parent 39041
221480664ce5
child 39143
a73edfee5a67
equal deleted inserted replaced
39044:6586193474f2 39045:ad2b0e960d3c
205 { PIDGIN_STOCK_STATUS_MESSAGE, "actions", "message-new.png", TRUE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL } 205 { PIDGIN_STOCK_STATUS_MESSAGE, "actions", "message-new.png", TRUE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }
206 }; 206 };
207 207
208 const SizedStockIcon sized_tray_icons [] = { 208 const SizedStockIcon sized_tray_icons [] = {
209 #define SIZED_TRAY_ICON(name) \ 209 #define SIZED_TRAY_ICON(name) \
210 { name, "tray/hicolor", "status/" name ".png", FALSE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, NULL } 210 { name, "status", name ".png", FALSE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, NULL }
211 SIZED_TRAY_ICON( PIDGIN_STOCK_TRAY_AVAILABLE ), 211 SIZED_TRAY_ICON( PIDGIN_STOCK_TRAY_AVAILABLE ),
212 SIZED_TRAY_ICON( PIDGIN_STOCK_TRAY_INVISIBLE ), 212 SIZED_TRAY_ICON( PIDGIN_STOCK_TRAY_INVISIBLE ),
213 SIZED_TRAY_ICON( PIDGIN_STOCK_TRAY_AWAY ), 213 SIZED_TRAY_ICON( PIDGIN_STOCK_TRAY_AWAY ),
214 SIZED_TRAY_ICON( PIDGIN_STOCK_TRAY_BUSY ), 214 SIZED_TRAY_ICON( PIDGIN_STOCK_TRAY_BUSY ),
215 SIZED_TRAY_ICON( PIDGIN_STOCK_TRAY_XA ), 215 SIZED_TRAY_ICON( PIDGIN_STOCK_TRAY_XA ),
489 if (sized_tray_icons[i].name) { \ 489 if (sized_tray_icons[i].name) { \
490 add_sized_icon(normal, name, PIDGIN_ICON_THEME(theme), size, sized_tray_icons[i], FALSE); \ 490 add_sized_icon(normal, name, PIDGIN_ICON_THEME(theme), size, sized_tray_icons[i], FALSE); \
491 if (sized_tray_icons[i].translucent_name) \ 491 if (sized_tray_icons[i].translucent_name) \
492 add_sized_icon(translucent, name, PIDGIN_ICON_THEME(theme), size, sized_tray_icons[i], TRUE); \ 492 add_sized_icon(translucent, name, PIDGIN_ICON_THEME(theme), size, sized_tray_icons[i], TRUE); \
493 } 493 }
494 ADD_SIZED_ICON(extra_small, "16x16"); 494 ADD_SIZED_ICON(extra_small, "16");
495 ADD_SIZED_ICON(small, "22x22"); 495 ADD_SIZED_ICON(small, "22");
496 ADD_SIZED_ICON(medium, "32x32"); 496 ADD_SIZED_ICON(medium, "32");
497 ADD_SIZED_ICON(large, "48x48"); 497 ADD_SIZED_ICON(large, "48");
498 #undef ADD_SIZED_ICON 498 #undef ADD_SIZED_ICON
499 499
500 gtk_icon_factory_add(icon_factory, sized_tray_icons[i].name, normal); 500 gtk_icon_factory_add(icon_factory, sized_tray_icons[i].name, normal);
501 gtk_icon_set_unref(normal); 501 gtk_icon_set_unref(normal);
502 502

mercurial