Re: Can't process Gtk::Builder::get_widget errors



Hello,

On Tue, 21 Jul 2009 13:55:04 +0400
Саша Иваненко <kitovyj mail ru> wrote:

> I use Gtk::Builder to load UIs from glade-generated xml on win32(Visual Studio 9.0). 
> Problem is what if widget with a given name does not exist get_widget generates access violation system 
> exception, without any chance for me to catch it. All I can do is to check widget existence using gtk+ 
> native gtk_builder_get_object call before calling Builder::get_widget. As far as I understand the root of 
> the problem is what get_widget_checked internal call returns 0, and dynamic_cast from 0 throws AV instead 
> of casting to 0 ( or throwing bad_cast?). 
> 
> Is it Win32 specific problem? Ho do the get_widget is intended to behave in case of non-existent widget 
> name? I would appreciate any suggestions.

I think you are refering to the bug I reported a while ago:
http://bugzilla.gnome.org/show_bug.cgi?id=548022

It seems to have been renamed to "documentation" issue, which is incorrect.

Thanks,
Alexander


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]