a sequence to edit a text view...
- From: Joaquim Azevedo <jcan_slipknot yahoo com br>
- To: gtk-devel-list gnome org
- Subject: a sequence to edit a text view...
- Date: Thu, 18 Aug 2005 18:17:53 -0300 (ART)
I'm a begginer in GTK and I use glade to create a interface... but I
need to edit a text view. I set it editable but not happen... I think
is that a correct sequence...
A part of code:
char result[150];
int position;
GtkWidget *tb_result,
*top_level;
top_level = gtk_widget_get_toplevel( GTK_WIDGET( tb_result ) );
tb_result = lookup_widget( top_level, "tb_result" );
gtk_editable_set_editable( GTK_EDITABLE( tb_result ), TRUE );
position = gtk_editable_get_position( GTK_EDITABLE( tb_result ) );
gtk_editable_insert_text( GTK_EDITABLE( tb_result )
, result
, strlen( result )
, position );
_______________________________________________________
Yahoo! Acesso Grátis - Internet rápida e grátis.
Instale o discador agora! http://br.acesso.yahoo.com/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]