diff options
author | Rory MacQueen <rorymacqueen@gmail.com> | 2013-08-15 15:41:36 -0700 |
---|---|---|
committer | Rory MacQueen <rorymacqueen@gmail.com> | 2013-08-15 15:41:36 -0700 |
commit | fd81565c5527b99dd212b03c2f329a00e146f03b (patch) | |
tree | 7f3afa3eaf6258d34e98abf611f79cbfdb417ecf /wikipedia/widgets/BackButton.js | |
parent | 544c137fc8524c5929c7672768775763ea10d848 (diff) |
Reorganized import paths
Moved all widgets into widgets directory. Changed Endless Wikipedia file
to expose wikipedia web view
[endlessm/eos-sdk#260]
Diffstat (limited to 'wikipedia/widgets/BackButton.js')
-rw-r--r-- | wikipedia/widgets/BackButton.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/wikipedia/widgets/BackButton.js b/wikipedia/widgets/BackButton.js new file mode 100644 index 0000000..cfb3155 --- /dev/null +++ b/wikipedia/widgets/BackButton.js @@ -0,0 +1,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); + } +}); |