Author: llipka
Date: Thu Feb 14 22:44:03 2008
New Revision: 4482
URL: http://svn.gnome.org/viewvc/beagle?rev=4482&view=rev

Log:
Last one, I promise --- give the user a visual clue if the tile has focus

Modified:
   trunk/beagle/search/Beagle.Search.Tiles/Tile.cs

Modified: trunk/beagle/search/Beagle.Search.Tiles/Tile.cs
==============================================================================
--- trunk/beagle/search/Beagle.Search.Tiles/Tile.cs     (original)
+++ trunk/beagle/search/Beagle.Search.Tiles/Tile.cs     Thu Feb 14 22:44:03 2008
@@ -146,9 +146,19 @@
                        gr.Color = CairoFu.GdkColorToCairoColor (fill);
                        gr.Fill ();
 
-                       if (State == StateType.Selected || HasFocus) {
+                       if (State == StateType.Selected) {
                                CairoFu.RoundedSelection (gr, this, 0, 0, 
Allocation.Width, Allocation.Height);
                        }
+
+                       if (HasFocus) {
+                               int focus_padding = (int)StyleGetProperty 
("focus-padding");
+                               int x = focus_padding + Style.Xthickness;
+                               int y = focus_padding + Style.Ythickness;
+                               int width = Allocation.Width - 2 * 
(focus_padding + Style.Xthickness);
+                               int height = Allocation.Height - 2 * 
(focus_padding + Style.Ythickness);
+                               Style.PaintFocus (Style, GdkWindow, State, 
evt.Area, this,
+                                                 null, x, y, width, height);
+                       }
                        
                        CairoFu.DisposeContext (gr);
 
_______________________________________________
SVN-commits-list mailing list (read only)
http://mail.gnome.org/mailman/listinfo/svn-commits-list

Want to limit the commits to a few modules? Go to above URL, log in to edit 
your options and select the modules ('topics') you want.
Module maintainer? It is possible to set the reply-to to your development 
mailing list. Email [EMAIL PROTECTED] if interested.

Reply via email to