~codygarver/+junk/gnome-builder

« back to all changes in this revision

Viewing changes to src/preferences/gb-preferences-page.h

  • Committer: Cody Garver
  • Date: 2015-11-21 00:50:38 UTC
  • Revision ID: cody@elementary.io-20151121005038-8wygis63zt0ljqlz
Import https://github.com/chergert/gnome-builder 06e3158922a02a27f4abca250d70aa7b2970e06a

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* gb-preferences-page.h
 
2
 *
 
3
 * Copyright (C) 2014 Christian Hergert <christian@hergert.me>
 
4
 *
 
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.
 
9
 *
 
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.
 
14
 *
 
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/>.
 
17
 */
 
18
 
 
19
#ifndef GB_PREFERENCES_PAGE_H
 
20
#define GB_PREFERENCES_PAGE_H
 
21
 
 
22
#include <gtk/gtk.h>
 
23
 
 
24
G_BEGIN_DECLS
 
25
 
 
26
#define GB_TYPE_PREFERENCES_PAGE (gb_preferences_page_get_type())
 
27
 
 
28
G_DECLARE_DERIVABLE_TYPE (GbPreferencesPage, gb_preferences_page, GB, PREFERENCES_PAGE, GtkBin)
 
29
 
 
30
struct _GbPreferencesPageClass
 
31
{
 
32
  GtkBinClass parent;
 
33
 
 
34
  /**
 
35
   * GbPreferencesPage::clear_search:
 
36
   *
 
37
   * Signal to let each preferences page clear
 
38
   * its local search when a global search is
 
39
   * about to be started
 
40
   */
 
41
  void (*clear_search) (GbPreferencesPage *self);
 
42
};
 
43
 
 
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,
 
51
                                                                    const gchar       *title);
 
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);
 
55
 
 
56
G_END_DECLS
 
57
 
 
58
#endif /* GB_PREFERENCES_PAGE_H */