linux eventlog: Always open event log in the same place

This commit is contained in:
Hylke Bons 2013-10-11 11:36:19 +02:00
parent 8f2f356ea4
commit 110a53f3bb

View file

@ -37,6 +37,8 @@ namespace SparkleShare {
private Spinner spinner;
private WebView web_view;
private int pos_x, pos_y;
public SparkleEventLog () : base ("Recent Changes")
{
@ -44,11 +46,9 @@ namespace SparkleShare {
SetSizeRequest (480, (int) (monitor_0_rect.Height * 0.8));
IconName = "folder-sparkleshare";
int x = (int) (monitor_0_rect.Width * 0.61);
int y = (int) (monitor_0_rect.Height * 0.5 - (HeightRequest * 0.5));
this.pos_x = (int) (monitor_0_rect.Width * 0.61);
this.pos_y = (int) (monitor_0_rect.Height * 0.5 - (HeightRequest * 0.5));
Move (x, y);
this.size_label = new Label () { Xalign = 0, Markup = "<b>Size:</b> …" };
this.history_label = new Label () { Xalign = 0, Markup = "<b>History:</b> …" };
@ -99,6 +99,7 @@ namespace SparkleShare {
Controller.ShowWindowEvent += delegate {
Application.Invoke (delegate {
Move (this.pos_x, this.pos_y);
ShowAll ();
Present ();
});