On Fri, 2009-06-19 at 22:02 +0200, Sven Neumann wrote: > Hi, > > On Fri, 2009-06-19 at 10:29 +0100, Richard Hughes wrote: > > > It would be really great to wrap GCancellable in another object, in my > > case PkCancellable and add the extra functionality there. > > Unfortunately _GCancellable is private and not public, and thus can't > > be subclassed. I've attached a patch to make it public, and use a > > _GCancellablePrivate struct, which solves my problem nicely. > > Very nice. I have frequently hit the problem that objects in GTK+ and > GLib are hard, if not impossible, to subclass. +1 from me for your > patch. > > I'd also welcome if GCancellable and GInitable could be moved to > GObject. They are potentially useful outside GIO.
Why can't you not use them from GIO? GIO is a general library that has the same availability as gobject (ship in same tarball) and no significant extra cost (gtk+ links to it anyway). If you don't use the GVfs related stuff in libgio then gvfs won't be used. _______________________________________________ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list