Re: PROPOSAL: revise GLib message system



On 7 Aug 1998, Raja R Harinath wrote:

> Tim Janik <timj@gtk.org> writes:
> > i'll start out with an overview of the current API:
> [snip]
> > [new proposal] 
> > > ** Gtk+-WARNING: unable to register exit function
> > > 
> > > ** Gdk-WARNING: shmget failed!
> > > 
> > > ** GLib-WARNING: trying to realloc freed memory
> > 
> > while g_warning ("Test Warning"); on the application level still produces:
> > >
> > > ** WARNING **: Test Warning
> > 
> > the same applies to g_message and g_error statements.
> > for things like the gimp, it doesn't actually make much sense to popup
> > a warning window if something below te gimp level is screwed.
> > imagine this warning window contains a GtkPixmap widget with a NULL
> > pixmap, this will cause a new warning window to popup and so on, until
> > the xserver crashes because of window overflow (i had that happening
> > some time ago, actually).
> 
> Doesn't it make more sense to fix gimp to reuse/append to an existing
> warning window.  

that would blow up the windows dimensions pretty fast. the actuall problem
goes much beyond this. a generic interface for usefull warnings and
assertements definitely needs to support logging levels and/or domains.

> 
> - Hari
> -- 
> Raja R Harinath ------------------------------ harinath@cs.umn.edu

---
ciaoTJ



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