changeset 2910:6cd68e70e86d trunk

fix previous commit
author Tomasz Mon <desowin@gmail.com>
date Thu, 28 Jun 2007 17:05:29 +0200
parents 4829dd0c8975
children cd21a4556dd2
files src/audacious/ui_skinned_button.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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) {