Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
diff gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmPreferences.cs @ 96:b4416ca69153
Fixes #309: Add initial preference dialog with language support
* Hook up events so that everything translates itself when languages change
Re #308: Make GTK# UI translatable
* Update English and French translations (using Google Translate)
* Begin to standardise on WinForms names for widgets for maximum reusability of translation files
* Make some preference and credit buttons translatable
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 02 Jan 2011 15:12:31 +0000 |
parents | ea4069bbe6e9 |
children | 135491fd1830 |
line wrap: on
line diff
--- a/gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmPreferences.cs Sat Jan 01 20:55:07 2011 +0000 +++ b/gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmPreferences.cs Sun Jan 02 15:12:31 2011 +0000 @@ -13,15 +13,18 @@ private global::Gtk.ComboBox languageList; private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblLanguage; private global::Gtk.Label frameLabel; - private global::Gtk.Button bttnCancel; - private global::Gtk.Button bttnOkay; + private global::IBBoard.GtkSharp.Translatable.TranslatableButton bttnCancel; + private global::IBBoard.GtkSharp.Translatable.TranslatableButton bttnOkay; protected virtual void Build() { global::Stetic.Gui.Initialize(this); // Widget IBBoard.WarFoundry.GUI.GTK.FrmPreferences this.Name = "IBBoard.WarFoundry.GUI.GTK.FrmPreferences"; + this.TypeHint = ((global::Gdk.WindowTypeHint)(1)); this.WindowPosition = ((global::Gtk.WindowPosition)(4)); + this.SkipPagerHint = true; + this.SkipTaskbarHint = true; // Internal child IBBoard.WarFoundry.GUI.GTK.FrmPreferences.VBox global::Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; @@ -93,7 +96,7 @@ w10.BorderWidth = ((uint)(5)); w10.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild - this.bttnCancel = new global::Gtk.Button(); + this.bttnCancel = new global::IBBoard.GtkSharp.Translatable.TranslatableButton(); this.bttnCancel.CanDefault = true; this.bttnCancel.CanFocus = true; this.bttnCancel.Name = "bttnCancel"; @@ -105,7 +108,7 @@ w11.Expand = false; w11.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild - this.bttnOkay = new global::Gtk.Button(); + this.bttnOkay = new global::IBBoard.GtkSharp.Translatable.TranslatableButton(); this.bttnOkay.CanDefault = true; this.bttnOkay.CanFocus = true; this.bttnOkay.Name = "bttnOkay";