gtk-engines r1038 - in trunk: . engines/clearlooks/src
- From: bberg svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk-engines r1038 - in trunk: . engines/clearlooks/src
- Date: Mon, 28 Jan 2008 15:21:40 +0000 (GMT)
Author: bberg
Date: Mon Jan 28 15:21:40 2008
New Revision: 1038
URL: http://svn.gnome.org/viewvc/gtk-engines?rev=1038&view=rev
Log:
2008-01-28 Benjamin Berg <benjamin sipsolutions net>
* engines/clearlooks/src/clearlooks_draw_gummy.c:
(clearlooks_gummy_draw_tab), (clearlooks_gummy_draw_focus):
Added a comment and more restrictive no-focus drawing for the
notebook tab.
Modified:
trunk/ChangeLog
trunk/engines/clearlooks/src/clearlooks_draw_gummy.c
Modified: trunk/engines/clearlooks/src/clearlooks_draw_gummy.c
==============================================================================
--- trunk/engines/clearlooks/src/clearlooks_draw_gummy.c (original)
+++ trunk/engines/clearlooks/src/clearlooks_draw_gummy.c Mon Jan 28 15:21:40 2008
@@ -835,6 +835,7 @@
cairo_pattern_destroy (pattern);
}
+ /* In current GTK+ focus and active cannot happen together, but we are robust against it. */
if (params->focus && !params->active)
{
CairoColor focus_fill = tab->focus.color;
@@ -1657,7 +1658,9 @@
focus_fill = FALSE;
break;
case CL_FOCUS_TAB:
- if (widget->focus)
+ /* In current GTK+ focus and active cannot happen together, but we are robust against it.
+ * IF the application sets the state to ACTIVE while drawing the tabs focus. */
+ if (widget->focus && !widget->active)
return;
border_alpha = 0.6;
fill_alpha = 0.17;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]