summaryrefslogtreecommitdiff
path: root/wikipedia/BackButton.js
blob: cfb315526d90193655602a2e3770a0e45bfe488d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
const GObject = imports.gi.GObject;
const Gtk = imports.gi.Gtk;
const Lang = imports.lang;

const BackButton = new Lang.Class({
    Name: 'BackButton',
    Extends: Gtk.Button,

    _init: function(props) {
        props = props || {};
        props.image = Gtk.Image.new_from_icon_name('go-previous-symbolic',
            Gtk.IconSize.BUTTON);
        props.always_show_image = true;
        // Don't do that. What should actually happen is the system-wide setting
        // that controls whether buttons show images should be changed.
        this.parent(props);
    }
});