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