}
// otherwise try icon themes
-#ifdef __WXGTK26__
-#ifndef __WXGTK3__
- if ( !gtk_check_version(2,6,0) )
-#endif
- {
- gint *sizes = gtk_icon_theme_get_icon_sizes
- (
- gtk_icon_theme_get_default(),
- stockid.utf8_str()
- );
- if ( !sizes )
- return bundle;
-
- gint *last = sizes;
- while ( *last )
- last++;
+ gint *sizes = gtk_icon_theme_get_icon_sizes
+ (
+ gtk_icon_theme_get_default(),
+ stockid.utf8_str()
+ );
+ if ( !sizes )
+ return bundle;
- bundle = DoCreateIconBundle
- (
- stockid.utf8_str(),
- sizes, last,
- &CreateThemeIcon
- );
- g_free(sizes);
- }
-#endif // __WXGTK26__
+ gint *last = sizes;
+ while ( *last )
+ last++;
+
+ bundle = DoCreateIconBundle
+ (
+ stockid.utf8_str(),
+ sizes, last,
+ &CreateThemeIcon
+ );
+ g_free(sizes);
return bundle;
}