Install ardour as a binary, a script and a set of shared
[ardour.git] / libs / gtkmm2 / gtk / gtkmm / filechooserwidget.cc
1 // Generated by gtkmmproc -- DO NOT MODIFY!
2
3 #include <gtkmm/filechooserwidget.h>
4 #include <gtkmm/private/filechooserwidget_p.h>
5
6 // -*- c++ -*-
7 /* $Id$ */
8
9 /*
10  *
11  * Copyright 1998-2002 The gtkmm Development Team
12  *
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.
17  *
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.
22  *
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.
26  */
27
28 #include <gtk/gtkfilechooserwidget.h>
29
30 namespace Gtk
31 {
32
33
34 } // namespace Gtk
35
36
37 namespace
38 {
39 } // anonymous namespace
40
41
42 namespace Glib
43 {
44
45 Gtk::FileChooserWidget* wrap(GtkFileChooserWidget* object, bool take_copy)
46 {
47   return dynamic_cast<Gtk::FileChooserWidget *> (Glib::wrap_auto ((GObject*)(object), take_copy));
48 }
49
50 } /* namespace Glib */
51
52 namespace Gtk
53 {
54
55
56 /* The *_Class implementation: */
57
58 const Glib::Class& FileChooserWidget_Class::init()
59 {
60   if(!gtype_) // create the GType if necessary
61   {
62     // Glib::Class has to know the class init function to clone custom types.
63     class_init_func_ = &FileChooserWidget_Class::class_init_function;
64
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();
68
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());
71
72     // Add derived versions of interfaces, if the C type implements any interfaces:
73   FileChooser::add_interface(get_type());
74   }
75
76   return *this;
77 }
78
79 void FileChooserWidget_Class::class_init_function(void* g_class, void* class_data)
80 {
81   BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
82   CppClassParent::class_init_function(klass, class_data);
83
84 }
85
86
87 Glib::ObjectBase* FileChooserWidget_Class::wrap_new(GObject* o)
88 {
89   return manage(new FileChooserWidget((GtkFileChooserWidget*)(o)));
90
91 }
92
93
94 /* The implementation: */
95
96 FileChooserWidget::FileChooserWidget(const Glib::ConstructParams& construct_params)
97 :
98   Gtk::VBox(construct_params)
99 {
100   }
101
102 FileChooserWidget::FileChooserWidget(GtkFileChooserWidget* castitem)
103 :
104   Gtk::VBox((GtkVBox*)(castitem))
105 {
106   }
107
108 FileChooserWidget::~FileChooserWidget()
109 {
110   destroy_();
111 }
112
113 FileChooserWidget::CppClassType FileChooserWidget::filechooserwidget_class_; // initialize static member
114
115 GType FileChooserWidget::get_type()
116 {
117   return filechooserwidget_class_.init().get_type();
118 }
119
120 GType FileChooserWidget::get_base_type()
121 {
122   return gtk_file_chooser_widget_get_type();
123 }
124
125
126 FileChooserWidget::FileChooserWidget()
127 :
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()))
130 {
131   }
132
133 FileChooserWidget::FileChooserWidget(FileChooserAction action)
134 :
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))
137 {
138   }
139
140 FileChooserWidget::FileChooserWidget(FileChooserAction action, const Glib::ustring& backend)
141 :
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))
144 {
145   }
146
147
148 } // namespace Gtk
149
150