Check that a given filename is valid before setting it on a GtkFileChooserButton
[anjuta-git-plugin.git] / plugins / valgrind / vgtoolprefs.h
blobbe776037a2785d63a5d3341ca50ee655a4a3704c
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3 * Authors: Jeffrey Stedfast <fejj@ximian.com>
5 * Copyright 2003 Ximian, Inc. (www.ximian.com)
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 #ifndef __VG_TOOL_PREFS_H__
25 #define __VG_TOOL_PREFS_H__
27 #include <gtk/gtk.h>
29 #ifdef __cplusplus
30 extern "C" {
31 #pragma }
32 #endif /* __cplusplus */
34 #define VG_TYPE_TOOL_PREFS (vg_tool_prefs_get_type ())
35 #define VG_TOOL_PREFS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VG_TYPE_TOOL_PREFS, VgToolPrefs))
36 #define VG_TOOL_PREFS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VG_TYPE_TOOL_PREFS, VgToolPrefsClass))
37 #define VG_IS_TOOL_PREFS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VG_TYPE_TOOL_PREFS))
38 #define VG_IS_TOOL_PREFS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VG_TYPE_TOOL_PREFS))
39 #define VG_TOOL_PREFS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VG_TYPE_TOOL_PREFS, VgToolPrefsClass))
41 typedef struct _VgToolPrefs VgToolPrefs;
42 typedef struct _VgToolPrefsClass VgToolPrefsClass;
44 struct _VgToolPrefs {
45 GtkVBox parent_object;
47 const char *label;
50 struct _VgToolPrefsClass {
51 GtkVBoxClass parent_class;
53 /* virtual methods */
54 void (* apply) (VgToolPrefs *prefs);
55 void (* get_argv) (VgToolPrefs *prefs, const char *tool, GPtrArray *argv);
59 GType vg_tool_prefs_get_type (void);
61 void vg_tool_prefs_apply (VgToolPrefs *prefs);
63 void vg_tool_prefs_get_argv (VgToolPrefs *prefs, const char *tool, GPtrArray *argv);
65 #ifdef __cplusplus
67 #endif /* __cplusplus */
69 #endif /* __VG_TOOL_PREFS_H__ */