Re: need pointers for working with custom Gtk widgets ...
- From: "Sameer Sahasrabuddhe" <sameerds gmail com>
- To: "discussions about usage and development of dia" <dia-list gnome org>
- Subject: Re: need pointers for working with custom Gtk widgets ...
- Date: Fri, 2 Feb 2007 15:40:28 +0530
On 2/1/07, Lars Clausen <lars raeder dk> wrote:
> 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.
Yay! I'm happy to hear this.
Cool! Please do take a look at the patch I have posted on the bug
report ... would welcome comments about the changes I have proposed
for the function "property_signal_handler()" ...
The standard appears to be that the _new() functions return a GtkWidget
that you then cast back, see http://gtk.org/tutorial/x2202.html --
though not all standard Gtk widgets follow this, though there may be a
reason behind that.
This seems to be exactly what I was looking for. Will get into the
details over the weekend. But I also had another thought --- is it
worth creating a "correct" custom gtk widget? We could instead just
allow the custom widget constructors to directly connect relevant
signals!
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]