gnome-subtitles r995 - trunk/src/GnomeSubtitles/Core



Author: pcastro
Date: Sat Jun  7 23:26:44 2008
New Revision: 995
URL: http://svn.gnome.org/viewvc/gnome-subtitles?rev=995&view=rev

Log:
Revert to using Tooltips until gtk# 2.12 is available in all major distributions (use SVN Revision 968 which already has the needed changes to remove Tooltips).
Do not need to unset the styles because they aren't set in glade anymore.

Modified:
   trunk/src/GnomeSubtitles/Core/Menus.cs

Modified: trunk/src/GnomeSubtitles/Core/Menus.cs
==============================================================================
--- trunk/src/GnomeSubtitles/Core/Menus.cs	(original)
+++ trunk/src/GnomeSubtitles/Core/Menus.cs	Sat Jun  7 23:26:44 2008
@@ -26,6 +26,7 @@
 namespace GnomeSubtitles {
 
 public class Menus {
+	private Tooltips tooltips = new Tooltips(); //TODO Deprecated class, scheduled for substitution when gtk# 2.12 is available in all major distros (use SVN revision 968)
 
 	/* Constant strings */
 	private string videoTagText = Catalog.GetString("Video");
@@ -33,8 +34,8 @@
 	/* Public methods */
 
 	public Menus () {
-		(Global.GetWidget(WidgetNames.Toolbar) as Toolbar).UnsetStyle(); //Unset toolbar style that was set in Glade
-		SetToolbarHomogeneity();
+		SetToolbarHomogeneity(); //TODO needed until homogeneity definition in glade starts working
+		tooltips.Enable();
 	}
 	
 	public void BlankStartUp () {
@@ -536,12 +537,12 @@
     		ClearTooltip(redoButton);
     }
     
-    private void SetTooltip (Widget widget, string text) {
-    	widget.TooltipText = text;
+    private void SetTooltip (ToolButton toolButton, string text) {
+    	toolButton.SetTooltip(tooltips, text, null);
     }
     
-    private void ClearTooltip (Widget widget) {
-    	SetTooltip(widget, null);
+    private void ClearTooltip (ToolButton toolButton) {
+    	SetTooltip(toolButton, null);
     }
 
 }



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