need pointers for working with custom Gtk widgets ...



Hello,

I have been working on bug 60331 ("Object properties should handle
multiple objects")

http://bugzilla.gnome.org/show_bug.cgi?id=60331

... the basic idea is to make the properties dialog keep track of
which properties have been changed by the user. In order for this to
work, every widget in the dialog needs to register the default
signal_handler for suitable signals.

But the problem is lib/prop_attrs.c ... for custom widgets, it is
difficult to decide which signals need to be connected. For example,
linestyleprop_get_widget() creates a custom widget called
DiaLineStyleSelector, using the function dia_line_style_creator_new().
The pointer returned by this function is for a GtkWidget. Can this be
cast back into DiaLineStyleSelector? Or even better, can a pointer to
the custom widget be returned instead of a generic GtkWidget* ? How
does one do this in Gtk?

Sameer.
--
Research Scholar, KReSIT, IIT Bombay
http://www.it.iitb.ac.in/~sameerds/



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