~ubuntu-branches/ubuntu/natty/lua-gtk/natty

« back to all changes in this revision

Viewing changes to examples/window.lua

  • Committer: Bazaar Package Importer
  • Author(s): Enrico Tassi
  • Date: 2009-05-17 18:16:21 UTC
  • mfrom: (1.2.1 upstream) (4.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20090517181621-9kmdd82nxg54jsio
* new upstream snapshot comprising many more GNOME libraries:
    Gtk, GDK, GLib, Pango, Atk, Libxml2, Cairo, Clutter, Gtkhtml, 
    GtkSourceView, Gio, Gtkspell and GConf. 
* new upstream release includes a new configure script written in Lua,
  no more bashisms there (Closes: #507205)
* renamed binary packages to liblua5.1-gnome-*
* updated standards-version to 3.8.1, no changes needed
* patch to load .so.* version of libraries and not .so (that was requiring
  -dev packages) (Closes: #522087)
* removed redundant Architecture line from the source stanza of control
  (Closes: #498120)
* updated copyright file, Wolfgang Oertl holds it for 2009 too.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
-- The simplest possible Lua-Gtk application.
4
4
 
5
5
require "gtk"
 
6
require "glib"
6
7
 
7
 
win = gtk.window_new(gtk.GTK_WINDOW_TOPLEVEL)
8
 
win:connect('destroy', function() gtk.main_quit() end)
 
8
win = gtk.window_new(gtk.WINDOW_TOPLEVEL)
 
9
t = getmetatable(win)
 
10
win:connect('destroy', gtk.main_quit)
9
11
win:set_title("Demo Program")
10
12
win:show()
11
13
gtk.main()