]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkfilechooserdialog.h
filechooserbutton: Add tests for unselect_all()
[~andy/gtk] / gtk / gtkfilechooserdialog.h
index 0e19fe4a9af96a6ad48c42d260619559c6cb244c..6ce77e8828ef65057036ecc1bb740a97233177c0 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_DIALOG_H__
 #define __GTK_FILE_CHOOSER_DIALOG_H__
 
+#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
+#error "Only <gtk/gtk.h> can be included directly."
+#endif
+
 #include <gtk/gtkdialog.h>
-#include "gtkfilechooser.h"
+#include <gtk/gtkfilechooser.h>
 
 G_BEGIN_DECLS
 
@@ -33,15 +35,9 @@ G_BEGIN_DECLS
 #define GTK_IS_FILE_CHOOSER_DIALOG_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FILE_CHOOSER_DIALOG))
 #define GTK_FILE_CHOOSER_DIALOG_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FILE_CHOOSER_DIALOG, GtkFileChooserDialogClass))
 
-typedef struct _GtkFileChooserDialog      GtkFileChooserDialog;
-typedef struct _GtkFileChooserDialogClass GtkFileChooserDialogClass;
-
+typedef struct _GtkFileChooserDialog        GtkFileChooserDialog;
 typedef struct _GtkFileChooserDialogPrivate GtkFileChooserDialogPrivate;
-
-struct _GtkFileChooserDialogClass
-{
-  GtkDialogClass parent_class;
-};
+typedef struct _GtkFileChooserDialogClass   GtkFileChooserDialogClass;
 
 struct _GtkFileChooserDialog
 {
@@ -50,12 +46,23 @@ struct _GtkFileChooserDialog
   GtkFileChooserDialogPrivate *priv;
 };
 
-GType      gtk_file_chooser_dialog_get_type (void);
-GtkWidget *gtk_file_chooser_dialog_new      (const gchar         *title,
-                                            GtkWindow           *parent,
-                                            GtkFileChooserAction action,
-                                            const gchar         *first_button_text,
-                                            ...);
+struct _GtkFileChooserDialogClass
+{
+  GtkDialogClass parent_class;
+
+  /* Padding for future expansion */
+  void (*_gtk_reserved1) (void);
+  void (*_gtk_reserved2) (void);
+  void (*_gtk_reserved3) (void);
+  void (*_gtk_reserved4) (void);
+};
+
+GType      gtk_file_chooser_dialog_get_type         (void) G_GNUC_CONST;
+GtkWidget *gtk_file_chooser_dialog_new              (const gchar          *title,
+                                                    GtkWindow            *parent,
+                                                    GtkFileChooserAction  action,
+                                                    const gchar          *first_button_text,
+                                                    ...) G_GNUC_NULL_TERMINATED;
 
 G_END_DECLS