Test.GtkWriter.vala.c
[app.Builder.js] / Builder4 / StandardErrorDialog.vala
1 /* -- to compile
2 valac  --pkg gio-2.0  --pkg posix  --pkg gtk+-3.0 --pkg libnotify --pkg gtksourceview-3.0  --pkg  libwnck-3.0 \
3     /tmp/StandardErrorDialog.vala  -o /tmp/StandardErrorDialog
4 */
5
6
7 /* -- to test class
8 static int main (string[] args) {
9     Gtk.init (ref args);
10     new Xcls_StandardErrorDialog();
11     StandardErrorDialog.show_all();
12      Gtk.main ();
13     return 0;
14 }
15 */
16
17
18 public static Xcls_StandardErrorDialog  StandardErrorDialog;
19
20 public class Xcls_StandardErrorDialog
21 {
22     public Gtk.MessageDialog el;
23     private static Xcls_StandardErrorDialog  _this;
24
25
26         // my vars
27
28         // ctor 
29     public Xcls_StandardErrorDialog()
30     {
31         this.el = new Gtk.MessageDialog( null, Gtk.DialogFlags.MODAL, Gtk.MessageType.ERROR, Gtk.ButtonsType.OK, "fixme" );
32         _this = this;
33         StandardErrorDialog = this;
34
35         // my vars
36
37         // set gobject values
38         this.el.modal = true;
39         this.el.use_markup = true;
40
41         // listeners 
42         this.el.delete_event.connect(   (self, event)  => {
43             this.el.hide();
44             return true;
45         } 
46          );
47         this.el.response.connect(   (self, response_id) => {
48            this.el.hide();
49         } );
50     }
51
52     // userdefined functions 
53
54     // skip listeners - not pipe 
55
56     // skip text - already used 
57
58     // skip xtype - not pipe 
59
60     // skip |buttons - already used 
61
62     // skip |message_type - already used 
63
64     // skip |modal - already used 
65
66     // skip |use_markup - already used 
67     public void show (string msg) {
68         
69             this.el.text =  msg;
70             this.el.show_all();
71         }
72     public void show_all () {
73             this.show("TEST");
74         }
75
76     // skip |xns - no return type
77
78     // skip id - not pipe 
79
80     // skip xvala_cls - not pipe 
81
82     // skip xvala_xcls - not pipe 
83
84     // skip xvala_id - not pipe 
85 }