# HG changeset patch # User Tomasz Mon # Date 1183043129 -7200 # Node ID 6cd68e70e86df228d2fb578c34e52a04bdf2fe89 # Parent 4829dd0c8975ffcac90d22238c6393988c94ed6a fix previous commit diff -r 4829dd0c8975 -r 6cd68e70e86d src/audacious/ui_skinned_button.c --- a/src/audacious/ui_skinned_button.c Thu Jun 28 16:46:33 2007 +0200 +++ b/src/audacious/ui_skinned_button.c Thu Jun 28 17:05:29 2007 +0200 @@ -311,6 +311,7 @@ static void ui_skinned_button_size_allocate(GtkWidget *widget, GtkAllocation *allocation) { UiSkinnedButton *button = UI_SKINNED_BUTTON (widget); + UiSkinnedButtonPrivate *priv = UI_SKINNED_BUTTON_GET_PRIVATE (button); GtkAllocation child_alloc; widget->allocation = *allocation; @@ -326,6 +327,9 @@ if (GDK_IS_WINDOW(button->event_window)) gdk_window_move_resize (button->event_window, widget->allocation.x, widget->allocation.y, widget->allocation.width, widget->allocation.height); + + button->x = widget->allocation.x/(priv->double_size ? 2 : 1); + button->y = widget->allocation.y/(priv->double_size ? 2 : 1); } static void button_pressed(UiSkinnedButton *button) {