GtkBuilder bug?

2008-02-27 Thread Pavel Syomin
Hi, all! I had been experimenting with GtkBuilder using Gtk+ 2.12.5 from Fedora 8. I have found, that if there is reference to unknown type in UI-file, then application crashes. Is it a GtkBuilder bug? Test program: #include gint main(gint argc, gchar **argv) { GtkBuilder *builder

Re: GtkBuilder bug?

2008-02-27 Thread Mike Massonnet
On Wed, Feb 27, 2008 at 12:04:10PM +0300, Pavel Syomin wrote: > Hi, all! > > I had been experimenting with GtkBuilder using Gtk+ 2.12.5 from Fedora > 8. I have found, that if there is reference to unknown type in UI-file, > then application crashes. Is it a GtkBuilder bug? &g

Re: GtkBuilder bug?

2008-02-27 Thread Pavel Syomin
there is reference to unknown type in UI-file, >> then application crashes. Is it a GtkBuilder bug? >> >> Test program: >> #include >> >> gint main(gint argc, gchar **argv) >> { >> GtkBuilder *builder; >> >> gtk_init(&

Re: GtkBuilder bug?

2008-02-27 Thread Brian J. Tarricone
Pavel Syomin wrote: > Hi, all! > > I had been experimenting with GtkBuilder using Gtk+ 2.12.5 from Fedora > 8. I have found, that if there is reference to unknown type in UI-file, > then application crashes. Is it a GtkBuilder bug? > > Test program: [snip] > >

Re: GtkBuilder bug?

2008-02-27 Thread Mikkel Kamstrup Erlandsen
gt; > then application crashes. Is it a GtkBuilder bug? > > > > Test program: > > [snip] > > > > > Gtk-ERROR **: Invalid type: Unknown > > aborting... > > Segmentation fault > > > I'm guessing that's intentional. g_error() causes the prog

Re: GtkBuilder bug?

2008-02-27 Thread Ross Burton
On Wed, 2008-02-27 at 22:32 +0100, Mikkel Kamstrup Erlandsen wrote: > Hmmm. This sounds like a very narrow minded decision to me. I have > been planning to write write a framework where one can send GtkBuilder > XML snippets to a DBus service and have that service embed this as out > of process plu

Re: GtkBuilder bug?

2008-02-27 Thread Emmanuele Bassi
On Wed, 2008-02-27 at 22:20 +, Ross Burton wrote: > On Wed, 2008-02-27 at 22:32 +0100, Mikkel Kamstrup Erlandsen wrote: > > Hmmm. This sounds like a very narrow minded decision to me. I have > > been planning to write write a framework where one can send GtkBuilder > > XML snippets to a DBus s

Re: GtkBuilder bug?

2008-02-27 Thread Yevgen Muntyan
ve found, that if there is reference to unknown type in UI- > file, > > then application crashes. Is it a GtkBuilder bug? > > > > Test program: > > [snip] > > > > > Gtk-ERROR **: Invalid type: Unknown > > aborting... > > Segmentation fault > >

Re: GtkBuilder bug?

2008-02-27 Thread Yevgen Muntyan
On Feb 27, 2008, at 16:31 , Emmanuele Bassi wrote: > > On Wed, 2008-02-27 at 22:20 +, Ross Burton wrote: >> On Wed, 2008-02-27 at 22:32 +0100, Mikkel Kamstrup Erlandsen wrote: >>> Hmmm. This sounds like a very narrow minded decision to me. I have >>> been planning to write write a framework w

Re: GtkBuilder bug?

2008-02-27 Thread Peter Clifton
On Wed, 2008-02-27 at 17:38 -0600, Yevgen Muntyan wrote: > On Feb 27, 2008, at 16:31 , Emmanuele Bassi wrote: > > > > > On Wed, 2008-02-27 at 22:20 +, Ross Burton wrote: > >> On Wed, 2008-02-27 at 22:32 +0100, Mikkel Kamstrup Erlandsen wrote: > >>> Hmmm. This sounds like a very narrow minded

Re: GtkBuilder bug?

2008-02-27 Thread Tristan Van Berkom
On Wed, Feb 27, 2008 at 8:58 PM, Peter Clifton <[EMAIL PROTECTED]> wrote: > > It can be user-data... I've experimented with using libglade to add > user-defined widgets to a schematic editor's canvas, and a crash / abort > is NOT what we want when the user hand-edits the XML and makes a > mistake.

Re: GtkBuilder bug?

2008-02-27 Thread Pavel Syomin
I have added a record into bugzilla - 519199. ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Re: GtkBuilder bug?

2008-02-27 Thread Andrew Cowie
On Wed, 2008-02-27 at 22:20 +, Ross Burton wrote: > I don't believe that any data passed to a library should result in a > fatal warning, surely a GError return would be a far better option here. Isn't GError for conditions that can be reported to the *user*, and that said user can do somethin

Re: GtkBuilder bug?

2008-02-28 Thread Emmanuele Bassi
no need to Cc me: I'm subscribed to the list. On Wed, 2008-02-27 at 17:38 -0600, Yevgen Muntyan wrote: > >> I don't believe that any data passed to a library should result in a > >> fatal warning, surely a GError return would be a far better option > >> here. > > > > this is data building your

Re: GtkBuilder bug?

2008-02-28 Thread Murray Cumming
On Thu, 2008-02-28 at 18:56 +1100, Andrew Cowie wrote: > On Wed, 2008-02-27 at 22:20 +, Ross Burton wrote: > > I don't believe that any data passed to a library should result in a > > fatal warning, surely a GError return would be a far better option here. > > Isn't GError for conditions that

Re: GtkBuilder bug?

2008-02-28 Thread Yevgen Muntyan
Emmanuele Bassi wrote: > no need to Cc me: I'm subscribed to the list. > > On Wed, 2008-02-27 at 17:38 -0600, Yevgen Muntyan wrote: > > I don't believe that any data passed to a library should result in a fatal warning, surely a GError return would be a far better option here. >