1 // Generated by gtkmmproc -- DO NOT MODIFY!
4 #include <gtkmm/recentchooserdialog.h>
5 #include <gtkmm/private/recentchooserdialog_p.h>
7 /* Copyright 2006 The gtkmm Development Team
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.
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.
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.
24 #include <gtk/gtkrecentchooserdialog.h>
30 RecentChooserDialog::RecentChooserDialog(Gtk::Window& parent, const Glib::ustring& title)
32 // Mark this class as non-derived to allow C++ vfuncs to be skipped.
34 Gtk::Dialog(Glib::ConstructParams(recentchooserdialog_class_.init(), "title",title.c_str(), static_cast<char*>(0)))
36 set_transient_for(parent);
39 RecentChooserDialog::RecentChooserDialog(const Glib::ustring& title)
41 // Mark this class as non-derived to allow C++ vfuncs to be skipped.
43 Gtk::Dialog(Glib::ConstructParams(recentchooserdialog_class_.init(), "title",title.c_str(), static_cast<char*>(0)))
47 RecentChooserDialog::RecentChooserDialog(const Glib::ustring& title, const Glib::RefPtr<RecentManager>& recent_manager)
49 // Mark this class as non-derived to allow C++ vfuncs to be skipped.
51 Gtk::Dialog(Glib::ConstructParams(recentchooserdialog_class_.init(), "title",title.c_str(),"recent-manager",recent_manager->gobj(), static_cast<char*>(0)))
55 RecentChooserDialog::RecentChooserDialog(Gtk::Window& parent, const Glib::ustring& title, const Glib::RefPtr<RecentManager>& recent_manager)
57 // Mark this class as non-derived to allow C++ vfuncs to be skipped.
59 Gtk::Dialog(Glib::ConstructParams(recentchooserdialog_class_.init(), "title",title.c_str(),"recent-manager",recent_manager->gobj(), static_cast<char*>(0)))
61 set_transient_for(parent);
69 } // anonymous namespace
75 Gtk::RecentChooserDialog* wrap(GtkRecentChooserDialog* object, bool take_copy)
77 return dynamic_cast<Gtk::RecentChooserDialog *> (Glib::wrap_auto ((GObject*)(object), take_copy));
80 } /* namespace Glib */
86 /* The *_Class implementation: */
88 const Glib::Class& RecentChooserDialog_Class::init()
90 if(!gtype_) // create the GType if necessary
92 // Glib::Class has to know the class init function to clone custom types.
93 class_init_func_ = &RecentChooserDialog_Class::class_init_function;
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();
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());
102 // Add derived versions of interfaces, if the C type implements any interfaces:
103 RecentChooser::add_interface(get_type());
109 void RecentChooserDialog_Class::class_init_function(void* g_class, void* class_data)
111 BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
112 CppClassParent::class_init_function(klass, class_data);
114 #ifdef GLIBMM_VFUNCS_ENABLED
115 #endif //GLIBMM_VFUNCS_ENABLED
117 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
118 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
121 #ifdef GLIBMM_VFUNCS_ENABLED
122 #endif //GLIBMM_VFUNCS_ENABLED
124 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
125 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
128 Glib::ObjectBase* RecentChooserDialog_Class::wrap_new(GObject* o)
130 return new RecentChooserDialog((GtkRecentChooserDialog*)(o)); //top-level windows can not be manage()ed.
135 /* The implementation: */
137 RecentChooserDialog::RecentChooserDialog(const Glib::ConstructParams& construct_params)
139 Gtk::Dialog(construct_params)
143 RecentChooserDialog::RecentChooserDialog(GtkRecentChooserDialog* castitem)
145 Gtk::Dialog((GtkDialog*)(castitem))
149 RecentChooserDialog::~RecentChooserDialog()
154 RecentChooserDialog::CppClassType RecentChooserDialog::recentchooserdialog_class_; // initialize static member
156 GType RecentChooserDialog::get_type()
158 return recentchooserdialog_class_.init().get_type();
161 GType RecentChooserDialog::get_base_type()
163 return gtk_recent_chooser_dialog_get_type();
167 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
168 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
170 #ifdef GLIBMM_VFUNCS_ENABLED
171 #endif //GLIBMM_VFUNCS_ENABLED