Re: libglademm & derived widgets: "typedef struct GtkHBox Gtk::HBox::BaseObjectType' is inaccessible"
- From: Murray Cumming <murrayc murrayc com>
- To: John Spray <spray lyx org>
- Cc: gtkmm-list gnome org
- Subject: Re: libglademm & derived widgets: "typedef struct GtkHBox Gtk::HBox::BaseObjectType' is inaccessible"
- Date: Sun, 22 Jan 2006 16:22:43 +0100
On Sun, 2006-01-22 at 12:22 +0000, John Spray wrote:
> Hello,
>
> I'm trying to use a derived type (from Gtk::HBox) in a libglademm
> interface. However, for the line where I call get_widget_derived on the
> xml object, I get an error like:
>
> GTabular.C:77: instantiated from here
> /home/jcs116/.local/include/gtkmm-2.4/gtkmm/box.h:498: error: 'typedef
> struct GtkHBox Gtk::HBox::BaseObjectType' is inaccessible
> /home/jcs116/.local/include/libglademm-2.4/libglademm/xml.h:236: error:
> within this context
>
> My derived type is defined at file scope, and is defined as:
>
> class GtkLengthEntry : Gtk::HBox {
By default, in C++, inheritance is private (or protected. I forget), not
public. Try
class GtkLengthEntry : public Gtk::HBox {
[snip]
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]