GscTriggerCustomkey

GscTriggerCustomkey — Custom keys trigger

Synopsis

                    GscTriggerCustomkey;
                    GscTriggerCustomkeyClass;
                    GscTriggerCustomkeyPrivate;
GscTriggerCustomkey * gsc_trigger_customkey_new         (GscCompletion *completion,
                                                         const gchar *trigger_name,
                                                         const gchar *keys);
void                gsc_trigger_customkey_set_keys      (GscTriggerCustomkey *self,
                                                         const gchar *keys);

Object Hierarchy

  GObject
   +----GscTriggerCustomkey

Implemented Interfaces

GscTriggerCustomkey implements GscTrigger.

Description

This object trigger a completion event when the user press the configured keys.

Details

GscTriggerCustomkey

typedef struct _GscTriggerCustomkey GscTriggerCustomkey;


GscTriggerCustomkeyClass

typedef struct {
	GObjectClass parent;
} GscTriggerCustomkeyClass;


GscTriggerCustomkeyPrivate

typedef struct _GscTriggerCustomkeyPrivate GscTriggerCustomkeyPrivate;


gsc_trigger_customkey_new ()

GscTriggerCustomkey * gsc_trigger_customkey_new         (GscCompletion *completion,
                                                         const gchar *trigger_name,
                                                         const gchar *keys);

This is a generic trigger. You tell the name and the key and the trigger will be triggered when the user press this key (or keys).

completion :

The GscCompletion

trigger_name :

The trigger name wich will be user the we trigger the event.

keys :

The string representation of the keys that we will use to activate the event. You can get this string with gtk_accelerator_name

Returns :

a new GscTriggerCustomkey

gsc_trigger_customkey_set_keys ()

void                gsc_trigger_customkey_set_keys      (GscTriggerCustomkey *self,
                                                         const gchar *keys);

Assign the keys that we will use to activate the user request event.

self :

The GscTriggerCustomkey

keys :

The string representation of the keys that we will use to activate the user request event. You can get this string with gtk_accelerator_name