Re: New 'GObject' as base for GtkObject?



Tim Janik <timj@gtk.org> writes:

> i don't know how you handle GtkItemFactoryEntry in C++,

We don't. GtkItemFactory has been removed from Gtk-- in favor of a
better API for Gtk_MenuItem.

> C++ is actually the one language that should have the least headaches
> with the provided C interfaces.

There are two problems cause by such structures as
GtkItemFactoryEntry:

- They are used in arrays, we'd rather have vectors (though that's not 
  such a big deal - lists are more problematic).

- as I pointed out earlier, they assume the callback can only be a
  function pointer. So what happens is that we have to make the signal
  connection once the widget is created, which isn't an always easy
  process.

-- 
					Guillaume.
					http://www.worldnet.fr/~glaurent



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]