projects
/
gitlive
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
NewBranch.bjs
[gitlive]
/
NewBranch.vala
diff --git
a/NewBranch.vala
b/NewBranch.vala
index
9f4ac04
..
af3cdd5
100644
(file)
--- a/
NewBranch.vala
+++ b/
NewBranch.vala
@@
-12,6
+12,7
@@
public class NewBranch : Object
}
return _NewBranch;
}
}
return _NewBranch;
}
+ public Xcls_notebook notebook;
public Xcls_label_select_ticket label_select_ticket;
public Xcls_label_create_ticket label_create_ticket;
public Xcls_label_quick_commit label_quick_commit;
public Xcls_label_select_ticket label_select_ticket;
public Xcls_label_create_ticket label_create_ticket;
public Xcls_label_quick_commit label_quick_commit;
@@
-73,7
+74,7
@@
public class NewBranch : Object
this.el.default_width = 500;
this.el.deletable = true;
this.el.modal = true;
this.el.default_width = 500;
this.el.deletable = true;
this.el.modal = true;
- var child_0 = new Xcls_
Notebook2
( _this );
+ var child_0 = new Xcls_
notebook
( _this );
child_0.ref();
this.el.get_content_area().add ( child_0.el );
child_0.ref();
this.el.get_content_area().add ( child_0.el );
@@
-172,7
+173,7
@@
public class NewBranch : Object
this.el.run();
}
this.el.run();
}
- public class Xcls_
Notebook2
: Object
+ public class Xcls_
notebook
: Object
{
public Gtk.Notebook el;
private NewBranch _this;
{
public Gtk.Notebook el;
private NewBranch _this;
@@
-181,9
+182,10
@@
public class NewBranch : Object
// my vars (def)
// ctor
// my vars (def)
// ctor
- public Xcls_
Notebook2
(NewBranch _owner )
+ public Xcls_
notebook
(NewBranch _owner )
{
_this = _owner;
{
_this = _owner;
+ _this.notebook = this;
this.el = new Gtk.Notebook();
// my vars (dec)
this.el = new Gtk.Notebook();
// my vars (dec)
@@
-2308,7
+2310,7
@@
public class NewBranch : Object
public Xcls_Table53(NewBranch _owner )
{
_this = _owner;
public Xcls_Table53(NewBranch _owner )
{
_this = _owner;
- this.el = new Gtk.Table(
2
, 5, true );
+ this.el = new Gtk.Table(
3
, 5, true );
// my vars (dec)
// my vars (dec)
@@
-2325,7
+2327,7
@@
public class NewBranch : Object
this.el.attach_defaults ( child_1.el , 0,4,1,2 );
var child_2 = new Xcls_createbtn( _this );
child_2.ref();
this.el.attach_defaults ( child_1.el , 0,4,1,2 );
var child_2 = new Xcls_createbtn( _this );
child_2.ref();
- this.el.attach_defaults ( child_2.el ,
4,5,1,2
);
+ this.el.attach_defaults ( child_2.el ,
1,5,2,3
);
}
// user defined functions
}
// user defined functions
@@
-2410,30
+2412,13
@@
public class NewBranch : Object
GLib.debug("fire response = 1");
GLib.debug("fire response = 1");
- var ticket_id = _this.ticketsel.selectedTicketId();
-
- if (ticket_id == "") {
- _this.ticketsel.el.get_child().get_style_context().add_class("warning");
- return;
- }
- _this.el.response(1);
+
+ _this.el.response(3);
});
}
// user defined functions
});
}
// user defined functions
- public void updateState () {
-
- var ticket_id = _this.ticketsel.selectedTicketId();
-
- if (ticket_id == "") {
- this.el.set_sensitive(false);
- return;
- }
-
- this.el.set_sensitive(true);
-
- }
}
}