libanjuta: bgo #696984 - Fix function argument name typos in documentation comments
[anjuta.git] / libanjuta / anjuta-save-prompt.h
blobc9970cfc7cb9fba6b3c3f38ed14965edb191d2ce
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3 * anjuta-save-prompt.h
4 * Copyright (C) 2000 Naba Kumar <naba@gnome.org>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Library General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 #ifndef ANJUTA_SAVE_PROMPT_H
22 #define ANJUTA_SAVE_PROMPT_H
24 #include <glib.h>
25 #include <glib-object.h>
26 #include <gtk/gtk.h>
28 G_BEGIN_DECLS
30 #define ANJUTA_TYPE_SAVE_PROMPT (anjuta_save_prompt_get_type ())
31 #define ANJUTA_SAVE_PROMPT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), ANJUTA_TYPE_SAVE_PROMPT, AnjutaSavePrompt))
32 #define ANJUTA_SAVE_PROMPT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), ANJUTA_TYPE_SAVE_PROMPT, AnjutaSavePromptClass))
33 #define ANJUTA_IS_SAVE_PROMPT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), ANJUTA_TYPE_SAVE_PROMPT))
34 #define ANJUTA_IS_SAVE_PROMPT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), ANJUTA_TYPE_SAVE_PROMPT))
35 #define ANJUTA_SAVE_PROMPT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), ANJUTA_TYPE_SAVE_PROMPT, AnjutaSavePromptClass))
37 typedef struct _AnjutaSavePrompt AnjutaSavePrompt;
38 typedef struct _AnjutaSavePromptPrivate AnjutaSavePromptPrivate;
39 typedef struct _AnjutaSavePromptClass AnjutaSavePromptClass;
41 enum {
42 ANJUTA_SAVE_PROMPT_RESPONSE_DISCARD,
43 ANJUTA_SAVE_PROMPT_RESPONSE_SAVE_CLOSE,
44 ANJUTA_SAVE_PROMPT_RESPONSE_CANCEL
47 typedef gboolean (*AnjutaSavePromptSaveFunc) (AnjutaSavePrompt *save_prompt,
48 gpointer item,
49 gpointer user_data);
50 struct _AnjutaSavePrompt {
51 GtkMessageDialog parent;
52 AnjutaSavePromptPrivate *priv;
55 struct _AnjutaSavePromptClass {
56 GtkMessageDialogClass parent_class;
57 /* Add Signal Functions Here */
60 GType anjuta_save_prompt_get_type (void);
61 AnjutaSavePrompt *anjuta_save_prompt_new (GtkWindow *parent);
63 gint anjuta_save_prompt_get_items_count (AnjutaSavePrompt *save_prompt);
65 void anjuta_save_prompt_add_item (AnjutaSavePrompt *save_prompt,
66 const gchar *item_name,
67 const gchar *item_detail,
68 gpointer item,
69 AnjutaSavePromptSaveFunc item_save_func,
70 gpointer user_data);
71 G_END_DECLS
73 #endif /* ANJUTA_SAVE_PROMPT_H */