[Glade-users] custom properties stored in glade xml file

Neil Zanella Neil Zanella <nzanella@gmail.com>
Tue, 14 Dec 2004 03:11:39 -0700


Hello,

I thought of the following idea. Wouldn't it be nice if the user could
store custom
properties in glade XML files via the glade interface as in:

  <property name="isjoeswidget" value="yes"/>
   ...

so each widget could have zero or more properties associated with it of the form
above with user specified values for name and value.

Then those attributes could be retrieved via the glade API, and we could execute
conditional code as the widget are retrieved smoothly based on
attributes stored in
user properties. This would really eliminate the burden of having to
duplicate widget
names in the code.

Feedback welcome,

Neil