Re: FW: Question About Creating Composite Widget Template
- From: Tristan Van Berkom <tvb gnome org>
- To: Tristian Celestin <tristian celestin outlook com>
- Cc: "gtk-app-devel-list gnome org" <gtk-app-devel-list gnome org>
- Subject: Re: FW: Question About Creating Composite Widget Template
- Date: Fri, 25 Oct 2013 05:08:34 +0200
On Fri, Oct 25, 2013 at 3:47 AM, Tristian Celestin
<tristian celestin outlook com> wrote:
I created a composite widget template with Glade, and now I am binding all the children in the composite
widget template to private data members in my class. When I bind one particular member, box1, I get a
segfault in gtk_widget_is_toplevel (widget=0x837b60) at gtkwidget.c:8474.
If I don't bind box1, the application starts. Why would binding this child cause a segfault even though it
is GtkWidget, defined in channel_list.ui?
This looks like a good reason to crash:
struct _HRChannelList
{
/*< private >*/
GtkContainer container; /* <-- oops ! not big enough for a GtkBox ... */
HRChannelListPrivate *priv;
};
struct _HRChannelListClass
{
GtkBoxClass parent_class;
};
Cheers,
-Tristan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]