2 * preferences-page-spellcheck.h - helpers for the spellcheck preferences page
4 * Copyright (C) 2004-2007 xchat-gnome team
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (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 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 #include <glade/glade-xml.h>
24 #include "preferences-page.h"
26 #ifndef XCHAT_GNOME_PREFERENCES_PAGE_SPELLCHECK_H
27 #define XCHAT_GNOME_PREFERENCES_PAGE_SPELLCHECK_H
31 typedef struct _PreferencesPageSpellcheck PreferencesPageSpellcheck
;
32 typedef struct _PreferencesPageSpellcheckClass PreferencesPageSpellcheckClass
;
33 #define PREFERENCES_PAGE_SPELLCHECK_TYPE (preferences_page_spellcheck_get_type ())
34 #define PREFERENCES_PAGE_SPELLCHECK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PREFERENCES_PAGE_SPELLCHECK_TYPE, PreferencesPageSpellcheck))
35 #define PREFERENCES_PAGE_SPELLCHECK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PREFERENCES_PAGE_SPELLCHECK_TYPE, PreferencesPageSpellcheckClass))
36 #define IS_PREFERENCES_PAGE_SPELLCHECK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PREFERENCES_PAGE_SPELLCHECK_TYPE))
37 #define IS_PREFERENCES_PAGE_SPELLCHECK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PREFERENCES_PAGE_SPELLCHECK_TYPE))
40 struct _PreferencesPageSpellcheck
42 PreferencesPage parent
;
44 GtkWidget
*enable_spellcheck
;
45 GtkWidget
*spellcheck_list
;
46 GtkCellRenderer
*activated_renderer
, *name_renderer
;
47 GtkListStore
*spellcheck_store
;
48 GtkTreeViewColumn
*spellcheck_column
;
50 /* gconf notification handlers */
54 struct _PreferencesPageSpellcheckClass
56 PreferencesPageClass parent_class
;
59 GType
preferences_page_spellcheck_get_type (void) G_GNUC_CONST
;
60 PreferencesPageSpellcheck
* preferences_page_spellcheck_new (gpointer prefs_dialog
, GladeXML
*xml
);