Merged revisions 6293,6296-6306,6308 via svnmerge from
[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   // Mark this class as non-derived to allow C++ vfuncs to be skipped.
33   Glib::ObjectBase(0),
34   Gtk::Dialog(Glib::ConstructParams(recentchooserdialog_class_.init(), "title",title.c_str(), static_cast<char*>(0)))
35 {
36   set_transient_for(parent);
37 }
38
39 RecentChooserDialog::RecentChooserDialog(const Glib::ustring& title)
40 :
41   // Mark this class as non-derived to allow C++ vfuncs to be skipped.
42   Glib::ObjectBase(0),
43   Gtk::Dialog(Glib::ConstructParams(recentchooserdialog_class_.init(), "title",title.c_str(), static_cast<char*>(0)))
44 {
45 }
46
47 RecentChooserDialog::RecentChooserDialog(const Glib::ustring& title, const Glib::RefPtr<RecentManager>& recent_manager)
48 :
49   // Mark this class as non-derived to allow C++ vfuncs to be skipped.
50   Glib::ObjectBase(0),
51   Gtk::Dialog(Glib::ConstructParams(recentchooserdialog_class_.init(), "title",title.c_str(),"recent-manager",recent_manager->gobj(), static_cast<char*>(0)))
52 {
53 }
54
55 RecentChooserDialog::RecentChooserDialog(Gtk::Window& parent, const Glib::ustring& title, const Glib::RefPtr<RecentManager>& recent_manager)
56 :
57   // Mark this class as non-derived to allow C++ vfuncs to be skipped.
58   Glib::ObjectBase(0),
59   Gtk::Dialog(Glib::ConstructParams(recentchooserdialog_class_.init(), "title",title.c_str(),"recent-manager",recent_manager->gobj(), static_cast<char*>(0)))
60 {
61   set_transient_for(parent);
62 }
63
64 } // namespace Gtk
65
66
67 namespace
68 {
69 } // anonymous namespace
70
71
72 namespace Glib
73 {
74
75 Gtk::RecentChooserDialog* wrap(GtkRecentChooserDialog* object, bool take_copy)
76 {
77   return dynamic_cast<Gtk::RecentChooserDialog *> (Glib::wrap_auto ((GObject*)(object), take_copy));
78 }
79
80 } /* namespace Glib */
81
82 namespace Gtk
83 {
84
85
86 /* The *_Class implementation: */
87
88 const Glib::Class& RecentChooserDialog_Class::init()
89 {
90   if(!gtype_) // create the GType if necessary
91   {
92     // Glib::Class has to know the class init function to clone custom types.
93     class_init_func_ = &RecentChooserDialog_Class::class_init_function;
94
95     // This is actually just optimized away, apparently with no harm.
96     // Make sure that the parent type has been created.
97     //CppClassParent::CppObjectType::get_type();
98
99     // Create the wrapper type, with the same class/instance size as the base type.
100     register_derived_type(gtk_recent_chooser_dialog_get_type());
101
102     // Add derived versions of interfaces, if the C type implements any interfaces:
103   RecentChooser::add_interface(get_type());
104   }
105
106   return *this;
107 }
108
109 void RecentChooserDialog_Class::class_init_function(void* g_class, void* class_data)
110 {
111   BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
112   CppClassParent::class_init_function(klass, class_data);
113
114 #ifdef GLIBMM_VFUNCS_ENABLED
115 #endif //GLIBMM_VFUNCS_ENABLED
116
117 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
118 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
119 }
120
121 #ifdef GLIBMM_VFUNCS_ENABLED
122 #endif //GLIBMM_VFUNCS_ENABLED
123
124 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
125 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
126
127
128 Glib::ObjectBase* RecentChooserDialog_Class::wrap_new(GObject* o)
129 {
130   return new RecentChooserDialog((GtkRecentChooserDialog*)(o)); //top-level windows can not be manage()ed.
131
132 }
133
134
135 /* The implementation: */
136
137 RecentChooserDialog::RecentChooserDialog(const Glib::ConstructParams& construct_params)
138 :
139   Gtk::Dialog(construct_params)
140 {
141   }
142
143 RecentChooserDialog::RecentChooserDialog(GtkRecentChooserDialog* castitem)
144 :
145   Gtk::Dialog((GtkDialog*)(castitem))
146 {
147   }
148
149 RecentChooserDialog::~RecentChooserDialog()
150 {
151   destroy_();
152 }
153
154 RecentChooserDialog::CppClassType RecentChooserDialog::recentchooserdialog_class_; // initialize static member
155
156 GType RecentChooserDialog::get_type()
157 {
158   return recentchooserdialog_class_.init().get_type();
159 }
160
161 GType RecentChooserDialog::get_base_type()
162 {
163   return gtk_recent_chooser_dialog_get_type();
164 }
165
166
167 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
168 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
169
170 #ifdef GLIBMM_VFUNCS_ENABLED
171 #endif //GLIBMM_VFUNCS_ENABLED
172
173
174 } // namespace Gtk
175
176