Sorry for the late reply. I would like to give the following suggestions to improve
the glade.
- As someone else suggested (I forgot the name), it would be nice, to split glade into
the
form-designer and a separate glade-to-C translator, that can be called from inside
the designer
or by itself on the commandline.
- The lookup_widget function should accept a full 'pathname', like:
ok_button = lookup_widget(toplevel, "dialog1.vbox1.*.ok_button")
- Putting each top-level window in a separate file widgetname.[ch] - as discussed -
would be good.
The callbacks should (as default) also go into this file and get flaged static. As
it's sometimes
usefull to use the same callback for different widgets, there should be an option
'global', that puts
them into callback.[ch] as it's done now.
- It would be ***very nice*** to switch to a new file format - of course with a
backward compatibility
mode - that uses XML-attributes for the widget attributes. This format would be
more clear and
allow the creation of a DTD, that defines all allowed options and defines default
values for them.
- For callbacks I see to possible ways:
-- The callbacks, that are only inserted by now, should also be updated and deleted.
To prevent the
deletion of user supplied code, the callbacks should be
insert by something lilke
void on_button_clicked (GtkWidget *widget, gpointer user_data)
{
/* *** user supplied code start *** */
/* *** user supplied code end *** */
}
Everything between these start and end tags should never be changed/deleted.
-- The second way is to edit the code in an editor inside glade and always
delete/rewrite the whole file.
------
Gerhard
+---------------------------------------------------------------------+
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the line "unsubscribe glade-devel" in the body of the message.