Mercurial > audlegacy
diff src/audacious/ui_skinned_button.c @ 2901:5ed0674fabd6 trunk
replace PButton in playlistwin with UiSkinnedButton, pbutton.c is no longer needed
| author | Tomasz Mon <desowin@gmail.com> |
|---|---|
| date | Sun, 24 Jun 2007 15:55:32 +0200 |
| parents | 9f37fd52e7d0 |
| children | 4829dd0c8975 |
line wrap: on
line diff
--- a/src/audacious/ui_skinned_button.c Sun Jun 24 05:37:50 2007 -0500 +++ b/src/audacious/ui_skinned_button.c Sun Jun 24 15:55:32 2007 +0200 @@ -326,6 +326,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; + button->y = widget->allocation.y; } static void button_pressed(UiSkinnedButton *button) { @@ -509,3 +512,9 @@ UiSkinnedButtonPrivate *priv = UI_SKINNED_BUTTON_GET_PRIVATE (button); priv->skin_index2 = si; } + +void ui_skinned_button_move_relative(GtkWidget *button, gint x, gint y) { + UiSkinnedButton *b = UI_SKINNED_BUTTON(button); + UiSkinnedButtonPrivate *priv = UI_SKINNED_BUTTON_GET_PRIVATE (button); + gtk_fixed_move(GTK_FIXED(priv->fixed), button, b->x+x, b->y+y); +}
