Re: About gtk_label_set_text()



Antonio Martínez Álvarez wrote:

Hello list:

I'm trying to write a simple application. One button with label "1", and
every time the user do a click on it, the label must increase the label
by one. 1 --> 2 --> 3 etc...

I have found that I only can use a const string
(gtk_label_set_text(label, "anything") but no way to do what I say. How
can I do that.

make a atoi (ascii to integer) conversation in your callback or store
the number that is shown in the label seperatly (the easier way).

warm regards ...
clemens




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