-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmode.c
62 lines (62 loc) · 2.71 KB
/
mode.c
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*----------------------------------------------------------------------------*/
/* mode.c */
/*----------------------------------------------------------------------------*/
/* copyright : (C) 2002 by Dao Hai Lam */
/* VISC Software & Security Consultant Company */
/* Hall 3, Quang Trung Software City */
/* Tan Chanh Hiep Ward, District 12, */
/* Ho Chi Minh city, VIETNAM */
/* website : http://www.visc-network.com */
/* email : lam@visc-network.com */
/* last modify : Tue, 13 Aug 2002 03:14:07 +0700 */
/*----------------------------------------------------------------------------*/
/* */
/* This program is free software; you can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License, or */
/* (at your option) any later version. */
/* */
/*----------------------------------------------------------------------------*/
#include "data.h"
#include "property.h"
/*----------------------------------------------------------------------------*/
void VKChangeUsing()
{
if( display )
VKSetValue(display, vk_using_atom, vk_using);
}
/*----------------------------------------------------------------------------*/
void VKChangeMethod()
{
if( display )
VKSetValue(display, vk_method_atom, vk_method);
}
/*----------------------------------------------------------------------------*/
void VKSwitchMethod()
{
vk_method = vk_method==VKM_OFF ? vk_using : VKM_OFF;
VKChangeMethod();
}
/*----------------------------------------------------------------------------*/
void VKChangeCharset(int id)
{
if( display )
VKSetValue(display, vk_charset_atom, id);
}
/*----------------------------------------------------------------------------*/
void VKResetMode()
{
if( display ) {
VKSetValue(display, vk_using_atom, VKM_OFF);
VKSetValue(display, vk_method_atom, VKM_OFF);
}
}
/*----------------------------------------------------------------------------*/
#ifdef VK_CHECK_SPELLING
void VKSetSpelling(int s)
{
if( display )
VKSetValue(display, vk_spelling_atom, s);
}
#endif
/*----------------------------------------------------------------------------*/