~ubuntu-branches/ubuntu/precise/nvidia-settings/precise-proposed

« back to all changes in this revision

Viewing changes to src/gtk+-2.x/ctkconfig.h

  • Committer: Bazaar Package Importer
  • Author(s): Randall Donald
  • Date: 2004-07-03 19:09:17 UTC
  • Revision ID: james.westby@ubuntu.com-20040703190917-rqkze2s58ux5pamy
Tags: upstream-1.0
ImportĀ upstreamĀ versionĀ 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * nvidia-settings: A tool for configuring the NVIDIA X driver on Unix
 
3
 * and Linux systems.
 
4
 *
 
5
 * Copyright (C) 2004 NVIDIA Corporation.
 
6
 *
 
7
 * This program is free software; you can redistribute it and/or
 
8
 * modify it under the terms of Version 2 of the GNU General Public
 
9
 * License as published by the Free Software Foundation.
 
10
 *
 
11
 * This program is distributed in the hope that it will be useful, but
 
12
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See Version 2
 
14
 * of the GNU General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU General Public License
 
17
 * along with this program; if not, write to the:
 
18
 *
 
19
 *           Free Software Foundation, Inc.
 
20
 *           59 Temple Place - Suite 330
 
21
 *           Boston, MA 02111-1307, USA
 
22
 *
 
23
 */
 
24
 
 
25
/*
 
26
 * The CtkConfig widget controls configuration options of the control
 
27
 * panel itself (rather than configuration options of the NVIDIA
 
28
 * X/GLX driver).
 
29
 */
 
30
 
 
31
#ifndef __CTK_CONFIG_H__
 
32
#define __CTK_CONFIG_H__
 
33
 
 
34
#include <gtk/gtk.h>
 
35
 
 
36
#include "config-file.h"
 
37
 
 
38
G_BEGIN_DECLS
 
39
 
 
40
#define CTK_TYPE_CONFIG (ctk_config_get_type())
 
41
 
 
42
#define CTK_CONFIG(obj) \
 
43
    (G_TYPE_CHECK_INSTANCE_CAST ((obj), CTK_TYPE_CONFIG, CtkConfig))
 
44
 
 
45
#define CTK_CONFIG_CLASS(klass) \
 
46
    (G_TYPE_CHECK_CLASS_CAST ((klass), CTK_TYPE_CONFIG, CtkConfigClass))
 
47
 
 
48
#define CTK_IS_CONFIG(obj) \
 
49
    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CTK_TYPE_CONFIG))
 
50
 
 
51
#define CTK_IS_CONFIG_CLASS(class) \
 
52
    (G_TYPE_CHECK_CLASS_TYPE ((klass), CTK_TYPE_CONFIG))
 
53
 
 
54
#define CTK_CONFIG_GET_CLASS(obj) \
 
55
    (G_TYPE_INSTANCE_GET_CLASS ((obj), CTK_TYPE_CONFIG, CtkConfigClass))
 
56
 
 
57
 
 
58
typedef struct _CtkConfig       CtkConfig;
 
59
typedef struct _CtkConfigClass  CtkConfigClass;
 
60
 
 
61
typedef struct _CtkStatusBar    CtkStatusBar;
 
62
typedef struct _CtkToolTips     CtkToolTips;
 
63
 
 
64
struct _CtkStatusBar
 
65
{
 
66
    GtkWidget *widget;
 
67
    guint prev_message_id;
 
68
};
 
69
 
 
70
struct _CtkToolTips
 
71
{
 
72
    GtkTooltips *object;
 
73
};
 
74
 
 
75
 
 
76
struct _CtkConfig
 
77
{
 
78
    GtkVBox parent;
 
79
    CtkStatusBar status_bar;
 
80
    CtkToolTips tooltips;
 
81
    GtkListStore *list_store;
 
82
    ConfigProperties *conf;
 
83
    GtkWidget *timer_list;
 
84
    GtkWidget *timer_list_box;
 
85
    gboolean timer_list_visible;
 
86
};
 
87
 
 
88
struct _CtkConfigClass
 
89
{
 
90
    GtkVBoxClass parent_class;
 
91
};
 
92
 
 
93
GType      ctk_config_get_type            (void) G_GNUC_CONST;
 
94
GtkWidget* ctk_config_new                 (ConfigProperties *);
 
95
void       ctk_config_statusbar_message   (CtkConfig *, const char *, ...);
 
96
GtkWidget* ctk_config_get_statusbar       (CtkConfig *);
 
97
void       ctk_config_set_tooltip         (CtkConfig *, GtkWidget *,
 
98
                                           const gchar *);
 
99
GtkTextBuffer *ctk_config_create_help     (GtkTextTagTable *);
 
100
 
 
101
void ctk_config_add_timer(CtkConfig *, guint, gchar *, GSourceFunc, gpointer);
 
102
void ctk_config_remove_timer(CtkConfig *, GSourceFunc);
 
103
 
 
104
gboolean ctk_config_slider_text_entry_shown(CtkConfig *);
 
105
 
 
106
G_END_DECLS
 
107
 
 
108
#endif /* __CTK_CONFIG_H__ */