Revision
70
Author
emsmith
Date
2006-12-12 09:37:57 -0800 (Tue, 12 Dec 2006)

Log Message

flags are set royally weird on things - menuitems and buttons have windows!!

Modified Paths

Diff

Modified: desktop/trunk/lib/tooltips.class.php (69 => 70)


--- desktop/trunk/lib/tooltips.class.php	2006-12-12 17:28:02 UTC (rev 69)
+++ desktop/trunk/lib/tooltips.class.php	2006-12-12 17:37:57 UTC (rev 70)
@@ -89,9 +89,11 @@
 		}
 		else
 		{
-			// flags for menu items must be set incorrectly, because you can set tooltips on them
-			if(!($widget instanceof GtkMenuItem) && $widget->flags() & Gtk::NO_WINDOW)
+			// flags for menu items/buttons must be set incorrectly, because you can set tooltips on them
+			if(!($widget instanceof GtkMenuItem) && !($widget instanceof GtkButton) &&
+				$widget->flags() & Gtk::NO_WINDOW)
 			{
+				echo $widget;
 				$parent = $widget->get_parent();
 				$box = new GtkEventBox();
 				if($parent instanceof GtkBox)