1
/* gb-preferences-page.h
3
* Copyright (C) 2014 Christian Hergert <christian@hergert.me>
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
#ifndef GB_PREFERENCES_PAGE_H
20
#define GB_PREFERENCES_PAGE_H
26
#define GB_TYPE_PREFERENCES_PAGE (gb_preferences_page_get_type())
28
G_DECLARE_DERIVABLE_TYPE (GbPreferencesPage, gb_preferences_page, GB, PREFERENCES_PAGE, GtkBin)
30
struct _GbPreferencesPageClass
35
* GbPreferencesPage::clear_search:
37
* Signal to let each preferences page clear
38
* its local search when a global search is
41
void (*clear_search) (GbPreferencesPage *self);
44
guint gb_preferences_page_set_keywords (GbPreferencesPage *page,
45
const gchar * const *keywords);
46
void gb_preferences_page_set_keywords_for_widget (GbPreferencesPage *page,
47
const gchar *keywords,
48
gpointer first_widget,
49
...) G_GNUC_NULL_TERMINATED;
50
void gb_preferences_page_set_title (GbPreferencesPage *page,
52
void gb_preferences_page_reset_title (GbPreferencesPage *page);
53
GtkWidget *gb_preferences_page_get_controls (GbPreferencesPage *page);
54
void gb_preferences_page_clear_search (GbPreferencesPage *page);
58
#endif /* GB_PREFERENCES_PAGE_H */