gtk-engines r1149 - in trunk: . engines/clearlooks/src
- From: bberg svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk-engines r1149 - in trunk: . engines/clearlooks/src
- Date: Mon, 7 Apr 2008 20:24:15 +0100 (BST)
Author: bberg
Date: Mon Apr 7 20:24:15 2008
New Revision: 1149
URL: http://svn.gnome.org/viewvc/gtk-engines?rev=1149&view=rev
Log:
2008-04-07 Benjamin Berg <benjamin sipsolutions net>
* engines/clearlooks/src/clearlooks_style.c:
(clearlooks_style_draw_box):
Work around GTK+ drawing the "spinbutton" box always with state
NORMAL.
Modified:
trunk/ChangeLog
trunk/engines/clearlooks/src/clearlooks_style.c
Modified: trunk/engines/clearlooks/src/clearlooks_style.c
==============================================================================
--- trunk/engines/clearlooks/src/clearlooks_style.c (original)
+++ trunk/engines/clearlooks/src/clearlooks_style.c Mon Apr 7 20:24:15 2008
@@ -591,6 +591,11 @@
{
WidgetParameters params;
+ /* The "spinbutton" box is always drawn with state NORMAL, even if it is insensitive.
+ * So work around this here. */
+ if (state_type == GTK_STATE_NORMAL && widget && GE_IS_ENTRY (widget))
+ state_type = GTK_WIDGET_STATE (widget);
+
clearlooks_set_widget_parameters (widget, style, state_type, ¶ms);
if (params.ltr)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]