200
201
public static String[] getSystemConfigDirs() {
201
202
return GlibMisc.getSystemConfigDirs();
206
* Format a size into a human readable String. This is useful when
207
* representing file sizes and data transfer rates.
210
* Sizes use the nearest prefix (KB, MB, GB). The prefix units are base 2
211
* so 1 MB is 1024 * 1024 bytes.
214
* Note that the returned String depends on the localization. E.g. if the
215
* system is configured to use French, the formatted size will use French
220
public static String formatSizeForDisplay(long size) {
221
return GlibMisc.formatSizeForDisplay(size);
225
* Perform basic escaping on a String so that it can be safely passed to
229
* This will escape <code>&</code>, <code>></code>,
230
* <code><</code>, etc which is necessary when passing arbitrary input
231
* to methods which use Pango Markup such as Labels with markup enabled
232
* via {@link org.gnome.gtk.Label#setUseMarkup(boolean) setUseMarkup()}
233
* and directly with CellRendererText's
234
* {@link org.gnome.gtk.CellRendererText#setMarkup(org.gnome.gtk.DataColumnString)
235
* setMarkup()} or Layout's
236
* {@link org.gnome.pango.Layout#setMarkup(String) setMarkup()}
240
public static String markupEscapeText(String str) {
241
return GlibMisc.markupEscapeText(str, -1);