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 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))
35 set_transient_for(parent);
38 RecentChooserDialog::RecentChooserDialog(const Glib::ustring& title)
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))
45 RecentChooserDialog::RecentChooserDialog(const Glib::ustring& title, const Glib::RefPtr<RecentManager>& recent_manager)
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))
52 RecentChooserDialog::RecentChooserDialog(Gtk::Window& parent, const Glib::ustring& title, const Glib::RefPtr<RecentManager>& recent_manager)
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))
57 set_transient_for(parent);
65 } // anonymous namespace
71 Gtk::RecentChooserDialog* wrap(GtkRecentChooserDialog* object, bool take_copy)
73 return dynamic_cast<Gtk::RecentChooserDialog *> (Glib::wrap_auto ((GObject*)(object), take_copy));
76 } /* namespace Glib */
82 /* The *_Class implementation: */
84 const Glib::Class& RecentChooserDialog_Class::init()
86 if(!gtype_) // create the GType if necessary
88 // Glib::Class has to know the class init function to clone custom types.
89 class_init_func_ = &RecentChooserDialog_Class::class_init_function;
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();
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());
98 // Add derived versions of interfaces, if the C type implements any interfaces:
99 RecentChooser::add_interface(get_type());
105 void RecentChooserDialog_Class::class_init_function(void* g_class, void* class_data)
107 BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
108 CppClassParent::class_init_function(klass, class_data);
110 #ifdef GLIBMM_VFUNCS_ENABLED
111 #endif //GLIBMM_VFUNCS_ENABLED
113 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
114 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
117 #ifdef GLIBMM_VFUNCS_ENABLED
118 #endif //GLIBMM_VFUNCS_ENABLED
120 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
121 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
124 Glib::ObjectBase* RecentChooserDialog_Class::wrap_new(GObject* o)
126 return new RecentChooserDialog((GtkRecentChooserDialog*)(o)); //top-level windows can not be manage()ed.
131 /* The implementation: */
133 RecentChooserDialog::RecentChooserDialog(const Glib::ConstructParams& construct_params)
135 Gtk::Dialog(construct_params)
139 RecentChooserDialog::RecentChooserDialog(GtkRecentChooserDialog* castitem)
141 Gtk::Dialog((GtkDialog*)(castitem))
145 RecentChooserDialog::~RecentChooserDialog()
150 RecentChooserDialog::CppClassType RecentChooserDialog::recentchooserdialog_class_; // initialize static member
152 GType RecentChooserDialog::get_type()
154 return recentchooserdialog_class_.init().get_type();
157 GType RecentChooserDialog::get_base_type()
159 return gtk_recent_chooser_dialog_get_type();
163 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
164 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
166 #ifdef GLIBMM_VFUNCS_ENABLED
167 #endif //GLIBMM_VFUNCS_ENABLED