[regexxer/murrayc-update: 10/12] Replace use of deprecated Misc::get/set_padding().
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [regexxer/murrayc-update: 10/12] Replace use of deprecated Misc::get/set_padding().
- Date: Tue, 1 Mar 2016 08:29:02 +0000 (UTC)
commit 16ed75dc4752de9c6059de71f9128b5a92af122a
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Mar 1 08:54:18 2016 +0100
Replace use of deprecated Misc::get/set_padding().
src/statusline.cc | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/statusline.cc b/src/statusline.cc
index 93c705a..78cc9f7 100644
--- a/src/statusline.cc
+++ b/src/statusline.cc
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]