Re: Alternative to swallow GtkContainer into GtkWidget
- From: "Jasper St. Pierre" <jstpierre mecheye net>
- To: gtk-devel-list <gtk-devel-list gnome org>
- Subject: Re: Alternative to swallow GtkContainer into GtkWidget
- Date: Tue, 2 Aug 2016 16:48:03 -0700
What you miss is that GtkWidget already has container-like behaviors with gtk_widget_set_parent. In fact, the whole API has been awkward. GtkWidgets themselves can have children. GtkContainer is a "convention" interface for a way of manipulating an object that can have children. Not every widget that has children has to implement GtkContainer (though there *are* some features that won't work automatically, like drawing of children, since gtkwidget.c often has checks for GTK_IS_CONTAINER).
It makes sense to me to merge these two APIs so we don't have this impedance mismatch.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]