Install ardour as a binary, a script and a set of shared
[ardour.git] / libs / gtkmm2 / gtk / gtkmm / separatormenuitem.cc
1 // Generated by gtkmmproc -- DO NOT MODIFY!
2
3 #include <gtkmm/separatormenuitem.h>
4 #include <gtkmm/private/separatormenuitem_p.h>
5
6 // -*- c++ -*-
7 /* $Id$ */
8
9 /* 
10  *
11  * Copyright 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/gtkseparatormenuitem.h>
29
30
31 namespace
32 {
33 } // anonymous namespace
34
35
36 namespace Glib
37 {
38
39 Gtk::SeparatorMenuItem* wrap(GtkSeparatorMenuItem* object, bool take_copy)
40 {
41   return dynamic_cast<Gtk::SeparatorMenuItem *> (Glib::wrap_auto ((GObject*)(object), take_copy));
42 }
43
44 } /* namespace Glib */
45
46 namespace Gtk
47 {
48
49
50 /* The *_Class implementation: */
51
52 const Glib::Class& SeparatorMenuItem_Class::init()
53 {
54   if(!gtype_) // create the GType if necessary
55   {
56     // Glib::Class has to know the class init function to clone custom types.
57     class_init_func_ = &SeparatorMenuItem_Class::class_init_function;
58
59     // This is actually just optimized away, apparently with no harm.
60     // Make sure that the parent type has been created.
61     //CppClassParent::CppObjectType::get_type();
62
63     // Create the wrapper type, with the same class/instance size as the base type.
64     register_derived_type(gtk_separator_menu_item_get_type());
65
66     // Add derived versions of interfaces, if the C type implements any interfaces:
67   }
68
69   return *this;
70 }
71
72 void SeparatorMenuItem_Class::class_init_function(void* g_class, void* class_data)
73 {
74   BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
75   CppClassParent::class_init_function(klass, class_data);
76
77 }
78
79
80 Glib::ObjectBase* SeparatorMenuItem_Class::wrap_new(GObject* o)
81 {
82   return manage(new SeparatorMenuItem((GtkSeparatorMenuItem*)(o)));
83
84 }
85
86
87 /* The implementation: */
88
89 SeparatorMenuItem::SeparatorMenuItem(const Glib::ConstructParams& construct_params)
90 :
91   Gtk::MenuItem(construct_params)
92 {
93   }
94
95 SeparatorMenuItem::SeparatorMenuItem(GtkSeparatorMenuItem* castitem)
96 :
97   Gtk::MenuItem((GtkMenuItem*)(castitem))
98 {
99   }
100
101 SeparatorMenuItem::~SeparatorMenuItem()
102 {
103   destroy_();
104 }
105
106 SeparatorMenuItem::CppClassType SeparatorMenuItem::separatormenuitem_class_; // initialize static member
107
108 GType SeparatorMenuItem::get_type()
109 {
110   return separatormenuitem_class_.init().get_type();
111 }
112
113 GType SeparatorMenuItem::get_base_type()
114 {
115   return gtk_separator_menu_item_get_type();
116 }
117
118
119 SeparatorMenuItem::SeparatorMenuItem()
120 :
121   Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
122   Gtk::MenuItem(Glib::ConstructParams(separatormenuitem_class_.init()))
123 {
124   }
125
126
127 } // namespace Gtk
128
129