~ubuntu-branches/debian/sid/java-gnome/sid

« back to all changes in this revision

Viewing changes to src/bindings/org/gnome/glib/Glib.java

  • Committer: Package Import Robot
  • Author(s): Guillaume Mazoyer
  • Date: 2014-05-19 17:39:50 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20140519173950-fnvrdx3b8fa94hj0
Tags: 4.1.3-1
* New upstream release.
* debian/control
  - Remove libunique dependency.
  - Remove DM-Upload-Allowed field.
  - Add dbus-x11 dependency to take doc screenshots.
  - Update Standards-Version to 3.9.4.
* debian/README.Maintainer
  - Add instructions for maintainers.
* debian/libjava-gnome-java.docs
  - Update documentation filenames.
* debian/libjava-gnome-java-doc.install
  - Fix HACKING file installation.
* debian/patches/02_unique_dependency.diff
  - Remove no longer needed patch (fixed upstream).
* debian/patches/02_build_python.diff
  - Add patch to fix build process (python2 env variable not found).
* debian/patches/03_build_doc_snapshots.diff (Closes: #748565)
  - Add patch to fix build process of the documentation (accessibilty bug).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * java-gnome, a UI library for writing GTK and GNOME programs from Java!
3
3
 *
4
 
 * Copyright © 2006-2010 Operational Dynamics Consulting, Pty Ltd and Others
 
4
 * Copyright © 2006-2013 Operational Dynamics Consulting, Pty Ltd and Others
5
5
 *
6
6
 * The code in this file, and the program it is a part of, is made available
7
7
 * to you by its authors as open source software: you can redistribute it
226
226
     * size prefix.
227
227
     * 
228
228
     * @since 4.0.16
 
229
     * @deprecated Use {@link #formatSize(long) formatSize()} instead.
229
230
     */
230
231
    public static String formatSizeForDisplay(long size) {
231
232
        return GlibMisc.formatSizeForDisplay(size);
232
233
    }
233
234
 
234
235
    /**
 
236
     * Format a size into a human readable String. This is useful when
 
237
     * representing file sizes and data transfer rates.
 
238
     * 
 
239
     * <p>
 
240
     * Sizes use the nearest prefix (kB, MB, GB). The prefix units base is
 
241
     * 1000 (i.e. 1 kB is 1000 bytes).
 
242
     * 
 
243
     * <p>
 
244
     * Note that the returned String depends on the localization. E.g. if the
 
245
     * system is configured to use French, the formatted size will use French
 
246
     * size prefix.
 
247
     * 
 
248
     * @since 4.1.3
 
249
     */
 
250
    public static String formatSize(long size) {
 
251
        return GlibMisc.formatSize(size);
 
252
    }
 
253
 
 
254
    /**
 
255
     * This function is similar to {@link #formatSize(long) formatSize()} but
 
256
     * allows for flags that modify the output. See {@link FormatSizeFlags}.
 
257
     * 
 
258
     * @since 4.1.3
 
259
     */
 
260
    public static String formatSize(long size, FormatSizeFlags format) {
 
261
        return GlibMisc.formatSize(size, format);
 
262
    }
 
263
 
 
264
    /**
235
265
     * Perform basic escaping on a String so that it can be safely passed to
236
266
     * XML.
237
267
     *