13
0
livetrax/libs/widgets
Robin Gareus 2abf9c66a4
Fix size-request that rely on Pango::Layout
A Pango::Layout created by Gtk::Widget::get_pango_context ()
does not have any font set. The Font is inherited from the
layout's context.

The actual font is set when the layout is used in
on_expose_event() via get_window ()->create_cairo_context ().

In some cases we rely on the font-size to calculate the widget's
size before rendering. At this point in time there is no drawing
context from which to inherit the style.

Furthermore, even after a call to `ensure_style()` in the c'tor
of a Widget get_font() simply returns the default value.

All Widgets that rely an Pango::Layout font size during
size-requests have to explicitly set the font.

This fixes various overlarge buttons with the initial default layout.
2021-01-30 02:23:35 +01:00
..
MSVCwidgets Adapt our remaining MSVC projects for 'boost::atomic' (in case it later gets extended to the other libs) 2018-09-30 09:19:28 +01:00
widgets Fix size-request that rely on Pango::Layout 2021-01-30 02:23:35 +01:00
ardour_button.cc Fix size-request that rely on Pango::Layout 2021-01-30 02:23:35 +01:00
ardour_display.cc Update canvas/UI lib GPL boilerplate and (C) from git log 2019-08-03 15:53:17 +02:00
ardour_dropdown.cc Emit signal when dropdown changes via scroll-wheel 2020-04-20 00:36:37 +02:00
ardour_fader.cc Fix size-request that rely on Pango::Layout 2021-01-30 02:23:35 +01:00
ardour_icon.cc remove destructive/tape mode tracks 2020-03-17 16:31:49 -06:00
ardour_knob.cc Separate static widget theme into abstract class 2021-01-26 23:37:54 +01:00
ardour_spacer.cc Add a horizontal separator widget 2020-07-21 04:41:16 +02:00
ardour_spinner.cc Update canvas/UI lib GPL boilerplate and (C) from git log 2019-08-03 15:53:17 +02:00
barcontroller.cc Increase precision of numeric dB entry 2020-08-01 09:57:18 +02:00
binding_proxy.cc Update canvas/UI lib GPL boilerplate and (C) from git log 2019-08-03 15:53:17 +02:00
choice.cc Update canvas/UI lib GPL boilerplate and (C) from git log 2019-08-03 15:53:17 +02:00
eventboxext.cc Update canvas/UI lib GPL boilerplate and (C) from git log 2019-08-03 15:53:17 +02:00
fastmeter.cc Update canvas/UI lib GPL boilerplate and (C) from git log 2019-08-03 15:53:17 +02:00
focus_entry.cc Update canvas/UI lib GPL boilerplate and (C) from git log 2019-08-03 15:53:17 +02:00
pane.cc Update canvas/UI lib GPL boilerplate and (C) from git log 2019-08-03 15:53:17 +02:00
paths_dialog.cc Update canvas/UI lib GPL boilerplate and (C) from git log 2019-08-03 15:53:17 +02:00
popup.cc Update canvas/UI lib GPL boilerplate and (C) from git log 2019-08-03 15:53:17 +02:00
prompter.cc tweak Prompter API to allow skipping the default "Cancel" button 2020-05-18 16:04:41 -06:00
scroomer.cc Update canvas/UI lib GPL boilerplate and (C) from git log 2019-08-03 15:53:17 +02:00
searchbar.cc Update canvas/UI lib GPL boilerplate and (C) from git log 2019-08-03 15:53:17 +02:00
slider_controller.cc Fix SliderController numeric entry to use dB for gain 2020-07-22 21:43:14 +02:00
stateful_button.cc Update canvas/UI lib GPL boilerplate and (C) from git log 2019-08-03 15:53:17 +02:00
tabbable.cc force provision of "menu-name" for all WindowProxy objects, and thus Tabbables 2020-05-01 14:33:47 -06:00
tearoff.cc Update canvas/UI lib GPL boilerplate and (C) from git log 2019-08-03 15:53:17 +02:00
tooltips.cc Update canvas/UI lib GPL boilerplate and (C) from git log 2019-08-03 15:53:17 +02:00
ui_config.cc
wscript Explicitly use OSX 2020-01-25 04:07:41 +01:00