public Xcls_dbcellrenderer dbcellrenderer;
public Xcls_dbmodel dbmodel;
public Xcls_name name;
+ public Xcls_createbtn createbtn;
public Xcls_btn_not_me btn_not_me;
public Xcls_btn_closed btn_closed;
public Xcls_scrolled_window scrolled_window;
public Xcls_view view;
+ public Xcls_Label23 Label23;
// my vars (def)
public GitRepo? repo;
// my vars (dec)
this.repo = null;
- this.running = true;
+ this.running = false;
this.queue = null;
// set gobject values
var child_0 = new Xcls_Box2( _this );
child_0.ref();
this.el.get_content_area().add ( child_0.el );
+ var child_1 = new Xcls_Notebook22( _this );
+ child_1.ref();
+ this.el.add ( child_1.el );
//listeners
this.el.delete_event.connect( (self, event) => {
GLib.debug("got %d", (int) response_id);
-
-
-
+
// have they selected a ticket..
// -- each repo would have their active ticket (only one per repo)
// -- so we could just store that in there
// -- initial load can check the contents of the ticket files on first scan.
- var ticket_id = _this.ticketsel.selectedTicketId();
-
- if (ticket_id == "") {
- _this.ticketsel.el.get_child().get_style_context().add_class("warning");
- return;
- }
-
-
+
+
if (response_id < 1) {
_this.el.hide();
this.running = false;
return;
}
+ var ticket_id = _this.ticketsel.selectedTicketId();
if (this.repo != null) {
var bn = _this.name.el.get_text();
}
}
-
+
this.running = false;
_this.prmodel.loadProjects(curproj == null ? "" : curproj.id);
_this.dbmodel.loadTickets(curproj == null ? "": curproj.id, tid);
+ _this.createbtn.updateState();
+
_this.ticketsel.el.get_child().get_style_context().remove_class("warning");
if (tid != "") {
var name = RooTicket.singleton().usernameLocal();
var child_6 = new Xcls_name( _this );
child_6.ref();
this.el.attach_defaults ( child_6.el , 0,4,4,5 );
- var child_7 = new Xcls_Button15( _this );
+ var child_7 = new Xcls_createbtn( _this );
child_7.ref();
this.el.attach_defaults ( child_7.el , 4,5,4,5 );
var child_8 = new Xcls_Box16( _this );
_this.view.loadTicket("");
this.el.get_child().get_style_context().add_class("warning");
-
+ _this.createbtn.updateState();
return;
}
_this.scrolled_window.el.show();
_this.view.loadTicket(ticket.id);
+ _this.createbtn.updateState();
+
//GLib.debug (//"Selection: %s, %s\n", (string) val1, (string) val2);
});
}
// user defined functions
}
- public class Xcls_Button15 : Object
+ public class Xcls_createbtn : Object
{
public Gtk.Button el;
private NewBranch _this;
// my vars (def)
// ctor
- public Xcls_Button15(NewBranch _owner )
+ public Xcls_createbtn(NewBranch _owner )
{
_this = _owner;
+ _this.createbtn = this;
this.el = new Gtk.Button();
// my vars (dec)
//listeners
this.el.clicked.connect( () => {
+
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);
});
}
// 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);
+
+ }
}
public class Xcls_Box16 : Object
+ public class Xcls_Notebook22 : Object
+ {
+ public Gtk.Notebook el;
+ private NewBranch _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_Notebook22(NewBranch _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.Notebook();
+
+ // my vars (dec)
+
+ // set gobject values
+ this.el.vexpand = true;
+ var child_0 = new Xcls_Label23( _this );
+ child_0.ref();
+ }
+
+ // user defined functions
+ }
+ public class Xcls_Label23 : Object
+ {
+ public Gtk.Label el;
+ private NewBranch _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_Label23(NewBranch _owner )
+ {
+ _this = _owner;
+ _this.Label23 = this;
+ this.el = new Gtk.Label( null );
+
+ // my vars (dec)
+
+ // set gobject values
+ }
+
+ // user defined functions
+ }
+
+
}