You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using a DrawHandler<_> to perform drawing "the relm way" makes the gtk::render_* functions useless, as they do not draw anything. Furthermore, the StyleContext struct returned by cairo::Context::get_style_context() seems zeroed as it only returns transparent black colors for get_*_color.
For example, gtk::render_background renders the background with respect for the user's GTK theme, which works fine with regular GTK and hooking manually into connnect_draw, does not draw anything when used with relm, which results in the drawing area not being cleared at the beginning of each draw.
Using a
DrawHandler<_>
to perform drawing "the relm way" makes thegtk::render_*
functions useless, as they do not draw anything. Furthermore, theStyleContext
struct returned bycairo::Context::get_style_context()
seems zeroed as it only returns transparent black colors forget_*_color
.For example,
gtk::render_background
renders the background with respect for the user's GTK theme, which works fine with regular GTK and hooking manually intoconnnect_draw
, does not draw anything when used with relm, which results in the drawing area not being cleared at the beginning of each draw.gtk-rs example code (works)
relm code (doesn't work)
Workaround for relm
The text was updated successfully, but these errors were encountered: