---
name: "Glib"
section: "3o"
platform: "linux"
package: "liblablgtk2-ocaml-doc"
version: "2.4.0v0.2tv-8"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/Glib"
---

# Glib(3o)

Interface to Glib functions

## NAME

Glib - Interface to Glib functions

## Module

Module   Glib

## Documentation

Module **Glib**\
  :  **sig end**

Interface to Glib functions

*type unichar* =  **int**

*type unistring* =  **unichar array**

*exception GError* **of** **string**

**===** **Main Event Loop** **===**

*module Main :* **sig end**

The Main Event Loop

*val int\_of\_priority* :  **\[\< \`DEFAULT \| \`DEFAULT\_IDLE \| \`HIGH \| \`HIGH\_IDLE \| \`LOW \] -\> int**

*module Timeout :* **sig end**

*module Idle :* **sig end**

**===** **IO Channels** **===**

*module Io :* **sig end**

IO Channels

**===** **Message Logging** **===**

*module Message :* **sig end**

**===** **Character Sets** **===**

*module Convert :* **sig end**

Character Set Conversion

*module Unichar :* **sig end**

Unicode Manipulation

*module Utf8 :* **sig end**

Unicode Manipulation

*module Markup :* **sig end**

**===** **Miscellaneous Utility Functions** **===**

*val get\_prgname* :  **unit -\> string**

*val set\_prgname* :  **string -\> unit**

*val get\_application\_name* :  **unit -\> string**

**Since** GTK 2.2

*val set\_application\_name* :  **string -\> unit**

**Since** GTK 2.2

*val get\_user\_name* :  **unit -\> string**

*val get\_real\_name* :  **unit -\> string**

*val get\_home\_dir* :  **unit -\> string option**

*val get\_tmp\_dir* :  **unit -\> string**

*val find\_program\_in\_path* :  **string -\> string**

**Raises Not\_found** if the program is not found in the path or is not executable

*val getenv* :  **string -\> string**

**Raises Not\_found** if the environment variable is not found.

*val setenv* :  **string -\> string -\> bool -\> unit**

**Since** GTK 2.4

**Raises Failure** if the environment variable couldn't be set.

*val unsetenv* :  **string -\> unit**

**Since** GTK 2.4

*val get\_user\_cache\_dir* :  **unit -\> string**

**Since** GTK 2.6

*val get\_user\_data\_dir* :  **unit -\> string**

**Since** GTK 2.6

*val get\_user\_config\_dir* :  **unit -\> string**

**Since** GTK 2.6

*val get\_system\_data\_dirs* :  **unit -\> string list**

**Since** GTK 2.6

*val get\_system\_config\_dirs* :  **unit -\> string list**

**Since** GTK 2.6
