]> Pileus Git - ~andy/gtk/blob - gtk/gtkfilechooserembed.h
stylecontext: Do invalidation on first resize container
[~andy/gtk] / gtk / gtkfilechooserembed.h
1 /* GTK - The GIMP Toolkit
2  * gtkfilechooserembed.h: Abstract sizing interface for file selector implementations
3  * Copyright (C) 2004, Red Hat, Inc.
4  *
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.
9  *
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.
14  *
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/>.
17  */
18
19 #ifndef __GTK_FILE_CHOOSER_EMBED_H__
20 #define __GTK_FILE_CHOOSER_EMBED_H__
21
22 #include <gtk/gtkwidget.h>
23
24 G_BEGIN_DECLS
25
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))
30
31 typedef struct _GtkFileChooserEmbed      GtkFileChooserEmbed;
32 typedef struct _GtkFileChooserEmbedIface GtkFileChooserEmbedIface;
33
34
35 struct _GtkFileChooserEmbedIface
36 {
37   GTypeInterface base_iface;
38
39   /* Methods
40    */
41   void (*get_default_size)        (GtkFileChooserEmbed *chooser_embed,
42                                    gint                *default_width,
43                                    gint                *default_height);
44
45   gboolean (*should_respond)      (GtkFileChooserEmbed *chooser_embed);
46
47   void (*initial_focus)           (GtkFileChooserEmbed *chooser_embed);
48   /* Signals
49    */
50   void (*default_size_changed)    (GtkFileChooserEmbed *chooser_embed);
51   void (*response_requested)      (GtkFileChooserEmbed *chooser_embed);
52 };
53
54 GType _gtk_file_chooser_embed_get_type (void) G_GNUC_CONST;
55
56 void  _gtk_file_chooser_embed_get_default_size    (GtkFileChooserEmbed *chooser_embed,
57                                                    gint                *default_width,
58                                                    gint                *default_height);
59 gboolean _gtk_file_chooser_embed_should_respond (GtkFileChooserEmbed *chooser_embed);
60
61 void _gtk_file_chooser_embed_initial_focus (GtkFileChooserEmbed *chooser_embed);
62
63 void _gtk_file_chooser_embed_delegate_iface_init  (GtkFileChooserEmbedIface *iface);
64 void _gtk_file_chooser_embed_set_delegate         (GtkFileChooserEmbed *receiver,
65                                                    GtkFileChooserEmbed *delegate);
66
67 G_END_DECLS
68
69 #endif /* __GTK_FILE_CHOOSER_EMBED_H__ */