2008-02-29 Cosimo Cecchi <cosimoc@gnome.org>
[nautilus.git] / libnautilus-private / nautilus-open-with-dialog.h
blobbcea1dd87ca351bd39d1585e31b32fc336b67861
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
3 /*
4 nautilus-open-with-dialog.c: an open-with dialog
6 Copyright (C) 2004 Novell, Inc.
8 The Gnome Library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Library General Public License as
10 published by the Free Software Foundation; either version 2 of the
11 License, or (at your option) any later version.
13 The Gnome Library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Library General Public License for more details.
18 You should have received a copy of the GNU Library General Public
19 License along with the Gnome Library; see the file COPYING.LIB. If not,
20 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA.
23 Authors: Dave Camp <dave@novell.com>
26 #ifndef NAUTILUS_OPEN_WITH_DIALOG_H
27 #define NAUTILUS_OPEN_WITH_DIALOG_H
29 #include <gtk/gtkdialog.h>
30 #include <gio/gio.h>
32 #define NAUTILUS_TYPE_OPEN_WITH_DIALOG (nautilus_open_with_dialog_get_type ())
33 #define NAUTILUS_OPEN_WITH_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NAUTILUS_TYPE_OPEN_WITH_DIALOG, NautilusOpenWithDialog))
34 #define NAUTILUS_OPEN_WITH_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_OPEN_WITH_DIALOG, NautilusOpenWithDialogClass))
35 #define NAUTILUS_IS_OPEN_WITH_DIALOG(obj) (G_TYPE_INSTANCE_CHECK_TYPE ((obj), NAUTILUS_TYPE_OPEN_WITH_DIALOG)
37 typedef struct _NautilusOpenWithDialog NautilusOpenWithDialog;
38 typedef struct _NautilusOpenWithDialogClass NautilusOpenWithDialogClass;
39 typedef struct _NautilusOpenWithDialogDetails NautilusOpenWithDialogDetails;
41 struct _NautilusOpenWithDialog {
42 GtkDialog parent;
43 NautilusOpenWithDialogDetails *details;
46 struct _NautilusOpenWithDialogClass {
47 GtkDialogClass parent_class;
49 void (*application_selected) (NautilusOpenWithDialog *dialog,
50 GAppInfo *application);
53 GType nautilus_open_with_dialog_get_type (void);
54 GtkWidget* nautilus_open_with_dialog_new (const char *uri,
55 const char *mime_type,
56 const char *extension);
57 GtkWidget* nautilus_add_application_dialog_new (const char *uri,
58 const char *mime_type);
59 GtkWidget* nautilus_add_application_dialog_new_for_multiple_files (const char *extension,
60 const char *mime_type);
64 #endif /* NAUTILUS_OPEN_WITH_DIALOG_H */