1 /* GTK - The GIMP Toolkit
2 * gtkfilechooserembed.h: Abstract sizing interface for file selector implementations
3 * Copyright (C) 2004, Red Hat, Inc.
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
21 #ifndef __GTK_FILE_CHOOSER_EMBED_H__
22 #define __GTK_FILE_CHOOSER_EMBED_H__
24 #include <gtk/gtkwidget.h>
28 #define GTK_TYPE_FILE_CHOOSER_EMBED (_gtk_file_chooser_embed_get_type ())
29 #define GTK_FILE_CHOOSER_EMBED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FILE_CHOOSER_EMBED, GtkFileChooserEmbed))
30 #define GTK_IS_FILE_CHOOSER_EMBED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FILE_CHOOSER_EMBED))
31 #define GTK_FILE_CHOOSER_EMBED_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_FILE_CHOOSER_EMBED, GtkFileChooserEmbedIface))
33 typedef struct _GtkFileChooserEmbed GtkFileChooserEmbed;
34 typedef struct _GtkFileChooserEmbedIface GtkFileChooserEmbedIface;
37 struct _GtkFileChooserEmbedIface
39 GTypeInterface base_iface;
43 void (*get_default_size) (GtkFileChooserEmbed *chooser_embed,
45 gint *default_height);
46 void (*get_resizable_hints) (GtkFileChooserEmbed *chooser_embed,
47 gboolean *resize_horizontally,
48 gboolean *resize_vertically);
50 gboolean (*should_respond) (GtkFileChooserEmbed *chooser_embed);
52 void (*initial_focus) (GtkFileChooserEmbed *chooser_embed);
55 void (*default_size_changed) (GtkFileChooserEmbed *chooser_embed);
58 GType _gtk_file_chooser_embed_get_type (void);
60 void _gtk_file_chooser_embed_get_default_size (GtkFileChooserEmbed *chooser_embed,
62 gint *default_height);
63 void _gtk_file_chooser_embed_get_resizable_hints (GtkFileChooserEmbed *chooser_embed,
64 gboolean *resize_horizontally,
65 gboolean *resize_vertically);
67 gboolean _gtk_file_chooser_embed_should_respond (GtkFileChooserEmbed *chooser_embed);
69 void _gtk_file_chooser_embed_initial_focus (GtkFileChooserEmbed *chooser_embed);
71 void _gtk_file_chooser_embed_delegate_iface_init (GtkFileChooserEmbedIface *iface);
72 void _gtk_file_chooser_embed_set_delegate (GtkFileChooserEmbed *receiver,
73 GtkFileChooserEmbed *delegate);
77 #endif /* __GTK_FILE_CHOOSER_EMBED_H__ */