1.8 <GtkAlternativeTrigger>

Class: <GtkAlternativeTrigger>

It derives from <GtkShortcutTrigger>.

Combines two shortcut triggers.

The <GtkAlternativeTrigger> triggers when either of the two trigger.

This can be cascaded to combine more than two triggers.

Properties

Property: alternative-trigger:first self

The first <GtkShortcutTrigger> to check.

Its value is a <GtkShortcutTrigger>, or #f.

It can only be set when the object is made, with #:first.

Property: alternative-trigger:second self

The second <GtkShortcutTrigger> to check.

Its value is a <GtkShortcutTrigger>, or #f.

It can only be set when the object is made, with #:second.

Procedures

Method: alternative-trigger:get-first self ⇒ %return
Method: get-first self ⇒ %return

Gets the first of the two alternative triggers that may trigger self.

alternative-trigger:get-second will return the other one.

self

Passed: a <GtkAlternativeTrigger>.

an alternative <GtkShortcutTrigger>

%return

Returned: a <GtkShortcutTrigger>.

the first alternative trigger

Method: alternative-trigger:get-second self ⇒ %return
Method: get-second self ⇒ %return

Gets the second of the two alternative triggers that may trigger self.

alternative-trigger:get-first will return the other one.

self

Passed: a <GtkAlternativeTrigger>.

an alternative <GtkShortcutTrigger>

%return

Returned: a <GtkShortcutTrigger>.

the second alternative trigger

Procedure: alternative-trigger:new first second ⇒ %return

Creates a <GtkShortcutTrigger> that will trigger whenever either of the two given triggers gets triggered.

Note that nesting is allowed, so if you want more than two alternative, create a new alternative trigger for each option.

first

Passed: a <GtkShortcutTrigger>.

The first trigger that may trigger

second

Passed: a <GtkShortcutTrigger>.

The second trigger that may trigger

%return

Returned: a <GtkShortcutTrigger>.

a new <GtkShortcutTrigger>