Mercurial > audlegacy
diff src/audacious/ui_skinned_playlist_slider.c @ 3939:d46d60247826
we don't need to store GtkFixed pointer, do we?
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Thu, 15 Nov 2007 12:38:47 +0100 |
parents | 5a4ef76b1f42 |
children | 1112f53ecc18 |
line wrap: on
line diff
--- a/src/audacious/ui_skinned_playlist_slider.c Thu Nov 15 12:07:23 2007 +0100 +++ b/src/audacious/ui_skinned_playlist_slider.c Thu Nov 15 12:38:47 2007 +0100 @@ -39,7 +39,6 @@ }; struct _UiSkinnedPlaylistSliderPrivate { - GtkWidget *fixed; SkinPixmapId skin_index; gint width, height; @@ -133,10 +132,9 @@ hs->y = y; priv->width = 8; priv->height = h; - priv->fixed = fixed; priv->skin_index = SKIN_PLEDIT; - gtk_fixed_put(GTK_FIXED(priv->fixed), GTK_WIDGET(hs), hs->x, hs->y); + gtk_fixed_put(GTK_FIXED(fixed), GTK_WIDGET(hs), hs->x, hs->y); return GTK_WIDGET(hs); } @@ -326,7 +324,8 @@ if (priv->resize_height) gtk_widget_set_size_request(GTK_WIDGET(playlist_slider), priv->width, priv->height+priv->resize_height); if (priv->move_x) - gtk_fixed_move(GTK_FIXED(priv->fixed), GTK_WIDGET(playlist_slider), playlist_slider->x+priv->move_x, playlist_slider->y); + gtk_fixed_move(GTK_FIXED(gtk_widget_get_parent(GTK_WIDGET(playlist_slider))), GTK_WIDGET(playlist_slider), + playlist_slider->x+priv->move_x, playlist_slider->y); gtk_widget_queue_draw(GTK_WIDGET(playlist_slider)); }