gnome-games r7207 - trunk/aisleriot
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-games r7207 - trunk/aisleriot
- Date: Sun, 13 Jan 2008 22:08:51 +0000 (GMT)
Author: chpe
Date: Sun Jan 13 22:08:50 2008
New Revision: 7207
URL: http://svn.gnome.org/viewvc/gnome-games?rev=7207&view=rev
Log:
Use the focus-padding property to determine the focus rectangle.
Modified:
trunk/aisleriot/board.c
Modified: trunk/aisleriot/board.c
==============================================================================
--- trunk/aisleriot/board.c (original)
+++ trunk/aisleriot/board.c Sun Jan 13 22:08:50 2008
@@ -154,6 +154,7 @@
Slot *focus_slot;
int focus_card_id; /* -1 for focused empty slot */
int focus_line_width;
+ int focus_padding;
GdkRectangle focus_rect;
/* Selection */
@@ -577,7 +578,7 @@
priv->focus_slot,
priv->focus_card_id,
1, rect);
- widen_rect (rect, 2 * priv->focus_line_width);
+ widen_rect (rect, priv->focus_line_width + priv->focus_padding);
}
static void
@@ -2494,6 +2495,7 @@
gtk_widget_style_get (widget,
"focus-line-width", &priv->focus_line_width,
+ "focus-padding", &priv->focus_padding,
"selection-color", &colour,
NULL);
@@ -3213,7 +3215,7 @@
GTK_WIDGET_STATE (widget),
&event->area,
widget,
- "card-focus",
+ NULL,
focus_rect->x,
focus_rect->y,
focus_rect->width,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]