beagle r4482 - trunk/beagle/search/Beagle.Search.Tiles
- From: llipka svn gnome org
- To: svn-commits-list gnome org
- Subject: beagle r4482 - trunk/beagle/search/Beagle.Search.Tiles
- Date: Thu, 14 Feb 2008 22:44:03 +0000 (GMT)
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]