1 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #include <gtkmm/filechooserwidget.h>
4 #include <gtkmm/private/filechooserwidget_p.h>
11 * Copyright 1998-2002 The gtkmm Development Team
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.
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.
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.
28 #include <gtk/gtkfilechooserwidget.h>
39 } // anonymous namespace
45 Gtk::FileChooserWidget* wrap(GtkFileChooserWidget* object, bool take_copy)
47 return dynamic_cast<Gtk::FileChooserWidget *> (Glib::wrap_auto ((GObject*)(object), take_copy));
50 } /* namespace Glib */
56 /* The *_Class implementation: */
58 const Glib::Class& FileChooserWidget_Class::init()
60 if(!gtype_) // create the GType if necessary
62 // Glib::Class has to know the class init function to clone custom types.
63 class_init_func_ = &FileChooserWidget_Class::class_init_function;
65 // This is actually just optimized away, apparently with no harm.
66 // Make sure that the parent type has been created.
67 //CppClassParent::CppObjectType::get_type();
69 // Create the wrapper type, with the same class/instance size as the base type.
70 register_derived_type(gtk_file_chooser_widget_get_type());
72 // Add derived versions of interfaces, if the C type implements any interfaces:
73 FileChooser::add_interface(get_type());
79 void FileChooserWidget_Class::class_init_function(void* g_class, void* class_data)
81 BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
82 CppClassParent::class_init_function(klass, class_data);
87 Glib::ObjectBase* FileChooserWidget_Class::wrap_new(GObject* o)
89 return manage(new FileChooserWidget((GtkFileChooserWidget*)(o)));
94 /* The implementation: */
96 FileChooserWidget::FileChooserWidget(const Glib::ConstructParams& construct_params)
98 Gtk::VBox(construct_params)
102 FileChooserWidget::FileChooserWidget(GtkFileChooserWidget* castitem)
104 Gtk::VBox((GtkVBox*)(castitem))
108 FileChooserWidget::~FileChooserWidget()
113 FileChooserWidget::CppClassType FileChooserWidget::filechooserwidget_class_; // initialize static member
115 GType FileChooserWidget::get_type()
117 return filechooserwidget_class_.init().get_type();
120 GType FileChooserWidget::get_base_type()
122 return gtk_file_chooser_widget_get_type();
126 FileChooserWidget::FileChooserWidget()
128 Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
129 Gtk::VBox(Glib::ConstructParams(filechooserwidget_class_.init()))
133 FileChooserWidget::FileChooserWidget(FileChooserAction action)
135 Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
136 Gtk::VBox(Glib::ConstructParams(filechooserwidget_class_.init(), "action", ((GtkFileChooserAction)(action)), (char*) 0))
140 FileChooserWidget::FileChooserWidget(FileChooserAction action, const Glib::ustring& backend)
142 Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
143 Gtk::VBox(Glib::ConstructParams(filechooserwidget_class_.init(), "action", ((GtkFileChooserAction)(action)), "backend", backend.c_str(), (char*) 0))