Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4989

C/C++ • Re: GtkMM 4.x questions: version, ColumnView and Dropdown

$
0
0
Actually, I have taken a couple of decisions which pretty much make these questions irrelevant.
1. The version is what the version is. Irritating, since I know that 4.10+ is available, but I really *don't* want to use stuff not in the standard repositories at this stage.

2. The flickering is a small side issue; I'm not talking about the "tearing" that happens on screen refreshes when vertical blanking isn't timed correctly, but the inevitable redraws when sizes are adjusted, leading to other widget sizes being adjusted, and so on. I have decided to ignore it for now.

The issue with column sizes is something I am still investigating, along with another related "thing" with using sorting headers (for which I have added a different topic).

3. The Dropdown was actually relatively simple to solve. The Dropdown widget has multiple children, so I now just run some code to do something along the lines of:
[code[
Gtk::Wdiget* p = m_dropdown.get_first_child();
while (p)
{
auto ctx = pd->get_style_context();
ctx->add_provider( myCSS, GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
ctx>add_class("largefont");
pd = pd->get_next_sibling();
}
[/code]
and that does the trick. Turns out that most of the time, widgets which are compound sets of windows do create them but don't show them until they are needed, of course.

Statistics: Posted by SteveSpencer — Wed Jun 26, 2024 1:59 pm



Viewing all articles
Browse latest Browse all 4989

Trending Articles