// -*- c++ -*-
//  Generated by gtkmmproc from ./../menubar.gen_h -- DO NOT MODIFY!
#include <gtk--/menubar.h>
#include <gtk--/private/menubar_p.h>
namespace Gtk {
Gtk::MenuBar *wrap (GtkMenuBar *o)
  {
    return static_cast<Gtk::MenuBar *> (Gtk::wrap_auto ((GtkObject *) (o)));
  }
}

namespace Gtk {
MenuBar_Class MenuBar::menu_bar_class = {0};

Object* MenuBar_Class::wrap_new(GtkObject* o)
  {
    Object* cpp=manage(new MenuBar((GtkMenuBar*)(o)));
    return cpp;
  }

bool MenuBar::isA( Object *checkcast)
  {
    return GTK_IS_MENU_BAR(checkcast->gtkobj());
  }

GtkType MenuBar::get_type()
  {
    return menu_bar_class.get_type();
  }

GtkType MenuBar_Class::get_type()
  {
    if (!type)
      {
        CppClassParent::CppObjectType::get_type();
        GtkTypeInfo info =
          {
            "Gtk__MenuBar",
            sizeof(BaseObjectType),
            sizeof(BaseClassType),
            (GtkClassInitFunc) class_init_function,
            (GtkObjectInitFunc) object_init_function,
            /* reserved_1 */ NULL,
            /* reserved_2 */ NULL,
            /*base_class_init_func */ (GtkClassInitFunc) NULL
          };
        type=gtk_type_unique(gtk_menu_bar_get_type(), &info);
      }
    return type;
  }

const char* const MenuBar::signal_names[]={
   0};

void MenuBar::initialize_class()
  {

  }

void MenuBar_Class::class_init_function(GtkMenuBarClass *klass)
  {
    CppClassParent::class_init_function((BaseClassParent*)klass);
  }

void MenuBar_Class::object_init_function(GtkMenuBar *)
  {}

}

Gtk::MenuBar::MenuBar()
  :     Gtk::MenuShell((GtkMenuShell*)(gtk_object_new(get_type(),0)))
  {
    initialize_class();
  }

Gtk::MenuBar::MenuBar(GtkMenuBar *castitem)
  :     Gtk::MenuShell((GtkMenuShell*)(castitem))
  {
    initialize_class();
  }

Gtk::MenuBar::~MenuBar() { destroy_(); }

void Gtk::MenuBar::set_shadow_type(GtkShadowType type)
  {
    gtk_menu_bar_set_shadow_type(gtkobj(),type);
  }
