RE: GtkLabel question



> 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]