comparison src/audacious/ui_skinned_button.c @ 3007:6cb0f58e7e7d trunk

oops, this shouldn't get commited
author Tomasz Mon <desowin@gmail.com>
date Sun, 08 Jul 2007 20:36:10 +0200
parents 3c4ed53a685f
children 99865f696f13
comparison
equal deleted inserted replaced
3006:3c4ed53a685f 3007:6cb0f58e7e7d
232 g_mutex_lock(mutex); 232 g_mutex_lock(mutex);
233 UiSkinnedButton *button = UI_SKINNED_BUTTON (widget); 233 UiSkinnedButton *button = UI_SKINNED_BUTTON (widget);
234 UiSkinnedButtonPrivate *priv = UI_SKINNED_BUTTON_GET_PRIVATE (button); 234 UiSkinnedButtonPrivate *priv = UI_SKINNED_BUTTON_GET_PRIVATE (button);
235 widget->allocation = *allocation; 235 widget->allocation = *allocation;
236 if (GTK_WIDGET_REALIZED (widget)) 236 if (GTK_WIDGET_REALIZED (widget))
237 gdk_window_move_resize(widget->window, allocation->x*(1+priv->double_size), allocation->y*(1+priv->double_size), allocation->width, allocation->height); 237 gdk_window_move_resize(widget->window, allocation->x, allocation->y, allocation->width, allocation->height);
238 button->x = widget->allocation.x/(priv->double_size ? 2 : 1); 238 button->x = widget->allocation.x/(priv->double_size ? 2 : 1);
239 button->y = widget->allocation.y/(priv->double_size ? 2 : 1); 239 button->y = widget->allocation.y/(priv->double_size ? 2 : 1);
240 priv->move_x = 0; 240 priv->move_x = 0;
241 priv->move_y = 0; 241 priv->move_y = 0;
242 242
465 GtkWidget *widget = GTK_WIDGET (button); 465 GtkWidget *widget = GTK_WIDGET (button);
466 UiSkinnedButtonPrivate *priv = UI_SKINNED_BUTTON_GET_PRIVATE (button); 466 UiSkinnedButtonPrivate *priv = UI_SKINNED_BUTTON_GET_PRIVATE (button);
467 priv->double_size = !priv->double_size; 467 priv->double_size = !priv->double_size;
468 468
469 gtk_widget_set_size_request(widget, priv->w*(1+priv->double_size), priv->h*(1+priv->double_size)); 469 gtk_widget_set_size_request(widget, priv->w*(1+priv->double_size), priv->h*(1+priv->double_size));
470 //gtk_widget_set_uposition(widget, button->x*(1+priv->double_size), button->y*(1+priv->double_size)); 470 gtk_widget_set_uposition(widget, button->x*(1+priv->double_size), button->y*(1+priv->double_size));
471 471
472 gtk_widget_queue_draw(widget); 472 gtk_widget_queue_draw(widget);
473 } 473 }
474 474
475 static void ui_skinned_button_redraw(UiSkinnedButton *button) { 475 static void ui_skinned_button_redraw(UiSkinnedButton *button) {