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

Re: Strange warning when adding gtk_status_bar to gtk_hbox



Just for those who are interested: I finally managed to get rid of the
warning by issuing
gtk_statusbar_set_has_resize_grip(GTK_STATUSBAR(_status_bar), false)
before adding the status bar to the hbox. The resize grip did not make
any sense anyways (just didn't know this was a property) and
apparently it could not find the window it was attached to.

Best regards,
              Torsten


On Jan 28, 2008 5:02 PM, Torsten Reuss <torsten reuss gmail com> wrote:
> Thanks for the reply, Mikael.
>
> On Jan 28, 2008 3:13 PM, Mikael Hallendal <micke imendio com> wrote:
> >
> > > I'm in the process of porting an application from GTK 1.2 to GTK
> > > 2.12. One
> > > thing I can't get behind is a warning I am getting concerning a
> > > gtk_status_bar widget. The warning:
> > >
> > > Gdk-CRITICAL **: gdk_window_set_cursor: assertion `GDK_IS_WINDOW
> > > (window)'
> > > failed
> >
> > It looks odd that that the code you pasted will give this warning and
> > it sounds like it's actually coming from some other part.
>
> I thought the saem, but I verified by debugging and by printing out
> output before and after this line, that it is in fact this line.
>
> > Just one thing I noticed though (not sure if it is just here or if you
> > actually pasted code) is that you leak a GtkStatusBar.
>
> In the actual code _status_bar is a member variable of the dialog
> class, so the status bar is not leaked. I just pasted minimum code
> here in hope that this warning rings a bell for someone, as too me it
> really makes very little sense.
>
> Thanks and regards,
>                                   Torsten
>


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