~ubuntu-branches/ubuntu/wily/lua-lgi/wily-proposed

« back to all changes in this revision

Viewing changes to samples/gtk-demo/demo-infobar.lua

  • Committer: Package Import Robot
  • Author(s): Enrico Tassi
  • Date: 2015-08-14 21:07:46 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20150814210746-w1i1de8zufeiimxp
Tags: 0.9.0-1
* remove pre-depend on multiarch-support
* new upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
return function(parent, dir)
2
2
 
3
3
local lgi = require 'lgi'
 
4
local GLib = lgi.GLib
4
5
local Gtk = lgi.Gtk
5
6
 
6
7
local window = Gtk.Window {
53
54
   window.child[id]:get_content_area():add(
54
55
      Gtk.Label {
55
56
         label = ("This is an info bar with "
56
 
                  .. "message type Gtk.MessageType.%s"):format(id:upper()),
 
57
                  .. "message type Gtk.MessageType.%s"):format(
 
58
            GLib.ascii_strup(id, -1)),
57
59
      })
58
60
end
59
61