[smuxi: 176/179] Frontend-GNOME: center preference dialog
- From: Mirco M. M. Bauer <mmmbauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [smuxi: 176/179] Frontend-GNOME: center preference dialog
- Date: Sat, 4 Nov 2017 05:51:59 +0000 (UTC)
commit 83583810607475de2825efe81cb9292ad8e0e96c
Author: Mirco Bauer <meebey meebey net>
Date: Sat Oct 7 15:02:34 2017 +0800
Frontend-GNOME: center preference dialog
The preference dialog was showing up in the top left corner instead of centered.
By setting the TransientFor property of the preference dialog it will
automatically center the newly created window.
src/Frontend-GNOME/Views/PreferencesDialog.cs | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/Frontend-GNOME/Views/PreferencesDialog.cs b/src/Frontend-GNOME/Views/PreferencesDialog.cs
index b171882..98e93a9 100644
--- a/src/Frontend-GNOME/Views/PreferencesDialog.cs
+++ b/src/Frontend-GNOME/Views/PreferencesDialog.cs
@@ -134,6 +134,7 @@ namespace Smuxi.Frontend.Gnome
}
Parent = parent;
+ TransientFor = parent;
Builder = builder;
Builder.Autoconnect(this);
f_CategoryNotebook.ShowTabs = false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]