[gbrainy] Get rid off obsolte GTK API calls



commit 93aa63b30d383e002ef17d990d2432c8c1c07b1d
Author: Jordi Mas <jmas softcatala org>
Date:   Thu Jan 7 22:23:25 2010 +0100

    Get rid off obsolte GTK API calls

 src/Clients/Classical/Dialogs/AboutDialog.cs |    2 +-
 src/Clients/Classical/gbrainy.cs             |   17 ++++++++---------
 2 files changed, 9 insertions(+), 10 deletions(-)
---
diff --git a/src/Clients/Classical/Dialogs/AboutDialog.cs b/src/Clients/Classical/Dialogs/AboutDialog.cs
index 7daaddb..c08d7ac 100644
--- a/src/Clients/Classical/Dialogs/AboutDialog.cs
+++ b/src/Clients/Classical/Dialogs/AboutDialog.cs
@@ -53,7 +53,7 @@ namespace gbrainy.Clients.Classical
 			license.Append (Catalog.GetString ("This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.\n\n"));
 			license.Append (Catalog.GetString ("You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA."));
 
-			Name = "gbrainy";
+			ProgramName = "gbrainy";
 			Version = Defines.VERSION;
 			Authors = authors;
 			Documenters = null;
diff --git a/src/Clients/Classical/gbrainy.cs b/src/Clients/Classical/gbrainy.cs
index 4229fe7..c0a16ff 100644
--- a/src/Clients/Classical/gbrainy.cs
+++ b/src/Clients/Classical/gbrainy.cs
@@ -249,46 +249,45 @@ namespace gbrainy.Clients.Classical
 
 			toolbar.IconSize = Gtk.IconSize.Dnd;
 			toolbar.ShowArrow = false;
-	
-			Tooltips tooltips = new Tooltips ();
+
 			all_tbbutton = new ToolButton ("allgames");
-			all_tbbutton.SetTooltip (tooltips, Catalog.GetString ("Play all the games"), null);
+			all_tbbutton.TooltipText = Catalog.GetString ("Play all the games");
 			all_tbbutton.Label = Catalog.GetString ("All");
 			all_tbbutton.Clicked += OnAllGames;
 			toolbar.Insert (all_tbbutton, -1);
 
 			logic_tbbutton = new ToolButton ("logic-games");
-			logic_tbbutton.SetTooltip (tooltips, Catalog.GetString ("Play games that challenge your reasoning and thinking"), null);
+			logic_tbbutton.TooltipText = Catalog.GetString ("Play games that challenge your reasoning and thinking");
 			logic_tbbutton.Label = Catalog.GetString ("Logic");
 			logic_tbbutton.Clicked += OnLogicOnly;
 			toolbar.Insert (logic_tbbutton, -1);
 
 			calculation_tbbutton = new ToolButton ("math-games");
 			calculation_tbbutton.Label = Catalog.GetString ("Calculation");
-			calculation_tbbutton.SetTooltip (tooltips, Catalog.GetString ("Play games that challenge your mental calculation skills"), null);
+			calculation_tbbutton.TooltipText = Catalog.GetString ("Play games that challenge your mental calculation skills");
 			calculation_tbbutton.Clicked += OnMathOnly;
 			toolbar.Insert (calculation_tbbutton, -1);
 
 			memory_tbbutton = new ToolButton ("memory-games");
 			memory_tbbutton.Label = Catalog.GetString ("Memory");
-			memory_tbbutton.SetTooltip (tooltips, Catalog.GetString ("Play games that challenge your short term memory"), null);
+			memory_tbbutton.TooltipText = Catalog.GetString ("Play games that challenge your short term memory");
 			memory_tbbutton.Clicked += OnMemoryOnly;
 			toolbar.Insert (memory_tbbutton, -1);
 
 			verbal_tbbutton = new ToolButton ("verbal-games");
 			verbal_tbbutton.Label = Catalog.GetString ("Verbal");
-			verbal_tbbutton.SetTooltip (tooltips, Catalog.GetString ("Play games that challenge your verbal aptitude"), null);
+			verbal_tbbutton.TooltipText = Catalog.GetString ("Play games that challenge your verbal aptitude");
 			verbal_tbbutton.Clicked += OnVerbalOnly;
 			toolbar.Insert (verbal_tbbutton, -1);
 
 			pause_tbbutton = new ToolButton ("pause");
 			pause_tbbutton.Label = Catalog.GetString ("Pause");
-			pause_tbbutton.SetTooltip (tooltips, Catalog.GetString ("Pause or resume the game"), null);
+			pause_tbbutton.TooltipText = Catalog.GetString ("Pause or resume the game");
 			pause_tbbutton.Clicked += OnPauseGame;
 			toolbar.Insert (pause_tbbutton, -1);
 
 			finish_tbbutton = new ToolButton ("endgame");
-			finish_tbbutton.SetTooltip (tooltips, Catalog.GetString ("End the game and show score"), null);
+			finish_tbbutton.TooltipText = Catalog.GetString ("End the game and show score");
 			finish_tbbutton.Label = Catalog.GetString ("Finish");
 			finish_tbbutton.Clicked += OnEndGame;
 			toolbar.Insert (finish_tbbutton, -1);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]