View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0004410 | ardour | other | public | 2011-10-30 16:29 | 2020-04-19 20:15 |
| Reporter | royvegard | Assigned To | cth103 | ||
| Priority | normal | Severity | minor | Reproducibility | N/A |
| Status | closed | Resolution | fixed | ||
| Target Version | 3.0-beta1 | ||||
| Summary | 0004410: [PATCH] Buttons with led on the left have text shifted too far to the right | ||||
| Description | This patch moves the text to the left for buttons with a led on the left side. | ||||
| Tags | No tags attached. | ||||
|
2011-10-30 16:29
|
button_text.patch (541 bytes)
diff --git a/gtk2_ardour/ardour_button.cc b/gtk2_ardour/ardour_button.cc
index ef537d1..74318f2 100644
--- a/gtk2_ardour/ardour_button.cc
+++ b/gtk2_ardour/ardour_button.cc
@@ -147,7 +147,7 @@ ArdourButton::render (cairo_t* cr)
if (_elements & Indicator) {
if (_led_left) {
- cairo_move_to (cr, _width - text_margin - 4, _height/2.0 - _text_height/2.0);
+ cairo_move_to (cr, _diameter + text_margin + 4, _height/2.0 - _text_height/2.0);
} else {
cairo_move_to (cr, text_margin, _height/2.0 - _text_height/2.0);
}
|
|
|
The patch works for me. |
|
|
I believe this has been fixed in the last few SVN revisions. Please re-open the bug if you are still having problems. Thanks! |
|
|
Issue has been closed automatically, by Trigger Close Plugin. Feel free to re-open with additional information if you think the issue is not resolved. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2011-10-30 16:29 | royvegard | New Issue | |
| 2011-10-30 16:29 | royvegard | File Added: button_text.patch | |
| 2011-10-30 17:31 | cth103 | cost | => 0.00 |
| 2011-10-30 17:31 | cth103 | Target Version | => 3.0-beta1 |
| 2011-10-31 11:57 | colinf | Note Added: 0011835 | |
| 2011-10-31 21:53 | cth103 | Note Added: 0011841 | |
| 2011-10-31 21:53 | cth103 | Status | new => resolved |
| 2011-10-31 21:53 | cth103 | Resolution | open => fixed |
| 2011-10-31 21:53 | cth103 | Assigned To | => cth103 |
| 2020-04-19 20:15 | system | Note Added: 0022798 | |
| 2020-04-19 20:15 | system | Status | resolved => closed |