Ricardo Kohler Costa wrote:
> I have a little problem and I'm sure someone can help me.
>
> I am trying to insert a text from a entry in a text(box), but I have to
> say the lenght of the text to be inserted. How can I get it???
>
> Problem:
> void on_btn_Ok_pressed (GtkButton *button, gpointer user_data)
> {
> char *texto;
>
> entry1 = GTK_ENTRY(lookup_widget((button),"entry1"));
> text1 = GTK_TEXT(lookup_widget((button),"box_Nome"));
>
> texto = (gtk_entry_get_text(entry1));
> gtk_text_insert(text1,NULL,NULL,NULL,texto, ????????????);
> gtk_entry_set_text(entry1,"");
>
> }
>
strlen( testo );
man strlen
>
> Thanks I apreciate your help and time.
>
--
{*} Roberto A. Foglietta
<> \./Z/ ______________________________________
<><> | e-mail : mailto:[EMAIL PROTECTED]
~~~~~~~~~~ homepage: http://digilander.iol.it/robang
DDNNNDMNIF linuxgrp: http://www.fisica.unige.it/linuxgrp
+---------------------------------------------------------------------+
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the line "unsubscribe glade-devel" in the body of the message.