1 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ 2 /* 3 * pluma-spell-language-dialog.h 4 * This file is part of pluma 5 * 6 * Copyright (C) 2002 Paolo Maggi 7 * Copyright (C) 2012-2021 MATE Developers 8 * 9 * This program is free software; you can redistribute it and/or modify 10 * it under the terms of the GNU General Public License as published by 11 * the Free Software Foundation; either version 2 of the License, or 12 * (at your option) any later version. 13 * 14 * This program is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 * GNU General Public License for more details. 18 * 19 * You should have received a copy of the GNU General Public License 20 * along with this program; if not, write to the Free Software 21 * Foundation, Inc., 51 Franklin St, Fifth Floor, 22 * Boston, MA 02110-1301, USA. 23 */ 24 25 /* 26 * Modified by the pluma Team, 2002. See the AUTHORS file for a 27 * list of people on the pluma Team. 28 * See the ChangeLog files for a list of changes. 29 */ 30 31 #ifndef __PLUMA_SPELL_LANGUAGE_DIALOG_H__ 32 #define __PLUMA_SPELL_LANGUAGE_DIALOG_H__ 33 34 #include <gtk/gtk.h> 35 #include "pluma-spell-checker-language.h" 36 37 G_BEGIN_DECLS 38 39 #define PLUMA_TYPE_SPELL_LANGUAGE_DIALOG (pluma_spell_language_dialog_get_type()) 40 #define PLUMA_SPELL_LANGUAGE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PLUMA_TYPE_SPELL_LANGUAGE_DIALOG, PlumaSpellLanguageDialog)) 41 #define PLUMA_SPELL_LANGUAGE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PLUMA_TYPE_SPELL_LANGUAGE_DIALOG, PlumaSpellLanguageDialogClass)) 42 #define PLUMA_IS_SPELL_LANGUAGE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PLUMA_TYPE_SPELL_LANGUAGE_DIALOG)) 43 #define PLUMA_IS_SPELL_LANGUAGE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUMA_TYPE_SPELL_LANGUAGE_DIALOG)) 44 #define PLUMA_SPELL_LANGUAGE_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PLUMA_TYPE_SPELL_LANGUAGE_DIALOG, PlumaSpellLanguageDialogClass)) 45 46 47 typedef struct _PlumaSpellLanguageDialog PlumaSpellLanguageDialog; 48 49 typedef struct _PlumaSpellLanguageDialogClass PlumaSpellLanguageDialogClass; 50 51 struct _PlumaSpellLanguageDialogClass 52 { 53 GtkDialogClass parent_class; 54 }; 55 56 GType pluma_spell_language_dialog_get_type (void) G_GNUC_CONST; 57 58 GtkWidget *pluma_spell_language_dialog_new (GtkWindow *parent, 59 const PlumaSpellCheckerLanguage *cur_lang, 60 const gchar *data_dir); 61 62 const PlumaSpellCheckerLanguage * 63 pluma_spell_language_get_selected_language (PlumaSpellLanguageDialog *dlg); 64 65 G_END_DECLS 66 67 #endif /* __PLUMA_SPELL_LANGUAGE_DIALOG_H__ */ 68 69