[Gtk-sharp-list] Possible improvements to gtk#
03 Jan 2003 21:25:55 -0600
On Fri, 2003-01-03 at 19:48, Miguel de Icaza wrote:
> I read the following comment on the GUI tool for the Mono coverage
> analysis tool, it seems like a nice starting point to add some
> customizations to Gtk#:
I'm not sure what you're referring to. Is there a URL where I could view
> // GTK# impressions:
> // - there are no convinience functions, like new FooWidget (parent)
Given Gtk+'s geometry management, I don't think (parent) would ever
work. But there are other convenience functions that could be written.
GLib.Value overloads come to mind.
> // - the generated sources are hard to read because the API functions ar=
> // mixed with internal functions, export directives etc.
> // - the app is slow to start up, slower than Qt#. Afterwards, it is fas=
Outside of combining everything into a single assembly, there's very
little that could be contributing to this in Gtk# (as opposed to Gtk+).
> // - the open file dialog requires 30 lines in Gtk#, and 2 lines in Qt#
> // (and it prints a lot of gtk warnings !)
> // - how to set a file name filter in FileSelection(Dialog)
I would be wary of an entirely new API (since there will be a new
filesel, with filters, in Gtk+ 2.4), but it'd be easy to add a few
static methods that run the fileselector internally:
public static bool GetFileName (out filename, FileMode mode);
public static bool GetFileName (out filename, FileMode mode, string
suggested, string extensions);
public static void GetFileNameAsync (FileCallback cb, FileMode mode);
public static void GetFileNameAsync (FileCallback cb, FileMode mode,
string suggested, string extensions);
> I think point #2 could be fixed by doing a:
> #region Auto-generated code.
> #region Customized extensions
> As well as having the documentation in place (Duncan and myself have a
> few tools to help this happen).
What tools did you have in mind? I have some ideas as how to merge in
gtk-doc sources, but I'd like to hear what you've thought up.
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)
-----END PGP SIGNATURE-----