Created
March 25, 2015 19:59
-
-
Save rmacqueen/aa68c0920f60baaa2956 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Gtk = imports.gi.Gtk; | |
const Pango = imports.gi.Pango; | |
Gtk.init(null); | |
let text = " Mon: ကျာ် လ္ဂုၚ်."; | |
let label = new Gtk.Label({ | |
ellipsize: Pango.EllipsizeMode.END, | |
lines: 2, | |
max_width_chars: 10, | |
label: text, | |
}); | |
let mwindow = new Gtk.Window({ | |
default_width: 600, | |
default_height: 400 | |
}); | |
mwindow.add(label); | |
mwindow.show_all(); | |
mwindow.connect('destroy', function() { Gtk.main_quit() }); | |
Gtk.main(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This also segfaults: