Re: GtkTextBuffer, insert_text



I think he did this already, although he's still using
GTK_SIGNAL_FUNC instead of G_CALLBACK.

----- Original Message -----
From: "Ayose" <zubzet yahoo es>
To: "Mohammed Sameer" <uniball gmx net>
Cc: <gtk-app-devel-list gnome org>
Sent: Saturday, July 20, 2002 8:27 AM
Subject: 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
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




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