Hi, Robert, On Fri, Apr 8, 2011 at 1:11 PM, Robert Pearce <[email protected]> wrote: > On Fri, 8 Apr 2011, Igor Korot <[email protected]> wrote : >> >> And the first time I am using this function is in this code: > >> > >> data1 = gtk_label_new( NULL ); > >> gtk_label_set_markup( GTK_LABEL( data1 ), m_data1->str ); > >> g_free( m_data1->str ); > > ^^^^^^^^^^^^^^^^^^^^^^^^ > Really? What is m_data1? Your earlier extract suggests you reuse it after > this.
By doing g_free() I'm giving anownership of the markup string to the control. Or I don't need this? Thank you. >> >> gtk_table_attach( GTK_TABLE( table ), data1, 0, 1, 1, 2, GTK_EXPAND, > >> GTK_EXPAND, 0, 0 ); > >> gtk_widget_show( data1 ); > > > -- > Rob Pearce http://www.bdt-home.demon.co.uk > > The contents of | All power corrupts, but we need electricity. > this message are | > purely my opinion. | > Don't believe a | > word. | > _______________________________________________ > gtk-list mailing list > [email protected] > http://mail.gnome.org/mailman/listinfo/gtk-list > _______________________________________________ gtk-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtk-list
