lib/rabbit/element/index-slide.rb in rabbit-2.2.0 vs lib/rabbit/element/index-slide.rb in rabbit-2.2.1
- old
+ new
@@ -152,10 +152,10 @@
text_size = (margin_bottom * Pango::SCALE).ceil
text = "#{@number}/#{@number_of_slides}"
text = %Q[<span size="#{text_size}">#{text}</span>]
@layout, _, _ = canvas.make_layout(text)
@layout.set_width(width * Pango::SCALE)
- @layout.set_alignment(Pango::Layout::ALIGN_CENTER)
+ @layout.set_alignment(Pango::Alignment::CENTER)
end
canvas.draw_pixbuf(@pixbuf, x, y)
canvas.draw_rectangle(false, x, y, width, height)
canvas.draw_layout(@layout, x, y + height)
end