File: gtksettings.h

package info (click to toggle)
xmorph 1%3A20060817
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 5,688 kB
  • ctags: 2,022
  • sloc: ansic: 19,988; sh: 9,418; cpp: 1,230; makefile: 560; sed: 16
file content (42 lines) | stat: -rw-r--r-- 1,131 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#define GTKSETTINGS_BLOCKS_SIZE 5


gpointer
gtk_settings_alloc(/* template for the settings */
		   gpointer template[]);

/* returns: the menu widget for GUI to the settings */
GtkWidget*
gtk_settings_create (/* template for the settings */
		     gpointer template[],
		     /* actual array that will record the settings;
		      (note that the settings' names
		      are translated using gettext)
		     It must be preallocated by using the above routine */
		     gpointer *settings,
		     /* the callback that is called when any menu item is
			changed by the user*/
		     void (*callback)(GtkWidget* thismenuitem,
				      gpointer userdata),
		     gpointer userdata
		     );

/* there is also a callback that will be called (if non NULL)
   when the user changes a setting; it is of form 
   void callback();
   and is the first element of the template. 
*/


//static inline
int
gtk_settings_get_value(char *name,gpointer thesettings[]);

//static inline
int
gtk_settings_set_value(char *name,gpointer thesettings[], int value);



void
gtk_settings_set_sensitive(char *name,gpointer thesettings[], gboolean value);