goocanvasmm and gtkmm4

2020-03-04 Thread Klaus Rudolph
I see in the mailing list that gtkmm4 is coming... :-) Will goocanvasmm-2 also work with upcoming gtkmm4? Maybe is there a new release like goocanvasmm-3? Can anyone test if it still compiles within gtkmm4. Regards Klaus ___ gtkmm-list mailing list

Re: Unable to set background color for button

2020-03-04 Thread Daniel Boles via gtkmm-list
gotchas will probably be found by checking what the default theme does. that'll be gtk/themes/Adwaita/_common.scss in the Git repository. you can either work with/over those, or if you really wanted just write your own theme... or unset props for entire widgets before theming them. it's probably

Re: Unable to set background color for button

2020-03-04 Thread Klaus Rudolph
Thank you very much! I now have an entry point! I now found the background, background-color and background-image properties. But the relation and the default for the image thing which "hides" the color is not described. I am in hope that I will not fall so often over such "gotcha" :-) For

Re: Unable to set background color for button

2020-03-04 Thread Daniel Boles via gtkmm-list
search for *gtk css properties* and gtk* css overview* and you will find the general stuff. these are also in the installed documentation with the lib. then if you think there are gaps there, chances are it will be documented for CSS generally and not specific to GTK. individual widgets are not

Re: Unable to set background color for button

2020-03-04 Thread Klaus Rudolph
just search for the C class name, e.g. /GtkButton/ https://developer.gnome.org/gtk3/stable/GtkButton.html OK, found the page, but I did not find CSS things like "background-color". in CSS. either add a line /background-image: none/ or use the shorthand /background:/ instead of

Re: Unable to set background color for button

2020-03-04 Thread Daniel Boles via gtkmm-list
On Wed, 4 Mar 2020, 18:35 Klaus Rudolph, wrote: > > > > see C GTK docs for CSS node/class info. i can't recall whether gtkmm's > > doc conversion preserves that section. > > Can you point me to the docs? I searched a lot but did not find it. > just search for the C class name, e.g. *GtkButton*

Re: Unable to set background color for button

2020-03-04 Thread Klaus Rudolph
see C GTK docs for CSS node/class info. i can't recall whether gtkmm's doc conversion preserves that section. Can you point me to the docs? I searched a lot but did not find it. Thanks for the hint of "first unset..." . Is unsetting image done also with css or is that a method call? Sorry

Fwd: Unable to set background color for button

2020-03-04 Thread Daniel Boles via gtkmm-list
-- Forwarded message - From: Daniel Boles Date: Wed, 4 Mar 2020, 18:27 Subject: Re: Unable to set background color for button To: Klaus Rudolph that is another typical 'gotcha'. you need to unset the background-image, or just set the shorthand background property instead of

Re: Unable to set background color for button

2020-03-04 Thread Klaus Rudolph
I tried now the following, but it still doesn't work: int main(int argc, char *argv[]) { auto app = Gtk::Application::create(argc, argv, "org.gtkmm.example"); Gtk::Window window; Gtk::Button button("Some text"); window.add(button); Gdk::RGBA color;

Re: Unable to set background color for button

2020-03-04 Thread Klaus
Thanks! Is there any example available to set the background color of a button with the StyleProvider? Am 04.03.20 um 18:51 schrieb Daniel Boles via gtkmm-list: yes they do: """ Deprecated: 3.16: This function is not useful in the context of CSS-based rendering. If you wish to change the

Re: Unable to set background color for button

2020-03-04 Thread Daniel Boles via gtkmm-list
yes they do: """ Deprecated: 3.16: This function is not useful in the context of CSS-based rendering. If you wish to change the way a widget renders its background you should use a custom CSS style, through an application-specific Gtk::StyleProvider

Unable to set background color for button

2020-03-04 Thread Klaus Rudolph
I want to change the background color of a Gtk::Button, but I simply can not do it :-( int main(int argc, char *argv[]) { auto app = Gtk::Application::create(argc, argv, "org.gtkmm.example"); Gtk::Window window; Gtk::Button button("Some text"); window.add(button);