Commit 16ed75dc authored by Murray Cumming's avatar Murray Cumming

Replace use of deprecated Misc::get/set_padding().

parent 2bdbd6a0
......@@ -168,15 +168,15 @@ void CounterBox::recalculate_label_width()
widest_number = (digits_range_ / 10) * second_widest_digit_;
}
int width = 0, height = 0, xpad = 0, ypad = 0;
int width = 0, height = 0, xpad = 0;
const Glib::ustring text = number_to_string(widest_number);
label_index_->create_pango_layout(text)->get_pixel_size(width, height);
label_index_->get_padding(xpad, ypad);
xpad = label_index_->get_margin_start() + label_index_->get_margin_end();
label_index_->set_size_request(width + 2 * xpad, -1);
label_count_->get_padding(xpad, ypad);
xpad = label_count_->get_margin_start() + label_count_->get_margin_end();
label_count_->set_size_request(width + 2 * xpad, -1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment