From: Michael Dominic Kostrzewa Date: Wed, 18 Oct 2006 09:45:50 +0000 (+0000) Subject: 2006-10-18 Michael Dominic Kostrzewa X-Git-Tag: 2.1.66-1~1082 X-Git-Url: https://vcs.maemo.org/git/?a=commitdiff_plain;h=ee2eb834341351beda2d71c5e1d6d0e212bd15a5;p=hildon 2006-10-18 Michael Dominic Kostrzewa * hildon-widgets/hildon-color-button.c: One more extra to actually fix NB#39798. --- diff --git a/ChangeLog b/ChangeLog index 0f93db2..76982ae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-10-18 Michael Dominic Kostrzewa + + * hildon-widgets/hildon-color-button.c: One more extra to actually fix + NB#39798. + 2006-10-16 Michael Dominic Kostrzewa * hildon-widgets/hildon-get-password-dialog.c: Making the password diff --git a/hildon-widgets/hildon-color-button.c b/hildon-widgets/hildon-color-button.c index 9055810..430bc94 100644 --- a/hildon-widgets/hildon-color-button.c +++ b/hildon-widgets/hildon-color-button.c @@ -221,8 +221,8 @@ hildon_color_field_expose_event(GtkWidget *widget, GdkEventExpose *event, gdk_draw_rectangle(widget->window, (GTK_WIDGET_IS_SENSITIVE (widget)) ? cb->priv->gc : widget->style->bg_gc [GTK_STATE_INSENSITIVE], TRUE, - widget->allocation.x, - widget->allocation.y, + 0, + 0, widget->allocation.width, widget->allocation.height); @@ -232,8 +232,8 @@ hildon_color_field_expose_event(GtkWidget *widget, GdkEventExpose *event, gdk_draw_rectangle(widget->window, cb->priv->gc, TRUE, - widget->allocation.x + OUTER_BORDER_THICKNESS, - widget->allocation.y + OUTER_BORDER_THICKNESS, + OUTER_BORDER_THICKNESS, + OUTER_BORDER_THICKNESS, widget->allocation.width - (OUTER_BORDER_THICKNESS * 2), widget->allocation.height - (OUTER_BORDER_THICKNESS * 2)); @@ -243,15 +243,15 @@ hildon_color_field_expose_event(GtkWidget *widget, GdkEventExpose *event, gdk_draw_rectangle(widget->window, cb->priv->gc, TRUE, - widget->allocation.x + (INNER_BORDER_THICKNESS + OUTER_BORDER_THICKNESS), - widget->allocation.y + (INNER_BORDER_THICKNESS + OUTER_BORDER_THICKNESS), + INNER_BORDER_THICKNESS + OUTER_BORDER_THICKNESS, + INNER_BORDER_THICKNESS + OUTER_BORDER_THICKNESS, widget->allocation.width - ((INNER_BORDER_THICKNESS + OUTER_BORDER_THICKNESS)*2), widget->allocation.height - ((INNER_BORDER_THICKNESS + OUTER_BORDER_THICKNESS)*2)); if (! GTK_WIDGET_IS_SENSITIVE (widget)) { draw_grid (GDK_DRAWABLE (widget->window), widget->style->bg_gc [GTK_STATE_INSENSITIVE], - widget->allocation.x + (INNER_BORDER_THICKNESS + OUTER_BORDER_THICKNESS), - widget->allocation.y + (INNER_BORDER_THICKNESS + OUTER_BORDER_THICKNESS), + INNER_BORDER_THICKNESS + OUTER_BORDER_THICKNESS, + INNER_BORDER_THICKNESS + OUTER_BORDER_THICKNESS, widget->allocation.width - ((INNER_BORDER_THICKNESS + OUTER_BORDER_THICKNESS)*2) + 2, widget->allocation.height - ((INNER_BORDER_THICKNESS + OUTER_BORDER_THICKNESS)*2) + 2); }