]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkfilechooserwidget.h
gtkfilechooserbutton: In tests, allow the possibility of doing unselect_all
[~andy/gtk] / gtk / gtkfilechooserwidget.h
index 2df7ded17fb5688e8a50c33f33696a8190ee4e8e..00b55cbd9368aacf371fe88471158a48df99e77f 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
 #ifndef __GTK_FILE_CHOOSER_WIDGET_H__
 #define __GTK_FILE_CHOOSER_WIDGET_H__
 
-#include "gtkfilechooser.h"
-#include <gtk/gtkvbox.h>
+#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
+#error "Only <gtk/gtk.h> can be included directly."
+#endif
+
+#include <gtk/gtkfilechooser.h>
+#include <gtk/gtkbox.h>
 
 G_BEGIN_DECLS
 
@@ -33,27 +35,31 @@ G_BEGIN_DECLS
 #define GTK_IS_FILE_CHOOSER_WIDGET_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FILE_CHOOSER_WIDGET))
 #define GTK_FILE_CHOOSER_WIDGET_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FILE_CHOOSER_WIDGET, GtkFileChooserWidgetClass))
 
-typedef struct _GtkFileChooserWidget      GtkFileChooserWidget;
-typedef struct _GtkFileChooserWidgetClass GtkFileChooserWidgetClass;
-
+typedef struct _GtkFileChooserWidget        GtkFileChooserWidget;
 typedef struct _GtkFileChooserWidgetPrivate GtkFileChooserWidgetPrivate;
+typedef struct _GtkFileChooserWidgetClass   GtkFileChooserWidgetClass;
 
-struct _GtkFileChooserWidgetClass
+struct _GtkFileChooserWidget
 {
-  GtkVBoxClass parent_class;
+  GtkBox parent_instance;
+
+  GtkFileChooserWidgetPrivate *priv;
 };
 
-struct _GtkFileChooserWidget
+struct _GtkFileChooserWidgetClass
 {
-  GtkVBox parent_instance;
+  GtkBoxClass parent_class;
 
-  GtkFileChooserWidgetPrivate *priv;
+  /* Padding for future expansion */
+  void (*_gtk_reserved1) (void);
+  void (*_gtk_reserved2) (void);
+  void (*_gtk_reserved3) (void);
+  void (*_gtk_reserved4) (void);
 };
 
 GType      gtk_file_chooser_widget_get_type         (void) G_GNUC_CONST;
 GtkWidget *gtk_file_chooser_widget_new              (GtkFileChooserAction  action);
-GtkWidget *gtk_file_chooser_widget_new_with_backend (GtkFileChooserAction  action,
-                                                    const gchar          *backend);
+
 G_END_DECLS
 
 #endif /* __GTK_FILE_CHOOSER_WIDGET_H__ */