5089N/A# date:2009-10-08 owner:migi type:bug bugster:6888304
5089N/A# Bug 15594310 SUNBT6888304 panel applets should use transparent background
5089N/A# These changes should be submitted upstream.
5089N/A add_sized_icon(GtkIconSet *iconset, GtkIconSize sizeid, PidginIconTheme *theme,
5089N/A- const char *size, SizedStockIcon sized_icon, gboolean translucent)
5089N/A+ const char *size, SizedStockIcon sized_icon, gboolean translucent,
5089N/A gtk_icon_source_set_direction(source, GTK_TEXT_DIR_LTR);
5089N/A gtk_icon_source_set_size(source, sizeid);
5089N/A- gtk_icon_source_set_size_wildcarded(source, FALSE);
5089N/A+ gtk_icon_source_set_size_wildcarded(source, size_wildcarded);
5089N/A gtk_icon_source_set_state_wildcarded(source, TRUE);
5089N/A gtk_icon_set_add_source(iconset, source);
5089N/A gtk_icon_source_free(source);
5089N/A gtk_icon_source_set_pixbuf(source, pixbuf);
5089N/A gtk_icon_source_set_direction_wildcarded(source, TRUE);
5089N/A gtk_icon_source_set_size(source, GTK_ICON_SIZE_MENU);
5089N/A- gtk_icon_source_set_size_wildcarded(source, FALSE);
5089N/A+ gtk_icon_source_set_size_wildcarded(source, size_wildcarded);
5089N/A gtk_icon_source_set_state_wildcarded(source, TRUE);
5089N/A gtk_icon_set_add_source(iconset, source);
5089N/A gtk_icon_source_free(source);
5089N/A gtk_icon_source_set_filename(source, filename);
5089N/A gtk_icon_source_set_direction(source, GTK_TEXT_DIR_RTL);
5089N/A gtk_icon_source_set_size(source, sizeid);
5089N/A- gtk_icon_source_set_size_wildcarded(source, FALSE);
5089N/A+ gtk_icon_source_set_size_wildcarded(source, size_wildcarded);
5089N/A gtk_icon_source_set_state_wildcarded(source, TRUE);
5089N/A gtk_icon_set_add_source(iconset, source);
5089N/A #define ADD_SIZED_ICON(name, size) \
5089N/A if (sized_status_icons[i].name) { \
5089N/A- add_sized_icon(normal, name, PIDGIN_ICON_THEME(theme), size, sized_status_icons[i], FALSE); \
5089N/A+ add_sized_icon(normal, name, PIDGIN_ICON_THEME(theme), size, sized_status_icons[i], FALSE,FALSE); \
5089N/A if (sized_status_icons[i].translucent_name) \
5089N/A- add_sized_icon(translucent, name, PIDGIN_ICON_THEME(theme), size, sized_status_icons[i], TRUE); \
5089N/A+ add_sized_icon(translucent, name, PIDGIN_ICON_THEME(theme), size, sized_status_icons[i], TRUE,FALSE); \
5089N/A ADD_SIZED_ICON(microscopic, "11");
5089N/A ADD_SIZED_ICON(extra_small, "16");
5089N/A #define ADD_SIZED_ICON(name, size) \
5089N/A if (sized_tray_icons[i].name) { \
5089N/A- add_sized_icon(normal, name, PIDGIN_ICON_THEME(theme), size, sized_tray_icons[i], FALSE); \
5089N/A+ add_sized_icon(normal, name, PIDGIN_ICON_THEME(theme), size, sized_tray_icons[i], FALSE,TRUE); \
5089N/A if (sized_tray_icons[i].translucent_name) \
5089N/A- add_sized_icon(translucent, name, PIDGIN_ICON_THEME(theme), size, sized_tray_icons[i], TRUE); \
5089N/A+ add_sized_icon(translucent, name, PIDGIN_ICON_THEME(theme), size, sized_tray_icons[i], TRUE,TRUE); \
5089N/A ADD_SIZED_ICON(extra_small, "16x16");
5089N/A ADD_SIZED_ICON(small, "22x22");
5089N/A #define ADD_SIZED_ICON(name, size) \
5089N/A if (sized_stock_icons[i].name) \
5089N/A- add_sized_icon(iconset, name, PIDGIN_ICON_THEME(theme), size, sized_stock_icons[i], FALSE);
5089N/A+ add_sized_icon(iconset, name, PIDGIN_ICON_THEME(theme), size, sized_stock_icons[i], FALSE,FALSE);
5089N/A ADD_SIZED_ICON(microscopic, "11");
5089N/A ADD_SIZED_ICON(extra_small, "16");
5089N/A ADD_SIZED_ICON(small, "22");