RE: GtkLabel question
- From: Murray Cumming Comneon com
- To: lucas lunix com ar, hp redhat com
- Cc: gnome-devel-list gnome org
- Subject: RE: GtkLabel question
- Date: Mon, 19 May 2003 17:48:28 +0200
> From: Lucas Di Pentima [mailto:lucas lunix com ar]
> gtk_label_set_text(label, g_strdup_printf("%d", i));
> - ------------------------------------------------------------
>
> If gtk_label_set_text() copies the string, isn't the string generated
> with g_strdup_printf() freed automatically?
No. Why would GtkLabel copy your string and then delete the original?
Memory management, particularly of strings, is simpler in C++ - you might
try gtkmm.
Murray Cumming
murrayc usa net
www.murrayc.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]