RE: gtk_editable_insert_text
- From: Esteban Quijano <Esteban Quijano artinsoft com>
- To: gtk-list gnome org
- Subject: RE: gtk_editable_insert_text
- Date: Wed, 5 Dec 2001 14:34:32 -0600
I suggest you to use string functions from glib,
String Utility Functions:
http://developer.gnome.org/doc/API/glib/glib-string-utility-functions.html
Strings:
http://developer.gnome.org/doc/API/glib/glib-strings.html
or String Chunks:
http://developer.gnome.org/doc/API/glib/glib-string-chunks.html
Avoid using string.h functions because you cannot guarantee that gchar is
the same as char
Esteban Quijano.
Artinsoft corp.
> -----Original Message-----
> From: Lourdes Maldonado [mailto:maldonado ibiquity com]
> Sent: Wednesday, December 05, 2001 2:29 PM
> To: Gtk-List (E-mail)
> Subject: gtk_editable_insert_text
>
>
>
> Can I free the memory sent to gtk_editable_insert_text?
>
> gchar *messageString = (gchar *) g_malloc(10);
> gint textPosition;
>
> strcpy(messageString,"test");
>
> gtk_editable_insert_text(editable, messageString,
> strlen(messageString),
> &textPosition);
>
> Thanks,
>
> Lourdes T. Maldonado
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]