Re: Probelm with status bar....



Anish Chandran wrote:

hi..

   i created a status bar and i got an error like this can any one trace
the problem.....

Gtk-CRITICAL **: file gtkstatusbar.c: line 207 (gtk_statusbar_push):
assertion `context_id > 0' failed.
Hello,
How do you call gtk_statusbar_push() ? You should call gtk_statusbar_get_context_id() to obtain the id handle for your message:
http://developer.gnome.org/doc/API/gtk/GtkStatusbar.html#gtk-statusbar-push
http://developer.gnome.org/doc/API/gtk/GtkStatusbar.html#gtk-statusbar-get-context-id

Also take a look at "statusbar" example coming with GTK+ sources.

   Olexiy




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