1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
3 /* nautilus-program-choosing.h - functions for selecting and activating
4 programs for opening/viewing particular files.
6 Copyright (C) 2000 Eazel, 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 Author: John Sullivan <sullivan@eazel.com>
26 #ifndef NAUTILUS_PROGRAM_CHOOSING_H
27 #define NAUTILUS_PROGRAM_CHOOSING_H
29 #include <gtk/gtkwindow.h>
31 #include <libnautilus-private/nautilus-file.h>
33 typedef void (*NautilusApplicationChoiceCallback
) (GAppInfo
*application
,
34 gpointer callback_data
);
36 void nautilus_launch_application (GAppInfo
*application
,
38 GtkWindow
*parent_window
);
39 void nautilus_launch_application_from_command (GdkScreen
*screen
,
41 const char *command_string
,
42 const char *parameter
,
43 gboolean use_terminal
);
44 void nautilus_launch_desktop_file (GdkScreen
*screen
,
45 const char *desktop_file_uri
,
46 const GList
*parameter_uris
,
47 GtkWindow
*parent_window
);
49 #endif /* NAUTILUS_PROGRAM_CHOOSING_H */