projects
/
gitlive
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Partial Fix #5639 - gitlive - general tidy ups
[gitlive]
/
Clones.vala
diff --git
a/Clones.vala
b/Clones.vala
index
b152f76
..
123d5ae
100644
(file)
--- a/
Clones.vala
+++ b/
Clones.vala
@@
-70,47
+70,47
@@
public class Clones : Object
// user defined functions
public void loadAndShow () {
// 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");
this.el.set_deletable(true);
this.el.set_gravity(Gdk.Gravity.NORTH);
this.el.set_deletable(true);
this.el.set_gravity(Gdk.Gravity.NORTH);
- this.el.move((Gdk.Screen.width() / 2 ) -
400
,0);
+ this.el.move((Gdk.Screen.width() / 2 ) -
(int.min(1280,Gdk.Screen.width()) / 2)
,0);
this.el.set_keep_above(true);
this.el.set_default_size(
this.el.set_keep_above(true);
this.el.set_default_size(
- int.min(1
024
,Gdk.Screen.width()),
- int.max(500,Gdk.Screen.height() -
3
00)
+ int.min(1
280
,Gdk.Screen.width()),
+ int.max(500,Gdk.Screen.height() -
2
00)
);
);
+ 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.el.show_all();
- _this.spinner.el.stop();
- _this.spinner.el.hide();
- _this.toolbar.el.show();
- _this.scrolled.el.show();
-
- this.el.set_deletable(true);
+ this.el.set_deletable(true);
this.el.set_gravity(Gdk.Gravity.NORTH);
this.el.set_gravity(Gdk.Gravity.NORTH);
- this.el.move((Gdk.Screen.width() / 2 ) -
400
,0);
+ this.el.move((Gdk.Screen.width() / 2 ) -
(int.max(1280,Gdk.Screen.width()) / 2)
,0);
this.el.set_keep_above(true);
this.el.set_keep_above(true);
-
this.el.set_default_size(
- int.m
in(1024
,Gdk.Screen.width()),
- int.max(500,Gdk.Screen.height() -
3
00)
+ this.el.set_default_size(
+ int.m
ax(1280
,Gdk.Screen.width()),
+ int.max(500,Gdk.Screen.height() -
1
00)
);
);
+ this.el.show_all();
+ this.spinner.el.stop();
+ this.spinner.el.hide();
+ this.toolbar.el.show();
+ this.scrolled.el.show();
+
+
-
_
this.reposStore.load();
+ this.reposStore.load();
GLib.debug("show clones = run?");
this.el.run();
GLib.debug("show clones = run?");
this.el.run();
@@
-349,7
+349,7
@@
public class Clones : Object
//listeners
this.el.row_activated.connect( (path, col) => {
//listeners
this.el.row_activated.connect( (path, col) => {
- if (col.title
!= "Current
Branch") {
+ if (col.title
== "Auto Commit" || col.title == "Auto Push" || col.title == "Auto
Branch") {
return;
}
return;
}