Gnome Gtd

Getting Things Gnome (GTG) by troe posted in: Office, Organizers, Software 0 Getting Things Gnome (GTG) is a free and open source personal organizer/task manager inspired by the “Getting Things Done” (GTD) methodology. The common garden gnome originated in 19th-century Germany from the mining area of Thuringia. Here, local craftsmen are given credit for hand-crafting the gnomes as we know them—with shaggy beards. The GtdActivatable interface is the interface plugins must implement in order to be seen by GNOME To Do. When plugins are loaded, the gtdactivatableactivate vfunc is called. Use this vfunc to load anything that depends on GNOME To Do.

GtdNotification

GtdNotification — a notification with actions

Functions

void(*GtdNotificationActionFunc)()
GtdNotification *gtd_notification_new()
voidgtd_notification_execute_primary_action()
voidgtd_notification_execute_secondary_action()
voidgtd_notification_start()
voidgtd_notification_stop()
voidgtd_notification_set_primary_action()
voidgtd_notification_set_secondary_action()
const gchar *gtd_notification_get_text()
voidgtd_notification_set_text()
gdoublegtd_notification_get_timeout()
voidgtd_notification_set_timeout()

Properties

gbooleanhas-primary-actionRead
gbooleanhas-secondary-actionRead
gchar *secondary-action-nameRead / Write
gchar *textRead / Write
gdoubletimeoutRead / Write

Signals

Types and Values

Object Hierarchy

Description

Gnome Gdm Theme

The GtdNotification represents a notification shown at the top ofthe window. The action can have a primary action that is called whenthe notification is gone.

Optionally, the notification may have a secondary action (see gtd_notification_set_secondary_action())shown as a button.

The notification may also have a timeout, which is how long the notificationis displayed. By default, the timeout is 7.5 seconds.

Example:

Functions

GtdNotificationActionFunc ()

Will be called when the primary or secondary action of notificationis executed.

Parameters

notification

the GtdNotification running the function

user_data

user data.

[closure]

gtd_notification_new ()

Creates a new notification with text and timeout. If timeout is0, the notification is indefinitely displayed.

Parameters

text

text of the notification.

[nullable]

timeout

time for the notification to stay visible

gtd_notification_execute_primary_action ()

Executes the primary action of notification if set.

Parameters

gtd_notification_execute_secondary_action ()

Executes the secondary action of notification if any.

Parameters

gtd_notification_start ()

Starts the timeout of notification. Use gtd_notification_stop()to stop it.

Gnome gdk

Parameters

gtd_notification_stop ()

Stops the timeout of notification. Use gtd_notification_start()to start it.

Gnome

Parameters

gtd_notification_set_primary_action ()

Sets the primary action of notification, which is triggeredon dismiss or timeout.

Parameters

notification

a GtdNotification

func

the primary action function.

[closure user_data][scope call][nullable]

user_data

data passed to func

Gnome Gtd

gtd_notification_set_secondary_action ()

Sets the secondary action of notification, which is triggeredonly on user explicit input.

Parameters

notification

a GtdNotification

name

the name of the secondary action

func

the secondary action function.

[closure user_data][scope call][nullable]

user_data

data passed to func

gtd_notification_get_text ()

Gets the text of notification.

Parameters

Returns

the text of notification.

[transfer none]

gtd_notification_set_text ()

Sets the text of notification to text.

Parameters

notification

a GtdNotification

text

the user-visible text of notification

gtd_notification_get_timeout ()

Retrieves the timeout of notification.

gtd_notification_set_timeout ()

Sets the timeout of notification to timeout. Set it to 0 to disablethe timeout.

Parameters

notification

a GtdNotification

timeout

the time to wait before running notification, in miliseconds

Types and Values

GtdNotification

Property Details

The “has-primary-action” property

Whether the notification has the primary action, activated on timeout or dismiss.

Gnome gtk theme

Flags: Read

Default value: FALSE

The “has-secondary-action” property

Whether the notification has the secondary action, activated by the user.

Flags: Read

Default value: FALSE

The “secondary-action-name” property

The text of the secondary action button.

Flags: Read / Write

Default value: '

The “text” property

The main message of the notification.

Flags: Read / Write

Gnome gdm3

Default value: '

The “timeout” property

The time the notification is displayed.

Flags: Read / Write

Allowed values: [0,30000]

Default value: 7500

Signal Details

Gnome Gdm3

The “executed” signal

The ::executed signal is emmited after the primary or secondaryGtdNotification action is executed.

Gnome Gdk

Parameters

Genome Gd

user_data

user data set when the signal handler was connected.

Flags: Run First