[glade--]initialising variables and widgets



Hello to everybody.
I will try to explain my problem and I beg your pardon
if the quaestion sounds silly.
Originally I have written a code in c++, then I
decided to give it a GUI. So I used GTK+ and GTK+extra
libraries.
Everything works fine. 
After I decided to try glade-2 (glade2-2.0.0-3mdk)
and generate code in C++ (to learn more than for a
real need).
The difference is that my original software has
different  
"#include files" at the main.cc files where I define
global variables etc.. In the "main" function then I
initialise the variables creates the GTK widget  and 
set the text of some GTK widget text entry on the base
of an external file.

I compile main.cc only (which in turns include all the
headers).


Now, with glade, it creates project1.cc, window1.cc
window1.hh window_glade1.cc window_glade1.hh
and it compiles in seuqence project1, window1,
window1_glade.cc to then link them together with
libtool.

What happens is that I do not know how to initialise
my global variable and GTK entry text any more as
if I include the variable #include variable.h" in
project1.cc only, the make process does not see them
compiling window1.cc. If I include #variables.h in
window1.cc I cannot initialise them readinf the
external file as window1.cc includes only functions
linked to the widgets.

Shall I ignore the glade makefile and include
everything from project1.cc and compile only that?
Or?

I hope this is not too silly or confused.
Thank you in advance,
Andrea

__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/



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