[Anjuta-list] RE: [Glade-users] Glade rewritting source files question



Carl,
The quick solution to what you want to do is to rename your widgets in
Glade, blow away your interface and callbacks files and build again.
instead of actually putting your code for your callbacks in callbacks.c put
the code in a custom file such as utilities.c and put funtion pointers in
callbacks.c.  Yeah, this gets more involved if you have a ton of
modifications in your interface.c file, but for the most part making your
custom code modular and simply including it in the files that Glade writes
for you will make your life easier.

Shane

-----Original Message-----
From: Carl B. Constantine [mailto:duckwing duckwing ca]
Sent: Tuesday, October 15, 2002 12:04 PM
To: glade-users ximian com; anjuta-list lists sourceforge net
Subject: [Glade-users] Glade rewritting source files question


In Glade, when you save the project and "build" the source, it adds to
the interface.c and callbacks.c files. If I create a window with some
widgets, build the tree and later go back and rename a couple widgets
instead of using the generic widget1 type names and then save and build,
Glad once again *adds* to the interface.c and callbacks.c files. It
would be really nice if Glade renamed the appropriate routines in those
files.

I don't know how doable this is, but it would be nice. Then I don't have
to delete signal code and interface code out of these files all the
time. It's really kind of annoying.

-- 
 .''`.      Carl B. Constantine
: :' :     duckwing duckwing ca
`. `'    GnuPG: 135F FC30 7A02 B0EB 61DB  34E3 3AF1 DC6C 9F7A 3FF8
  `-  Debian GNU/Linux -- The power of freedom

_______________________________________________
Glade-users maillist  -  Glade-users ximian com
http://lists.ximian.com/mailman/listinfo/glade-users




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