projects
/
gitlive
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clones.bjs
[gitlive]
/
Clones.vala
diff --git
a/Clones.vala
b/Clones.vala
index
8b0da79
..
0c0f9b2
100644
(file)
--- a/
Clones.vala
+++ b/
Clones.vala
@@
-12,6
+12,9
@@
public class Clones : Object
}
return _Clones;
}
}
return _Clones;
}
+ public Xcls_spinner spinner;
+ public Xcls_toolbar toolbar;
+ public Xcls_scrolled scrolled;
public Xcls_reposView reposView;
public Xcls_reposStore reposStore;
public Xcls_tv_autocommit tv_autocommit;
public Xcls_reposView reposView;
public Xcls_reposStore reposStore;
public Xcls_tv_autocommit tv_autocommit;
@@
-66,9
+69,29
@@
public class Clones : Object
}
// user defined functions
}
// user defined functions
+ public void loadAndShow () {
+
+ _this.el.show_all();
+
+ _this.toolbar.el.hide();
+ _this.scrolled.el.hide();
+ _this.spinner.el.show();
+ _this.spinner.el.start();
+
+ GitRepo.updateAll("show_clones");
+
+
+
+ }
public void show () {
public void show () {
-
+
+ _this.spinner.el.stop();
+ _this.spinner.el.hide();
+ _this.toolbar.el.show();
+ _this.scrolled.el.show();
+
+ GLib.debug("show clones?");
this.el.set_deletable(true);
this.el.set_gravity(Gdk.Gravity.NORTH);
this.el.move((Gdk.Screen.width() / 2 ) -400 ,0);
this.el.set_deletable(true);
this.el.set_gravity(Gdk.Gravity.NORTH);
this.el.move((Gdk.Screen.width() / 2 ) -400 ,0);
@@
-81,6
+104,7
@@
public class Clones : Object
this.el.show_all();
_this.reposStore.load();
this.el.set_keep_above(true);
this.el.show_all();
_this.reposStore.load();
this.el.set_keep_above(true);
+ GLib.debug("show clones = run?");
this.el.run();
// load clones..
// this.get('/reposStore').load();
this.el.run();
// load clones..
// this.get('/reposStore').load();
@@
-115,17
+139,43
@@
public class Clones : Object
// my vars (dec)
// set gobject values
// my vars (dec)
// set gobject values
- var child_0 = new Xcls_
Box3
( _this );
+ var child_0 = new Xcls_
spinner
( _this );
child_0.ref();
this.el.pack_start ( child_0.el , false,false,0 );
child_0.ref();
this.el.pack_start ( child_0.el , false,false,0 );
- var child_1 = new Xcls_
ScrolledWindow5
( _this );
+ var child_1 = new Xcls_
toolbar
( _this );
child_1.ref();
child_1.ref();
- this.el.pack_end ( child_1.el , true,true,0 );
+ this.el.pack_start ( child_1.el , false,false,0 );
+ var child_2 = new Xcls_scrolled( _this );
+ child_2.ref();
+ this.el.pack_end ( child_2.el , true,true,0 );
}
// user defined functions
}
}
// user defined functions
}
- public class Xcls_Box3 : Object
+ public class Xcls_spinner : Object
+ {
+ public Gtk.Spinner el;
+ private Clones _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_spinner(Clones _owner )
+ {
+ _this = _owner;
+ _this.spinner = this;
+ this.el = new Gtk.Spinner();
+
+ // my vars (dec)
+
+ // set gobject values
+ }
+
+ // user defined functions
+ }
+
+ public class Xcls_toolbar : Object
{
public Gtk.Box el;
private Clones _this;
{
public Gtk.Box el;
private Clones _this;
@@
-134,23
+184,24
@@
public class Clones : Object
// my vars (def)
// ctor
// my vars (def)
// ctor
- public Xcls_
Box3
(Clones _owner )
+ public Xcls_
toolbar
(Clones _owner )
{
_this = _owner;
{
_this = _owner;
+ _this.toolbar = this;
this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
// my vars (dec)
// set gobject values
this.el.homogeneous = true;
this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
// my vars (dec)
// set gobject values
this.el.homogeneous = true;
- var child_0 = new Xcls_Button
4
( _this );
+ var child_0 = new Xcls_Button
5
( _this );
child_0.ref();
this.el.add ( child_0.el );
}
// user defined functions
}
child_0.ref();
this.el.add ( child_0.el );
}
// user defined functions
}
- public class Xcls_Button
4
: Object
+ public class Xcls_Button
5
: Object
{
public Gtk.Button el;
private Clones _this;
{
public Gtk.Button el;
private Clones _this;
@@
-159,7
+210,7
@@
public class Clones : Object
// my vars (def)
// ctor
// my vars (def)
// ctor
- public Xcls_Button
4
(Clones _owner )
+ public Xcls_Button
5
(Clones _owner )
{
_this = _owner;
this.el = new Gtk.Button();
{
_this = _owner;
this.el = new Gtk.Button();
@@
-188,7
+239,7
@@
public class Clones : Object
}
}
- public class Xcls_
ScrolledWindow5
: Object
+ public class Xcls_
scrolled
: Object
{
public Gtk.ScrolledWindow el;
private Clones _this;
{
public Gtk.ScrolledWindow el;
private Clones _this;
@@
-197,9
+248,10
@@
public class Clones : Object
// my vars (def)
// ctor
// my vars (def)
// ctor
- public Xcls_
ScrolledWindow5
(Clones _owner )
+ public Xcls_
scrolled
(Clones _owner )
{
_this = _owner;
{
_this = _owner;
+ _this.scrolled = this;
this.el = new Gtk.ScrolledWindow( null, null );
// my vars (dec)
this.el = new Gtk.ScrolledWindow( null, null );
// my vars (dec)