~kokoto-java/kazam/depencie-and-stuff

« back to all changes in this revision

Viewing changes to src/dialogs.gs

  • Committer: rugby471 at gmail
  • Date: 2010-07-04 18:04:43 UTC
  • Revision ID: rugby471@gmail.com-20100704180443-aq2ljnkc6t1s7s7m
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
[indent=4]
 
2
 
 
3
uses
 
4
    Gtk
 
5
    
 
6
def new_error_dialog(primary:string, secondary:string) : int
 
7
    var dialog = new MessageDialog(null, 0, MessageType.ERROR, ButtonsType.OK, primary)
 
8
    dialog.format_secondary_text(secondary)
 
9
    var result = dialog.run()
 
10
    Gtk.main_quit()
 
11
    return result