Hello,
I'm trying to use the Gtk ColumnView to show a custom ListModel in sorted
order. I noticed that when I set a simple sorter for a column and then sort
by that column, the order isn't changed. The UI allows me to switch between
ascending and descending, but doing so doesn't reverse the list.
in my gtkmm app i have a label that has a background image thanks to css
provider. like this:
```
MainWindow::MainWindow():
Mylabel(Hello)
{
provider = Gtk::CssProvider::create();
provider->load_from_data(
"#LogoLabel{"
//"color:#80;"
//"color:#5485ae;"
"color:#0075ff;"
"}"
"#PleaseHitKeyLbl{"
On Tue, Aug 23, 2022 at 10:44 AM Master via gtkmm-list
wrote:
> The problem is that I dont know how to tell the `background-image` inside
> the style provider to "get the image from resource" instead of "file"
> please help me.
>
Hello,
You can set background image to a resource like:
background-
The documentation at
https://docs.gtk.org/gtk4/method.ColumnView.get_sorter.html suggests you
need a SortListModel
On Tue, Aug 23, 2022 at 4:32 AM Jackson Campolattaro via gtkmm-list <
gtkmm-list@gnome.org> wrote:
> Hello,
>
> I'm trying to use the Gtk ColumnView to show a custom ListModel in sor
Thanks! Somehow I got the impression that the ColumnView would construct
SortListModels on its own, but looking back at the documentation I'm not
sure where I heard that.
Here is a working solution:
#include
> #include
>
> class MyWindow : public Gtk::Window {
> private:
>
> Gtk::ColumnView