Re: Problem deriving GLArea widget
- From: Kjell Ahlstedt <kjell ahlstedt bredband net>
- To: Bill McGrory <wdmcgrory gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: Problem deriving GLArea widget
- Date: Mon, 25 Apr 2016 10:30:34 +0200
Den 2016-04-24 kl. 12:42, skrev Kjell Ahlstedt:
You've discovered a bug in Gtk::GLArea::signal_create_context(). I've
fixed it in the git repository.
https://git.gnome.org/browse/gtkmm/commit/?id=d1ae01f3dc14dfbadb3e6288c6bdab5f4a1332b5
And now I've made a better fix. In this case Glib::unwrap_copy() is
better than Glib::wrap(xxx, true). You'll notice a difference only if
you provide your own signal handler for signal_create_context().
https://git.gnome.org/browse/gtkmm/commit/?id=574f41bdea5fabab05f444db89e46d9179263c5c
Kjell
Den 2016-04-22 kl. 22:01, skrev Bill McGrory:
Following up:
I got the included test program to work by making the following
change in glarea.cc
At this point, I'm not sure if this is a complete and total fix, as I
need to see if my full featured class can be used correctly.
588,592c588,590
< if(base && base->create_context) {
< Glib::RefPtr<Gdk::GLContext>
retval(Glib::wrap((*base->create_context)(gobj()),true));
< return retval;
< }
<
---
> if(base && base->create_context)
> return Glib::wrap((*base->create_context)(gobj()));
>
I'm assuming it's the take_copy argument passed to wrap?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]