Thanks for your help, new code works now. Regarding the documentation, I must say that it is sometimes extremly difficult to browse, with no search ability on http://developer.gnome.org web site. Thanks again, Miroslav Rajcic ----- Original Message ----- From: "David Necas (Yeti)" <yeti@xxxxxxxxxxxxxxx> To: "Miroslav Rajcic" <rajcic@xxxxxxxxxxx> Cc: <gtk-list@xxxxxxxxx> Sent: Tuesday, August 24, 2004 9:52 AM Subject: Re: Problems with "changed" signal on GtkTextBuffer(Win32) > > On execution console is opened with warnings below, and callback is never > > called back on buffer changes: > > > > GLib-GObject-WARNING **: invalid cast from 'GtkTextBuffer' to 'GtkObject' > > Gtk-CRITICAL **: file gtksignal.c: line 144 (gtk_signal_connect_full): > > assertion 'GTK_IS_OBJECT (object)' failed > > > > Anyone has a clue what might be wrong here ? > > You are using *long* deprecated gtk_signal_connect(), > use g_signal_connect() instead (have you read the doc?) > > GtkTextBuffer is not a GtkObject, it's a only GObject > (have you read the doc?) > > Then, it will be unnecessary to cast g_signal_connect() > argument to anything as it takes a gpointer. > > Yeti _______________________________________________ gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list