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, see <http://www.gnu.org/licenses/>.
19 #ifndef __GTK_FILE_CHOOSER_EMBED_H__
20 #define __GTK_FILE_CHOOSER_EMBED_H__
22 #include <gtk/gtkwidget.h>
26 #define GTK_TYPE_FILE_CHOOSER_EMBED (_gtk_file_chooser_embed_get_type ())
27 #define GTK_FILE_CHOOSER_EMBED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FILE_CHOOSER_EMBED, GtkFileChooserEmbed))
28 #define GTK_IS_FILE_CHOOSER_EMBED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FILE_CHOOSER_EMBED))
29 #define GTK_FILE_CHOOSER_EMBED_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_FILE_CHOOSER_EMBED, GtkFileChooserEmbedIface))
31 typedef struct _GtkFileChooserEmbed GtkFileChooserEmbed;
32 typedef struct _GtkFileChooserEmbedIface GtkFileChooserEmbedIface;
35 struct _GtkFileChooserEmbedIface
37 GTypeInterface base_iface;
41 void (*get_default_size) (GtkFileChooserEmbed *chooser_embed,
43 gint *default_height);
45 gboolean (*should_respond) (GtkFileChooserEmbed *chooser_embed);
47 void (*initial_focus) (GtkFileChooserEmbed *chooser_embed);
50 void (*default_size_changed) (GtkFileChooserEmbed *chooser_embed);
51 void (*response_requested) (GtkFileChooserEmbed *chooser_embed);
54 GType _gtk_file_chooser_embed_get_type (void) G_GNUC_CONST;
56 void _gtk_file_chooser_embed_get_default_size (GtkFileChooserEmbed *chooser_embed,
58 gint *default_height);
59 gboolean _gtk_file_chooser_embed_should_respond (GtkFileChooserEmbed *chooser_embed);
61 void _gtk_file_chooser_embed_initial_focus (GtkFileChooserEmbed *chooser_embed);
63 void _gtk_file_chooser_embed_delegate_iface_init (GtkFileChooserEmbedIface *iface);
64 void _gtk_file_chooser_embed_set_delegate (GtkFileChooserEmbed *receiver,
65 GtkFileChooserEmbed *delegate);
69 #endif /* __GTK_FILE_CHOOSER_EMBED_H__ */