Mercurial > repos > IBBoard.WarFoundry.GUI.GTK
annotate FrmAbout.cs @ 93:e40d892a2298
Fixes #308: Make GTK# UI translatable
* Move all remaining buttons to translatable buttons
* Make the About dialog translatable (where appropriate)
* Move to UTF-8 encoding in the XML to correctly handle copyright symbol
* Switch About dialog to using Close button as per other apps
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Fri, 31 Dec 2010 13:53:18 +0000 |
parents | 9c9af2ce8c43 |
children | 26e4525b49cf |
rev | line source |
---|---|
77 | 1 // This file (FrmAbout.cs) is a part of the IBBoard.WarFoundry.GUI.GTK project and is copyright 2010 IBBoard |
2 // | |
3 // The file and the library/program it is in are licensed and distributed, without warranty, under the GNU Affero GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license. | |
4 | |
5 using System; | |
6 using Gtk; | |
80
9c9af2ce8c43
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
7 using IBBoard.GtkSharp.Translatable; |
77 | 8 |
9 namespace IBBoard.WarFoundry.GUI.GTK | |
10 { | |
80
9c9af2ce8c43
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
11 public partial class FrmAbout : TranslatableDialog |
77 | 12 { |
13 private static FrmAbout frm; | |
14 | |
15 public static FrmAbout GetForm() | |
16 { | |
17 if (frm == null) | |
18 { | |
19 frm = new FrmAbout(); | |
20 } | |
21 | |
22 return frm; | |
23 } | |
24 | |
25 private FrmAbout() | |
26 { | |
27 this.Build(); | |
93
e40d892a2298
Fixes #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
80
diff
changeset
|
28 Translate(); |
77 | 29 } |
30 | |
93
e40d892a2298
Fixes #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
80
diff
changeset
|
31 protected virtual void CloseClicked(object sender, System.EventArgs e) |
77 | 32 { |
93
e40d892a2298
Fixes #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
80
diff
changeset
|
33 Respond(ResponseType.Close); |
77 | 34 } |
35 } | |
36 } | |
37 |