Re: Questions on Gtk::Notebook
- From: Murray Cumming <murrayc murrayc com>
- To: Antonio Coralles <noche suapie reflex at>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Questions on Gtk::Notebook
- Date: Wed, 20 Jul 2005 00:46:41 +0200
On Tue, 2005-07-19 at 22:55 +0200, Antonio Coralles wrote:
>
> plain text document attachment (NOTEBOOK.txt)
> After deriving my own Gtk::Notebook class, i experienced the following
> behavour, for which i want to know, if this is on purpose:
>
> 1.) A Gtk::Notebook seems to emit signal_switch_page with a second parameter 0
> when realized. Because i wanted to open a different page by default, i had
> to override on_realize().
>
> 2.) A Gtk::Notebook emits the same signal a few times, when getting destroyed.
> This led to following warnings glibmm-warnings:
>
> (duty-roaster:20667): glibmm-WARNING **: Glib::create_new_wrapper:
> Attempted to create a 2nd C++ wrapper for a C instance whose C++ wrapper
> has been deleted.
If you can make a test case for this, please add it to bugzilla.
>
> (duty-roaster:20667): glibmm-WARNING **: failed to wrap type of
> 'gtkmm__GtkFrame'
>
> (duty-roaster:20667): gtkmm-CRITICAL **: void
> <unnamed>::container_foreach_callback(GtkWidget*, void*): assertion
> `widget != 0' failed
> _month == 05
>
> (duty-roaster:20667): glibmm-WARNING **: Glib::create_new_wrapper:
> Attempted to create a 2nd C++ wrapper for a C instance whose C++ wrapper
> has been deleted.
>
> (duty-roaster:20667): glibmm-WARNING **: failed to wrap type of
> 'gtkmm__GtkFrame'
>
> (duty-roaster:20667): gtkmm-CRITICAL **: void
> <unnamed>::container_foreach_callback(GtkWidget*, void*): assertion
> `widget != 0' failed
> _month == 04
>
> ....
>
> I removed them, by adding 'bool _destruct' to my class, which is normally
> false, but set to true in the desructor. If _destrcut == true, i ignore
> signal_switch_page.
>
> Thanks, Antonio
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]