# HG changeset patch # User IBBoard # Date 1349636320 -3600 # Node ID f04e973e5ea0ccaa17135ae1df10a6f59fd784b4 # Parent 122a93b48f3dd0bf6f3b1dfc33939d65ade6b279 * Drop back to old Tooltips to support GTK# before 2.12 * Make sure we're not 2.12 specific to allow building on the server (running 2.10) diff -r 122a93b48f3d -r f04e973e5ea0 IBBoard.GtkSharp.csproj --- a/IBBoard.GtkSharp.csproj Sun Nov 27 13:51:27 2011 +0000 +++ b/IBBoard.GtkSharp.csproj Sun Oct 07 19:58:40 2012 +0100 @@ -12,22 +12,22 @@ v2.0 - true + True full - false + False bin\Debug DEBUG prompt 4 - false + False none - false + False bin\Release prompt 4 - false + False @@ -53,12 +53,22 @@ - - - + + False + False + + + False + False + + + False + False + False + False diff -r 122a93b48f3d -r f04e973e5ea0 Translatable/ControlTranslator.cs --- a/Translatable/ControlTranslator.cs Sun Nov 27 13:51:27 2011 +0000 +++ b/Translatable/ControlTranslator.cs Sun Oct 07 19:58:40 2012 +0100 @@ -13,6 +13,9 @@ /// public class ControlTranslator { + //Tooltips is now obselete, but we need it to support GTK# pre-2.12 + private static Tooltips tooltips = new Tooltips(); + public static void TranslateWidget(Widget toTranslate) { TranslateWidget(toTranslate, true); @@ -42,11 +45,11 @@ if (translation == "") { - widget.TooltipText = translation; + tooltips.SetTip(widget, translation, null); } else if (action != null) { - widget.TooltipText = action.Label; + tooltips.SetTip(widget, action.Label, null); } }