Re: How many times can I call gtk_label_set_markup()?



On Fri, 8 Apr 2011, Igor Korot <ikorot01 gmail com> 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.
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.               |


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]