[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
RE: Questions
- From: "Chris Jones" <chris black-sun co uk>
- To: <gtk-app-devel-list redhat com>
- Subject: RE: Questions
- Date: Fri, 13 Aug 1999 03:42:17 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
> Use gtk_container_add(), not
gtk_scrolled_window_add_with_viewport().
Thanks, that fixed it (although I do think that the logic behind this
step is at least mildly odd!)
> > how can I get each window running independantly? (Could it be done
by
> > fork()ing?)
>
> There are several approaches:
>
> - periodically during the loop, do:
Not really an option (which is a shame as it's definitely the
easiest!) as the loop does DNS lookups and other potentially long
operations that could make the main interface quite unresponsive)
> - fork, use a separate process to run the loop, communicate back
This sounds like the most sensible option. Is it safe to fork() within
a callback?
> - threads; this is the hardest to do properly, so avoid the
complexity
> unless you are sure you need it.
I think that might be going a bit ott for this project.
> > 4) How can I save the sizes of gadgets so they will be the same
next
>
> You might try getting the size of the left widget
> (widget->allocation.width) and basing the paned's handle position on
this.
Is this the kind of thing that will still work in a few months time
when someone decides to overhaul some of the widget internals? I don't
really want people moaning at me in a few months/years time because
the app does some funky things with the widgets after they upgrade!
Thanks for your help,
- ---
Chris Jones
Black-Sun Software
chris@black-sun.co.uk
www.black-sun.co.uk
"Linux is beating Windows" - David Cole, Microsoft Executive
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.5.3i for non-commercial use <http://www.pgpi.com>
iQA/AwUBN7OGCJhmBipjerS3EQInfwCg/v02PPoJqcNHBWOLSHSZpd/gbCgAoKky
fkZbjFlccVsHQBBwCRb/JZao
=MhHK
-----END PGP SIGNATURE-----
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]