Here is a minimal example of a program, where if i click the button, a
pop up window appears. I am posting both the call back function and the
main routine (table.c).
I am facing 2 problem.
1) The problem is evry time I click the button "main", a new window
appears(obviously). What I want to achive is, if the window is already
present, it should not open again; rather it should focus that window. I
believe, this can be achived by gtk_window_present(may be I am wrong).
But I don't know how to use it.
2) In the callback function, I have C_1 and C_2. What I want to achive
is C<sub>1</sub> etc via pango(or any other).
I am not a C programmer. And this is my *first* GTK as well.
So, I am posting both the code. I will be grateful if anybody take some
time to suggest me how to get things done.
Regards and Best,