~ubuntu-branches/debian/stretch/gnome-sushi/stretch

« back to all changes in this revision

Viewing changes to src/js/viewers/image.js

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson
  • Date: 2014-07-15 13:16:55 UTC
  • mfrom: (2.1.5 experimental)
  • Revision ID: package-import@ubuntu.com-20140715131655-55wqzvoehb562cn7
Tags: 3.12.0-2
* Build-depend on libdiscid-dev instead of libdiscid0-dev (Closes: #753633)
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 * General Public License for more details.
13
13
 *
14
14
 * You should have received a copy of the GNU General Public License
15
 
 * along with this program; if not, write to the Free Software
16
 
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
17
 
 * 02111-1307, USA.
 
15
 * along with this program; if not, see <http://www.gnu.org/licenses/>.
18
16
 *
19
17
 * The Sushi project hereby grant permission for non-gpl compatible GStreamer
20
18
 * plugins to be used and distributed together with GStreamer and Sushi. This
25
23
 *
26
24
 */
27
25
 
28
 
let MimeHandler = imports.ui.mimeHandler;
29
 
let GdkPixbuf = imports.gi.GdkPixbuf;
30
 
let GtkClutter = imports.gi.GtkClutter;
31
 
let Gtk = imports.gi.Gtk;
32
 
let GLib = imports.gi.GLib;
33
 
 
34
 
let Gettext = imports.gettext.domain('sushi');
35
 
let _ = Gettext.gettext;
36
 
 
37
 
let Utils = imports.ui.utils;
 
26
const GdkPixbuf = imports.gi.GdkPixbuf;
 
27
const GtkClutter = imports.gi.GtkClutter;
 
28
const Gtk = imports.gi.Gtk;
 
29
const GLib = imports.gi.GLib;
 
30
 
 
31
const Gettext = imports.gettext.domain('sushi');
 
32
const _ = Gettext.gettext;
 
33
const Lang = imports.lang;
 
34
 
 
35
const MimeHandler = imports.ui.mimeHandler;
 
36
const Utils = imports.ui.utils;
38
37
 
39
38
function ImageRenderer(args) {
40
39
    this._init(args);
118
117
let renderer = new ImageRenderer();
119
118
 
120
119
let formats = GdkPixbuf.Pixbuf.get_formats();
121
 
for (idx in formats) {
 
120
for (let idx in formats) {
122
121
    let mimeTypes = formats[idx].get_mime_types();
123
122
    handler.registerMimeTypes(mimeTypes, renderer);
124
123
}