Re: GtkTextBuffer, insert_text



On Fri, Jul 19, 2002 at 02:28:51AM +0300, Mohammed Sameer wrote:
   Hi all
   i have a small problem

   i have a textbuffer

     contents = gtk_text_view_new ();
     buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (contents));
           /* Implementing undo/redo... */
   insert = g_signal_connect (GTK_OBJECT (buffer), "insert_text",
                           GTK_SIGNAL_FUNC (text_insert_cb), NULL);

I think this has to be

insert = g_signal_connect (G_OBJECT (buffer), "insert_text",
                            G_CALLBACK (text_insert_cb), NULL);

-- 
Ayose Cazorla León
Debian GNU/Linux - setepo



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