diff --git a/core/mui/cairo_miracle_painter.rb b/core/mui/cairo_miracle_painter.rb index cef3676a..673f382b 100644 --- a/core/mui/cairo_miracle_painter.rb +++ b/core/mui/cairo_miracle_painter.rb @@ -297,7 +297,7 @@ class Gdk::MiraclePainter < Gtk::Object layout = context.create_pango_layout layout.width = pos.main_text.width * Pango::SCALE layout.attributes = attr_list if attr_list - layout.wrap = Pango::WRAP_CHAR + layout.wrap = Pango::WrapMode::CHAR color = Plugin.filtering(:message_font_color, message, nil).last color = BLACK if not(color and color.is_a? Array and 3 == color.size) font = Plugin.filtering(:message_font, message, nil).last @@ -337,7 +337,7 @@ class Gdk::MiraclePainter < Gtk::Object font = Plugin.filtering(:message_header_right_font, message, nil).last layout.font_description = Pango::FontDescription.new(font) if font layout.text = text - layout.alignment = Pango::ALIGN_RIGHT + layout.alignment = Pango::Alignment::RIGHT layout end def timestamp_label diff --git a/core/mui/cairo_sub_parts_message_base.rb b/core/mui/cairo_sub_parts_message_base.rb index 5f3cadde..7bc7b992 100644 --- a/core/mui/cairo_sub_parts_message_base.rb +++ b/core/mui/cairo_sub_parts_message_base.rb @@ -280,7 +280,7 @@ class Gdk::SubPartsMessageBase < Gdk::SubParts layout.attributes = attr_list if attr_list layout.font_description = font if font layout.text = text - layout.alignment = Pango::ALIGN_RIGHT + layout.alignment = Pango::Alignment::RIGHT layout end end def render_header(message, context, base_y) @@ -321,7 +321,7 @@ class Gdk::SubPartsMessageBase < Gdk::SubParts layout = context.create_pango_layout layout.width = (width - icon_width - margin*3 - edge*2) * Pango::SCALE layout.attributes = attr_list - layout.wrap = Pango::WRAP_CHAR + layout.wrap = Pango::WrapMode::CHAR layout.font_description = default_font layout.text = text layout end diff --git a/core/mui/cairo_sub_parts_voter.rb b/core/mui/cairo_sub_parts_voter.rb index 5ac6c296..0c1f1636 100644 --- a/core/mui/cairo_sub_parts_voter.rb +++ b/core/mui/cairo_sub_parts_voter.rb @@ -166,7 +166,7 @@ class ::Gdk::SubPartsVoter < Gdk::SubParts def pl_count(context = dummy_context) layout = context.create_pango_layout - layout.wrap = Pango::WRAP_CHAR + layout.wrap = Pango::WrapMode::CHAR layout.font_description = Pango::FontDescription.new(UserConfig[:mumble_basic_font]) layout.text = "#{get_vote_count}" layout diff --git a/core/plugin/direct_message/dmlistview.rb b/core/plugin/direct_message/dmlistview.rb index 68d2c66c..2d94e9ba 100644 --- a/core/plugin/direct_message/dmlistview.rb +++ b/core/plugin/direct_message/dmlistview.rb @@ -36,7 +36,7 @@ module Plugin::DirectMessage Delayer.new{ if not destroyed? renderer.set_property "wrap-width", 10 - renderer.set_property "wrap-mode", Pango::WRAP_CHAR end } + renderer.set_property "wrap-mode", Pango::WrapMode::CHAR end } renderer } }, {:type => Integer}, {:type => Object}, diff --git a/core/plugin/display_requirements/display_requirements.rb b/core/plugin/display_requirements/display_requirements.rb index d46148a0..56834dd2 100644 --- a/core/plugin/display_requirements/display_requirements.rb +++ b/core/plugin/display_requirements/display_requirements.rb @@ -196,7 +196,7 @@ class ::Gdk::SubPartsVoter def render_user(context, user) render_icon(context, user) layout = context.create_pango_layout - layout.wrap = Pango::WRAP_CHAR + layout.wrap = Pango::WrapMode::CHAR layout.font_description = Pango::FontDescription.new(UserConfig[:mumble_basic_font]) layout.text = "#{user[:name]}" context.set_source_rgb(*(UserConfig[:mumble_basic_color] || [0,0,0]).map{ |c| c.to_f / 65536 })