Re: Best practise inheritance
- From: "S. Jacobi" <sjacobi mailueberfall de>
- Cc: "gtk-app-devel-." <gtk-app-devel-list gnome org>
- Subject: Re: Best practise inheritance
- Date: Mon, 20 Mar 2017 18:29:00 +0100
On Mon, 20 Mar 2017 18:10:16 +0100
Joël Krähemann <jkraehemann gmail com> wrote:
Hi
As Tristan told you. The struct contains the other struct as not using
a pointer.
struct MyCompositeWidget
{
GtkAlignment alignment;
GtkBox *box;
};
The parent-is-a-pointer mistake was just me not thinking when I wrote
the mail. If have seen it being done correctly everywhere. This makes
gtk_widget_set_name (myWidget->parent, "myWidget"); syntactically wrong
however.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]