2
* nvidia-settings: A tool for configuring the NVIDIA X driver on Unix
5
* Copyright (C) 2004 NVIDIA Corporation.
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.
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.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the:
19
* Free Software Foundation, Inc.
20
* 59 Temple Place - Suite 330
21
* Boston, MA 02111-1307, USA
26
* The CtkConfig widget controls configuration options of the control
27
* panel itself (rather than configuration options of the NVIDIA
31
#ifndef __CTK_CONFIG_H__
32
#define __CTK_CONFIG_H__
36
#include "config-file.h"
40
#define CTK_TYPE_CONFIG (ctk_config_get_type())
42
#define CTK_CONFIG(obj) \
43
(G_TYPE_CHECK_INSTANCE_CAST ((obj), CTK_TYPE_CONFIG, CtkConfig))
45
#define CTK_CONFIG_CLASS(klass) \
46
(G_TYPE_CHECK_CLASS_CAST ((klass), CTK_TYPE_CONFIG, CtkConfigClass))
48
#define CTK_IS_CONFIG(obj) \
49
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), CTK_TYPE_CONFIG))
51
#define CTK_IS_CONFIG_CLASS(class) \
52
(G_TYPE_CHECK_CLASS_TYPE ((klass), CTK_TYPE_CONFIG))
54
#define CTK_CONFIG_GET_CLASS(obj) \
55
(G_TYPE_INSTANCE_GET_CLASS ((obj), CTK_TYPE_CONFIG, CtkConfigClass))
58
typedef struct _CtkConfig CtkConfig;
59
typedef struct _CtkConfigClass CtkConfigClass;
61
typedef struct _CtkStatusBar CtkStatusBar;
62
typedef struct _CtkToolTips CtkToolTips;
67
guint prev_message_id;
79
CtkStatusBar status_bar;
81
GtkListStore *list_store;
82
ConfigProperties *conf;
83
GtkWidget *timer_list;
84
GtkWidget *timer_list_box;
85
gboolean timer_list_visible;
88
struct _CtkConfigClass
90
GtkVBoxClass parent_class;
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 *,
99
GtkTextBuffer *ctk_config_create_help (GtkTextTagTable *);
101
void ctk_config_add_timer(CtkConfig *, guint, gchar *, GSourceFunc, gpointer);
102
void ctk_config_remove_timer(CtkConfig *, GSourceFunc);
104
gboolean ctk_config_slider_text_entry_shown(CtkConfig *);
108
#endif /* __CTK_CONFIG_H__ */