f-spot r3661 - in trunk/src: . Widgets



Author: sdelcroix
Date: Mon Feb 11 10:09:39 2008
New Revision: 3661
URL: http://svn.gnome.org/viewvc/f-spot?rev=3661&view=rev

Log:
fixes the ratingwidget background

Modified:
   trunk/src/PhotoView.cs
   trunk/src/Widgets/RatingMenuItem.cs

Modified: trunk/src/PhotoView.cs
==============================================================================
--- trunk/src/PhotoView.cs	(original)
+++ trunk/src/PhotoView.cs	Mon Feb 11 10:09:39 2008
@@ -503,7 +503,6 @@
 
 		tag_view = new Widgets.TagView ();
 		inner_hbox.PackStart (tag_view, false, true, 0);
-		SetColors ();
 
 		Label comment = new Label (Catalog.GetString ("Comment:"));
 		inner_hbox.PackStart (comment, false, false, 0);
@@ -514,6 +513,8 @@
 		rating = new Widgets.Rating();
 		inner_hbox.PackStart (rating, false, false, 0);
 		rating.Changed += HandleRatingChanged;
+
+		SetColors ();
 		
 		inner_vbox.PackStart (inner_hbox, false, true, 0);
 
@@ -598,6 +599,7 @@
 		GtkUtil.ModifyColors (photo_view);
 		GtkUtil.ModifyColors (background);
 		GtkUtil.ModifyColors (photo_view_scrolled);
+		GtkUtil.ModifyColors (rating);
 	}
 
 	protected override void OnStyleSet (Style previous)

Modified: trunk/src/Widgets/RatingMenuItem.cs
==============================================================================
--- trunk/src/Widgets/RatingMenuItem.cs	(original)
+++ trunk/src/Widgets/RatingMenuItem.cs	Mon Feb 11 10:09:39 2008
@@ -58,6 +58,13 @@
 			ConnectChildExpose (entry);
 		}
 
+		protected override void OnRealized ()
+		{
+			entry.ModifyBg (Gtk.StateType.Prelight, entry.Style.BaseColors [(int)Gtk.StateType.Selected]);
+			base.OnRealized();
+
+		}
+
 		private int TransformX (double inx)
 		{
 			int x = (int)inx - entry.Allocation.X;



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