Re: Make `Widget.get_style_context() const` return a `StyleContext const`?
- From: Kjell Ahlstedt <kjellahlstedt gmail com>
- To: Daniel Boles <dboles src gmail com>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Make `Widget.get_style_context() const` return a `StyleContext const`?
- Date: Thu, 12 Dec 2019 09:25:52 +0100
It looks like a mistake. I've changed it in the master branch (gtkmm4).
I guess we have to live with it in gtkmm3. The same change there would
break API. Perhaps also ABI, but I'm not sure.
Kjell
On 2019-12-10 16:05, Daniel Boles via gtkmm-list wrote:
I suspect this might have been asked and discredited already, so if it
has, apologies and link me :)
In gtk/src/widget.hg we have:
```
_WRAP_METHOD(Glib::RefPtr<StyleContext> get_style_context(),
gtk_widget_get_style_context, refreturn)
_WRAP_METHOD(Glib::RefPtr<Gtk::StyleContext> get_style_context()
const, gtk_widget_get_style_context, refreturn, constversion)
```
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]