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

« back to all changes in this revision

Viewing changes to src/js/ui/fallbackRenderer.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 Gtk = imports.gi.Gtk;
29
 
let Sushi = imports.gi.Sushi;
30
 
 
31
 
let Gettext = imports.gettext.domain('sushi');
32
 
let _ = Gettext.gettext;
33
 
 
34
 
let Constants = imports.util.constants;
35
 
let Utils = imports.ui.utils;
 
26
const Gio = imports.gi.Gio;
 
27
const Gtk = imports.gi.Gtk;
 
28
const GtkClutter = imports.gi.GtkClutter;
 
29
const Sushi = imports.gi.Sushi;
 
30
 
 
31
const Gettext = imports.gettext.domain('sushi');
 
32
const _ = Gettext.gettext;
 
33
const Lang = imports.lang;
 
34
 
 
35
const Constants = imports.util.constants;
 
36
const Utils = imports.ui.utils;
36
37
 
37
38
function FallbackRenderer(args) {
38
39
    this._init(args);
146
147
 
147
148
        if (this._fileLoader.icon)
148
149
            this._image.set_from_pixbuf(this._fileLoader.icon);
149
 
        else
150
 
            this._setImageFromType();
151
150
 
152
151
        this._applyLabels();
153
152
        this._mainWindow.refreshSize();