[longomatch] Recenter main window in OS X
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Recenter main window in OS X
- Date: Tue, 28 Oct 2014 09:48:14 +0000 (UTC)
commit ab52d8dda31a9d3179e02043d4795b61d11c035a
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Thu Oct 16 14:45:37 2014 +0200
Recenter main window in OS X
LongoMatch.GUI/Gui/MainWindow.cs | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/MainWindow.cs b/LongoMatch.GUI/Gui/MainWindow.cs
index a8c9262..bb1fcf8 100644
--- a/LongoMatch.GUI/Gui/MainWindow.cs
+++ b/LongoMatch.GUI/Gui/MainWindow.cs
@@ -74,7 +74,10 @@ namespace LongoMatch.Gui
// Monitor size
Rectangle monitor_geometry = screen.GetMonitorGeometry (monitor);
// Resize to a convenient size
- this.Resize(monitor_geometry.Width * 80 / 100, monitor_geometry.Height * 80 / 100);
+ this.Resize (monitor_geometry.Width * 80 / 100, monitor_geometry.Height * 80 / 100);
+#if OSTYPE_OS_X
+ this.Move (monitor_geometry.Width * 10 / 100, monitor_geometry.Height * 10 / 100);
+#endif
}
#endregion
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]