how to get one character from GtkTextView widget
- From: gepolv <sssssiqn gmail com>
- To: gtk-app-devel-list gnome org
- Subject: how to get one character from GtkTextView widget
- Date: Thu, 16 Mar 2006 22:17:49 +0800
I connect signal "insert-text" with funciton "deal_insert" ,and then i want
to get one character every time from the GtkTextView widget
in funciton "deal_insert".
how can i do it?
the source code:
GtkWidget *text_view;
text_view = gtk_text_view_new ();
GtkTextBuffer *mainbuffer;
mainbuffer=gtk_text_view_get_buffer (GTK_TEXT_VIEW (text_view));
g_signal_connect (G_OBJECT (mainbuffer), "insert-text",
G_CALLBACK (deal_insert), &mainbuffer);
Thanking .....who
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]