GscTriggerCustomkey

GscTriggerCustomkey

Synopsis

                    GscTriggerCustomkeyPrivate;
                    GscTriggerCustomkey;
GscTriggerCustomkey* gsc_trigger_customkey_new          (GscManager *completion,
                                                         const gchar *trigger_name,
                                                         const gchar *keys);
void                gsc_trigger_customkey_set_keys      (GscTriggerCustomkey *self,
                                                         const gchar *keys);
void                gsc_trigger_customkey_set_opts      (GscTriggerCustomkey *self,
                                                         GscManagerEventOptions *options);

Object Hierarchy

  GObject
   +----GscTriggerCustomkey

Implemented Interfaces

GscTriggerCustomkey implements GscTrigger.

Description

Details

GscTriggerCustomkeyPrivate

typedef struct _GscTriggerCustomkeyPrivate GscTriggerCustomkeyPrivate;


GscTriggerCustomkey

typedef struct _GscTriggerCustomkey GscTriggerCustomkey;


gsc_trigger_customkey_new ()

GscTriggerCustomkey* gsc_trigger_customkey_new          (GscManager *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 GscManager

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 :

The 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

gsc_trigger_customkey_set_opts ()

void                gsc_trigger_customkey_set_opts      (GscTriggerCustomkey *self,
                                                         GscManagerEventOptions *options);

Use this function if you want to tell the completion how must show the popup (position, filter, etc.) then this trigger occurs

self :

The GscTriggerCustomkey

options :

The trigger options