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

« back to all changes in this revision

Viewing changes to src/js/ui/mimeHandler.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
27
25
 
28
26
const FallbackRenderer = imports.ui.fallbackRenderer;
29
27
 
30
 
let Gio = imports.gi.Gio;
 
28
const Gio = imports.gi.Gio;
31
29
 
32
30
let _mimeHandler = null;
33
31
 
58
56
    },
59
57
 
60
58
    registerMimeTypes: function(mimeTypes, obj) {
61
 
        for (idx in mimeTypes)
 
59
        for (let idx in mimeTypes)
62
60
            this.registerMime(mimeTypes[idx], obj);
63
61
    },
64
62
 
70
68
            /* if this fails, try to see if we have any handlers
71
69
             * registered for a parent type.
72
70
             */
73
 
            for (key in this._mimeTypes) {
 
71
            for (let key in this._mimeTypes) {
74
72
                if (Gio.content_type_is_a (mime, key))
75
73
                    return this._mimeTypes[key];
76
74
            }