-#ifdef __WXGTK26__
- if ( !gtk_check_version(2,6,0) )
- {
- gint *sizes = gtk_icon_theme_get_icon_sizes
- (
- gtk_icon_theme_get_default(),
- stockid.utf8_str()
- );
- if ( !sizes )
- return wxNullIconBundle;
-
- gint *last = sizes;
- while ( *last )
- last++;
-
- wxIconBundle bundle = DoCreateIconBundle
- (
- stockid.utf8_str(),
- sizes, last,
- &CreateThemeIcon
- );
- g_free(sizes);
+ gint *sizes = gtk_icon_theme_get_icon_sizes
+ (
+ gtk_icon_theme_get_default(),
+ stockid.utf8_str()
+ );
+ if ( !sizes )