Add stuff missing from yesterday's library commit.
[ardour.git] / libs / gtkmm2 / gtk / gtkmm / recentchooserdialog.cc
1 // Generated by gtkmmproc -- DO NOT MODIFY!
2
3
4 #include <gtkmm/recentchooserdialog.h>
5 #include <gtkmm/private/recentchooserdialog_p.h>
6
7 /* Copyright 2006 The gtkmm Development Team
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Library General Public
11  * License as published by the Free Software Foundation; either
12  * version 2 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  * Library General Public License for more details.
18  *
19  * You should have received a copy of the GNU Library General Public
20  * License along with this library; if not, write to the Free
21  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22  */
23
24 #include <gtk/gtkrecentchooserdialog.h>
25
26
27 namespace Gtk
28 {
29
30 RecentChooserDialog::RecentChooserDialog(Gtk::Window& parent, const Glib::ustring& title)
31 :
32   Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
33   Gtk::Dialog(Glib::ConstructParams(recentchooserdialog_class_.init(), "title",title.c_str(), (char*) 0))
34 {
35   set_transient_for(parent);
36 }
37
38 RecentChooserDialog::RecentChooserDialog(const Glib::ustring& title)
39 :
40   Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
41   Gtk::Dialog(Glib::ConstructParams(recentchooserdialog_class_.init(), "title",title.c_str(), (char*) 0))
42 {
43 }
44
45 RecentChooserDialog::RecentChooserDialog(const Glib::ustring& title, const Glib::RefPtr<RecentManager>& recent_manager)
46 :
47   Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
48   Gtk::Dialog(Glib::ConstructParams(recentchooserdialog_class_.init(), "title",title.c_str(),"recent-manager",recent_manager->gobj(), (char*) 0))
49 {
50 }
51
52 RecentChooserDialog::RecentChooserDialog(Gtk::Window& parent, const Glib::ustring& title, const Glib::RefPtr<RecentManager>& recent_manager)
53 :
54   Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
55   Gtk::Dialog(Glib::ConstructParams(recentchooserdialog_class_.init(), "title",title.c_str(),"recent-manager",recent_manager->gobj(), (char*) 0))
56 {
57   set_transient_for(parent);
58 }
59
60 } // namespace Gtk
61
62
63 namespace
64 {
65 } // anonymous namespace
66
67
68 namespace Glib
69 {
70
71 Gtk::RecentChooserDialog* wrap(GtkRecentChooserDialog* object, bool take_copy)
72 {
73   return dynamic_cast<Gtk::RecentChooserDialog *> (Glib::wrap_auto ((GObject*)(object), take_copy));
74 }
75
76 } /* namespace Glib */
77
78 namespace Gtk
79 {
80
81
82 /* The *_Class implementation: */
83
84 const Glib::Class& RecentChooserDialog_Class::init()
85 {
86   if(!gtype_) // create the GType if necessary
87   {
88     // Glib::Class has to know the class init function to clone custom types.
89     class_init_func_ = &RecentChooserDialog_Class::class_init_function;
90
91     // This is actually just optimized away, apparently with no harm.
92     // Make sure that the parent type has been created.
93     //CppClassParent::CppObjectType::get_type();
94
95     // Create the wrapper type, with the same class/instance size as the base type.
96     register_derived_type(gtk_recent_chooser_dialog_get_type());
97
98     // Add derived versions of interfaces, if the C type implements any interfaces:
99   RecentChooser::add_interface(get_type());
100   }
101
102   return *this;
103 }
104
105 void RecentChooserDialog_Class::class_init_function(void* g_class, void* class_data)
106 {
107   BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
108   CppClassParent::class_init_function(klass, class_data);
109
110 #ifdef GLIBMM_VFUNCS_ENABLED
111 #endif //GLIBMM_VFUNCS_ENABLED
112
113 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
114 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
115 }
116
117 #ifdef GLIBMM_VFUNCS_ENABLED
118 #endif //GLIBMM_VFUNCS_ENABLED
119
120 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
121 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
122
123
124 Glib::ObjectBase* RecentChooserDialog_Class::wrap_new(GObject* o)
125 {
126   return new RecentChooserDialog((GtkRecentChooserDialog*)(o)); //top-level windows can not be manage()ed.
127
128 }
129
130
131 /* The implementation: */
132
133 RecentChooserDialog::RecentChooserDialog(const Glib::ConstructParams& construct_params)
134 :
135   Gtk::Dialog(construct_params)
136 {
137   }
138
139 RecentChooserDialog::RecentChooserDialog(GtkRecentChooserDialog* castitem)
140 :
141   Gtk::Dialog((GtkDialog*)(castitem))
142 {
143   }
144
145 RecentChooserDialog::~RecentChooserDialog()
146 {
147   destroy_();
148 }
149
150 RecentChooserDialog::CppClassType RecentChooserDialog::recentchooserdialog_class_; // initialize static member
151
152 GType RecentChooserDialog::get_type()
153 {
154   return recentchooserdialog_class_.init().get_type();
155 }
156
157 GType RecentChooserDialog::get_base_type()
158 {
159   return gtk_recent_chooser_dialog_get_type();
160 }
161
162
163 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
164 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
165
166 #ifdef GLIBMM_VFUNCS_ENABLED
167 #endif //GLIBMM_VFUNCS_ENABLED
168
169
170 } // namespace Gtk
171
172