gEDA-dev: Preview widget in File-Open (schem)

Peter Clifton pcjc2 at cam.ac.uk
Tue Jul 25 08:53:16 EDT 2006


On Tue, 2006-07-25 at 16:28 +0200, Patrick Bernaud wrote:
> Hi Peter,
> 
> Peter Clifton writes:
>  > [...]
>  > I just wanted to check if anyone was actively working on the preview
>  > widget for the GTK file-chooser file open dialog box.
> 
> I do have modified the preview to make a widget of it, ready for
> inclusion in the file selection and component selection dialogs.
> 
> It is not yet in the CVS, only in my working directory. See my last
> message for details on how to access my archive. Or download the
> source tarballs and give it a try:
>   http://www.chbcp.net/~pat/geda/libgeda-dev20060721.tar.gz
>   http://www.chbcp.net/~pat/geda/geda-gschem-dev20060721.tar.gz
> 


Looks like a good way to do things...

Do you have the preview functionality seperate as a patch? I'd like to
see such things get back into CVS, so I can continue my work in the
knowledge that its not going to cause major merging difficulties with
other people's development.

I'm working at the moment to try and split out the file-chooser code
from the component picker, (seperate files), and wanted to get the
preview widget into a state where it can work well for both uses. (I'm
intending to rework the component selector, but wanted to get it into a
seperate file in CVS before I proceede further).

Not being that experienced at programming GTK, I'd appreciate your
input.. what is the benefit of creating a complete new "preview" widget
as a subclass of GtkDrawingArea, as opposed to just instantiating a
GtkDrawingArea, and connecting up the signals to paint it as necessary?
Is that just good Gtk coding practice, or a requirement of the
file-chooser?

Regards

Peter Clifton




More information about the geda-dev mailing list