方法
GNOMENotificationset_default_action_and_target_value
自:2.40
声明 [源]
void
g_notification_set_default_action_and_target_value (
GNotification* notification,
const gchar* action,
GVariant* target
)
描述 [源]
将通知的默认操作设置为 action。当点击通知时,将激活此操作。必须是一个应用程序范围内的操作(以 "app." 开头)。
如果 target 不是 NULL,则使用 target 作为参数激活 action。如果 target 是动态的,它将被消耗。
如果没有设置默认操作,则激活发送通知的应用程序。
自从:2.40
该方法在语言绑定中被重命名为 g_notification_set_default_action_and_target()。
参数
action-
类型:
const gchar*操作名称。
该方法调用者拥有数据。 值是空终止的 UTF-8 字符串。 target-
类型:
GVariant用于作为
action参数的GVariant或NULL。参数可以是 NULL。该方法调用者拥有数据。