Function

GdkAtomintern

Declaration [src]

GdkAtom
gdk_atom_intern (
  const gchar* atom_name,
  gboolean only_if_exists
)

Description [src]

Finds or creates an atom corresponding to a given string.

Parameters

atom_name

Type: const gchar*

A string.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
only_if_exists

Type: gboolean

If TRUE, GDK is allowed to not create a new atom, but just return GDK_NONE if the requested atom doesn’t already exists. Currently, the flag is ignored, since checking the existance of an atom is as expensive as creating it.

Return value

Type: GdkAtom

The atom corresponding to atom_name.