Install ardour as a binary, a script and a set of shared
[ardour.git] / libs / gtkmm2 / gtk / gtkmm / tearoffmenuitem.cc
1 // Generated by gtkmmproc -- DO NOT MODIFY!
2
3 #include <gtkmm/tearoffmenuitem.h>
4 #include <gtkmm/private/tearoffmenuitem_p.h>
5
6 // -*- c++ -*-
7 /* $Id$ */
8
9 /* 
10  *
11  * Copyright 1998-2002 The gtkmm Development Team
12  *
13  * This library is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU Library General Public
15  * License as published by the Free Software Foundation; either
16  * version 2 of the License, or (at your option) any later version.
17  *
18  * This library is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21  * Library General Public License for more details.
22  *
23  * You should have received a copy of the GNU Library General Public
24  * License along with this library; if not, write to the Free
25  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26  */
27
28 #include <gtk/gtktearoffmenuitem.h>
29
30 namespace Gtk
31 {
32
33 bool TearoffMenuItem::is_torn_off() const
34 {
35   return gobj()->torn_off;
36 }
37
38 } /* namespace Gtk */
39
40 namespace
41 {
42 } // anonymous namespace
43
44
45 namespace Glib
46 {
47
48 Gtk::TearoffMenuItem* wrap(GtkTearoffMenuItem* object, bool take_copy)
49 {
50   return dynamic_cast<Gtk::TearoffMenuItem *> (Glib::wrap_auto ((GObject*)(object), take_copy));
51 }
52
53 } /* namespace Glib */
54
55 namespace Gtk
56 {
57
58
59 /* The *_Class implementation: */
60
61 const Glib::Class& TearoffMenuItem_Class::init()
62 {
63   if(!gtype_) // create the GType if necessary
64   {
65     // Glib::Class has to know the class init function to clone custom types.
66     class_init_func_ = &TearoffMenuItem_Class::class_init_function;
67
68     // This is actually just optimized away, apparently with no harm.
69     // Make sure that the parent type has been created.
70     //CppClassParent::CppObjectType::get_type();
71
72     // Create the wrapper type, with the same class/instance size as the base type.
73     register_derived_type(gtk_tearoff_menu_item_get_type());
74
75     // Add derived versions of interfaces, if the C type implements any interfaces:
76   }
77
78   return *this;
79 }
80
81 void TearoffMenuItem_Class::class_init_function(void* g_class, void* class_data)
82 {
83   BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
84   CppClassParent::class_init_function(klass, class_data);
85
86 }
87
88
89 Glib::ObjectBase* TearoffMenuItem_Class::wrap_new(GObject* o)
90 {
91   return manage(new TearoffMenuItem((GtkTearoffMenuItem*)(o)));
92
93 }
94
95
96 /* The implementation: */
97
98 TearoffMenuItem::TearoffMenuItem(const Glib::ConstructParams& construct_params)
99 :
100   Gtk::MenuItem(construct_params)
101 {
102   }
103
104 TearoffMenuItem::TearoffMenuItem(GtkTearoffMenuItem* castitem)
105 :
106   Gtk::MenuItem((GtkMenuItem*)(castitem))
107 {
108   }
109
110 TearoffMenuItem::~TearoffMenuItem()
111 {
112   destroy_();
113 }
114
115 TearoffMenuItem::CppClassType TearoffMenuItem::tearoffmenuitem_class_; // initialize static member
116
117 GType TearoffMenuItem::get_type()
118 {
119   return tearoffmenuitem_class_.init().get_type();
120 }
121
122 GType TearoffMenuItem::get_base_type()
123 {
124   return gtk_tearoff_menu_item_get_type();
125 }
126
127
128 TearoffMenuItem::TearoffMenuItem()
129 :
130   Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
131   Gtk::MenuItem(Glib::ConstructParams(tearoffmenuitem_class_.init()))
132 {
133   }
134
135
136 } // namespace Gtk
137
138