sound: Make the level bar draw correctly again
The patch in http://git.gnome.org/browse/gnome-media/commit/?id=5b71e80a54faf7bc8172bddccd74e2688435e571 was broken, as it didn't remove the translation that used to be necessary when using ->expose_event, but not with ->draw.
This commit is contained in:
parent
799b499082
commit
d08cfeae5c
1 changed files with 0 additions and 8 deletions
|
@ -568,19 +568,11 @@ gvc_level_bar_draw (GtkWidget *widget,
|
||||||
cairo_t *cr)
|
cairo_t *cr)
|
||||||
{
|
{
|
||||||
GvcLevelBar *bar;
|
GvcLevelBar *bar;
|
||||||
GtkAllocation allocation;
|
|
||||||
|
|
||||||
g_return_val_if_fail (GVC_IS_LEVEL_BAR (widget), FALSE);
|
g_return_val_if_fail (GVC_IS_LEVEL_BAR (widget), FALSE);
|
||||||
|
|
||||||
g_message ("gvc_level_bar_draw");
|
|
||||||
|
|
||||||
bar = GVC_LEVEL_BAR (widget);
|
bar = GVC_LEVEL_BAR (widget);
|
||||||
|
|
||||||
gtk_widget_get_allocation (widget, &allocation);
|
|
||||||
cairo_translate (cr,
|
|
||||||
allocation.x,
|
|
||||||
allocation.y);
|
|
||||||
|
|
||||||
if (bar->priv->orientation == GTK_ORIENTATION_VERTICAL) {
|
if (bar->priv->orientation == GTK_ORIENTATION_VERTICAL) {
|
||||||
int i;
|
int i;
|
||||||
int by;
|
int by;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue