eventlog linux: position on right side of screen

This commit is contained in:
Hylke Bons 2012-05-20 18:44:41 +01:00
parent 9a7e1eaee1
commit 730d0d11c1

View file

@ -53,8 +53,10 @@ namespace SparkleShare {
{
SetSizeRequest (480, 640);
// TODO: right side of screen like on Mac
SetPosition (WindowPosition.Center);
int x = (int) (Gdk.Screen.Default.Width * 0.61);
int y = (int) (Gdk.Screen.Default.Height * 0.5 - (HeightRequest * 0.5));
Move (x, y);
Resizable = true;
BorderWidth = 0;