Re: Questions on Gtk::Notebook



On Wed, 2005-07-20 at 03:21 +0200, Antonio Coralles wrote:
> Murray Cumming wrote:
> 
> > 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.
> 
> Did you mean a testcase for the above glibmm warning, or for the fact
> the signal_switch_page is emited on destruction ?

For the warning. It's obviously very strange and wrong.

>  Because the problem
> with my code was, that i connected a function to signal_switch_page, which
> modified the contens of the page which should be displayed, which isn't
> the best to do on destruction ...
> 
> However, because i've allready written it, here is an complete example,
> which shows clearly, that signal_switch_page is emited (total_pages -
> selected_page) times on destruction, if selected_page starts with 1.
> 
> 
> _______________________________________________
> 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]