2018-08-04 10:14:13 +00:00
|
|
|
/*
|
|
|
|
* Copyright © 2018 Benjamin Otte
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
* Authors: Benjamin Otte <otte@gnome.org>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include "gtkshortcut.h"
|
|
|
|
|
2018-08-18 05:32:11 +00:00
|
|
|
#include "gtkshortcutaction.h"
|
2020-03-15 13:49:50 +00:00
|
|
|
#include "gtkshortcuttrigger.h"
|
2018-08-04 10:14:13 +00:00
|
|
|
#include "gtkwidget.h"
|
|
|
|
|
|
|
|
/**
|
2021-03-02 03:53:57 +00:00
|
|
|
* GtkShortcut:
|
2018-08-04 10:14:13 +00:00
|
|
|
*
|
2021-03-02 03:53:57 +00:00
|
|
|
* A `GtkShortcut` describes a keyboard shortcut.
|
2018-08-04 10:14:13 +00:00
|
|
|
*
|
|
|
|
* It contains a description of how to trigger the shortcut via a
|
2021-03-02 03:53:57 +00:00
|
|
|
* [class@Gtk.ShortcutTrigger] and a way to activate the shortcut
|
|
|
|
* on a widget via a [class@Gtk.ShortcutAction].
|
2018-08-04 10:14:13 +00:00
|
|
|
*
|
2021-03-02 03:53:57 +00:00
|
|
|
* The actual work is usually done via [class@Gtk.ShortcutController],
|
|
|
|
* which decides if and when to activate a shortcut. Using that controller
|
2018-08-18 05:32:11 +00:00
|
|
|
* directly however is rarely necessary as various higher level
|
2021-05-20 13:17:04 +00:00
|
|
|
* convenience APIs exist on `GtkWidget`s that make it easier to use
|
2018-08-04 10:14:13 +00:00
|
|
|
* shortcuts in GTK.
|
|
|
|
*
|
2021-03-02 03:53:57 +00:00
|
|
|
* `GtkShortcut` does provide functionality to make it easy for users
|
2018-08-04 10:14:13 +00:00
|
|
|
* to work with shortcuts, either by providing informational strings
|
|
|
|
* for display purposes or by allowing shortcuts to be configured.
|
|
|
|
*/
|
|
|
|
|
|
|
|
struct _GtkShortcut
|
|
|
|
{
|
|
|
|
GObject parent_instance;
|
|
|
|
|
2018-08-18 05:32:11 +00:00
|
|
|
GtkShortcutAction *action;
|
2020-03-15 13:49:50 +00:00
|
|
|
GtkShortcutTrigger *trigger;
|
2018-08-04 10:14:13 +00:00
|
|
|
GVariant *args;
|
|
|
|
};
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
PROP_0,
|
2020-02-05 17:08:14 +00:00
|
|
|
PROP_ACTION,
|
2018-08-18 05:32:11 +00:00
|
|
|
PROP_ARGUMENTS,
|
2020-03-15 13:49:50 +00:00
|
|
|
PROP_TRIGGER,
|
2018-08-04 10:14:13 +00:00
|
|
|
|
|
|
|
N_PROPS
|
|
|
|
};
|
|
|
|
|
|
|
|
G_DEFINE_TYPE (GtkShortcut, gtk_shortcut, G_TYPE_OBJECT)
|
|
|
|
|
|
|
|
static GParamSpec *properties[N_PROPS] = { NULL, };
|
|
|
|
|
|
|
|
static void
|
|
|
|
gtk_shortcut_dispose (GObject *object)
|
|
|
|
{
|
|
|
|
GtkShortcut *self = GTK_SHORTCUT (object);
|
|
|
|
|
2020-03-20 15:19:45 +00:00
|
|
|
g_clear_object (&self->action);
|
2020-03-19 15:57:02 +00:00
|
|
|
g_clear_object (&self->trigger);
|
2018-08-04 10:14:13 +00:00
|
|
|
g_clear_pointer (&self->args, g_variant_unref);
|
|
|
|
|
|
|
|
G_OBJECT_CLASS (gtk_shortcut_parent_class)->dispose (object);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
gtk_shortcut_get_property (GObject *object,
|
|
|
|
guint property_id,
|
|
|
|
GValue *value,
|
|
|
|
GParamSpec *pspec)
|
|
|
|
{
|
|
|
|
GtkShortcut *self = GTK_SHORTCUT (object);
|
|
|
|
|
|
|
|
switch (property_id)
|
|
|
|
{
|
2018-08-18 05:32:11 +00:00
|
|
|
case PROP_ACTION:
|
2020-11-17 18:01:13 +00:00
|
|
|
g_value_set_object (value, self->action);
|
2018-08-04 10:14:13 +00:00
|
|
|
break;
|
|
|
|
|
2018-08-18 05:32:11 +00:00
|
|
|
case PROP_ARGUMENTS:
|
|
|
|
g_value_set_variant (value, self->args);
|
2020-02-05 17:08:14 +00:00
|
|
|
break;
|
|
|
|
|
2020-03-15 13:49:50 +00:00
|
|
|
case PROP_TRIGGER:
|
2020-03-19 15:57:02 +00:00
|
|
|
g_value_set_object (value, self->trigger);
|
2020-03-15 13:49:50 +00:00
|
|
|
break;
|
|
|
|
|
2018-08-04 10:14:13 +00:00
|
|
|
default:
|
|
|
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
gtk_shortcut_set_property (GObject *object,
|
|
|
|
guint property_id,
|
|
|
|
const GValue *value,
|
|
|
|
GParamSpec *pspec)
|
|
|
|
{
|
|
|
|
GtkShortcut *self = GTK_SHORTCUT (object);
|
|
|
|
|
|
|
|
switch (property_id)
|
|
|
|
{
|
2018-08-18 05:32:11 +00:00
|
|
|
case PROP_ACTION:
|
2020-03-20 15:19:45 +00:00
|
|
|
gtk_shortcut_set_action (self, g_value_dup_object (value));
|
2018-08-04 10:14:13 +00:00
|
|
|
break;
|
|
|
|
|
2018-08-18 05:32:11 +00:00
|
|
|
case PROP_ARGUMENTS:
|
|
|
|
gtk_shortcut_set_arguments (self, g_value_get_variant (value));
|
2020-02-05 17:08:14 +00:00
|
|
|
break;
|
|
|
|
|
2020-03-15 13:49:50 +00:00
|
|
|
case PROP_TRIGGER:
|
2020-03-19 15:57:02 +00:00
|
|
|
gtk_shortcut_set_trigger (self, g_value_dup_object (value));
|
2020-03-15 13:49:50 +00:00
|
|
|
break;
|
|
|
|
|
2018-08-04 10:14:13 +00:00
|
|
|
default:
|
|
|
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
gtk_shortcut_class_init (GtkShortcutClass *klass)
|
|
|
|
{
|
|
|
|
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
|
|
|
|
|
|
|
|
gobject_class->dispose = gtk_shortcut_dispose;
|
|
|
|
gobject_class->get_property = gtk_shortcut_get_property;
|
|
|
|
gobject_class->set_property = gtk_shortcut_set_property;
|
|
|
|
|
2018-08-18 05:32:11 +00:00
|
|
|
/**
|
2021-03-02 03:53:57 +00:00
|
|
|
* GtkShortcut:action: (attributes org.gtk.Property.get=gtk_shortcut_get_action org.gtk.Property.set=gtk_shortcut_set_action)
|
2018-08-18 05:32:11 +00:00
|
|
|
*
|
|
|
|
* The action that gets activated by this shortcut.
|
|
|
|
*/
|
|
|
|
properties[PROP_ACTION] =
|
2022-05-11 12:19:39 +00:00
|
|
|
g_param_spec_object ("action", NULL, NULL,
|
2020-03-20 15:19:45 +00:00
|
|
|
GTK_TYPE_SHORTCUT_ACTION,
|
|
|
|
G_PARAM_READWRITE |
|
|
|
|
G_PARAM_EXPLICIT_NOTIFY |
|
|
|
|
G_PARAM_STATIC_STRINGS);
|
2018-08-18 05:32:11 +00:00
|
|
|
|
2018-08-04 10:14:13 +00:00
|
|
|
/**
|
2021-03-02 03:53:57 +00:00
|
|
|
* GtkShortcut:arguments: (attributes org.gtk.Property.get=gtk_shortcut_get_arguments org.gtk.Property.set=gtk_shortcut_set_arguments)
|
2018-08-04 10:14:13 +00:00
|
|
|
*
|
|
|
|
* Arguments passed to activation.
|
|
|
|
*/
|
|
|
|
properties[PROP_ARGUMENTS] =
|
2022-05-11 12:19:39 +00:00
|
|
|
g_param_spec_variant ("arguments", NULL, NULL,
|
2018-08-04 10:14:13 +00:00
|
|
|
G_VARIANT_TYPE_ANY,
|
|
|
|
NULL,
|
|
|
|
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
|
|
|
|
|
2020-03-15 13:49:50 +00:00
|
|
|
/**
|
2021-03-02 03:53:57 +00:00
|
|
|
* GtkShortcut:trigger: (attributes org.gtk.Property.get=gtk_shortcut_get_trigger org.gtk.Property.set=gtk_shortcut_set_trigger)
|
2020-03-15 13:49:50 +00:00
|
|
|
*
|
|
|
|
* The trigger that triggers this shortcut.
|
|
|
|
*/
|
|
|
|
properties[PROP_TRIGGER] =
|
2022-05-11 12:19:39 +00:00
|
|
|
g_param_spec_object ("trigger", NULL, NULL,
|
2020-03-19 15:57:02 +00:00
|
|
|
GTK_TYPE_SHORTCUT_TRIGGER,
|
|
|
|
G_PARAM_READWRITE |
|
|
|
|
G_PARAM_EXPLICIT_NOTIFY |
|
|
|
|
G_PARAM_STATIC_STRINGS);
|
2020-03-15 13:49:50 +00:00
|
|
|
|
2018-08-04 10:14:13 +00:00
|
|
|
g_object_class_install_properties (gobject_class, N_PROPS, properties);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
gtk_shortcut_init (GtkShortcut *self)
|
|
|
|
{
|
2020-03-20 15:19:45 +00:00
|
|
|
self->action = g_object_ref (gtk_nothing_action_get ());
|
2020-03-19 15:57:02 +00:00
|
|
|
self->trigger = g_object_ref (gtk_never_trigger_get ());
|
2018-08-04 10:14:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_shortcut_new:
|
2020-03-19 15:57:02 +00:00
|
|
|
* @trigger: (transfer full) (nullable): The trigger that will trigger the shortcut
|
|
|
|
* @action: (transfer full) (nullable): The action that will be activated upon
|
2018-08-18 18:01:43 +00:00
|
|
|
* triggering
|
2018-08-04 10:14:13 +00:00
|
|
|
*
|
2021-03-02 03:53:57 +00:00
|
|
|
* Creates a new `GtkShortcut` that is triggered by
|
|
|
|
* @trigger and then activates @action.
|
2018-08-04 10:14:13 +00:00
|
|
|
*
|
2021-03-02 03:53:57 +00:00
|
|
|
* Returns: a new `GtkShortcut`
|
|
|
|
*/
|
2018-08-04 10:14:13 +00:00
|
|
|
GtkShortcut *
|
2018-08-18 18:01:43 +00:00
|
|
|
gtk_shortcut_new (GtkShortcutTrigger *trigger,
|
|
|
|
GtkShortcutAction *action)
|
2018-08-04 10:14:13 +00:00
|
|
|
{
|
2018-08-18 18:01:43 +00:00
|
|
|
GtkShortcut *shortcut;
|
|
|
|
|
|
|
|
shortcut = g_object_new (GTK_TYPE_SHORTCUT,
|
|
|
|
"action", action,
|
|
|
|
"trigger", trigger,
|
|
|
|
NULL);
|
|
|
|
|
|
|
|
if (trigger)
|
2020-03-19 15:57:02 +00:00
|
|
|
g_object_unref (trigger);
|
2018-08-18 18:01:43 +00:00
|
|
|
if (action)
|
2020-03-20 15:19:45 +00:00
|
|
|
g_object_unref (action);
|
2018-08-18 18:01:43 +00:00
|
|
|
|
|
|
|
return shortcut;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_shortcut_new_with_arguments: (skip)
|
2020-03-19 15:57:02 +00:00
|
|
|
* @trigger: (transfer full) (nullable): The trigger that will trigger the shortcut
|
|
|
|
* @action: (transfer full) (nullable): The action that will be activated upon
|
2021-05-18 21:05:26 +00:00
|
|
|
* triggering
|
2021-05-19 11:24:34 +00:00
|
|
|
* @format_string: (nullable): GVariant format string for arguments or %NULL for
|
2021-05-18 21:05:26 +00:00
|
|
|
* no arguments
|
2018-08-18 18:01:43 +00:00
|
|
|
* @...: arguments, as given by format string.
|
|
|
|
*
|
2021-03-02 03:53:57 +00:00
|
|
|
* Creates a new `GtkShortcut` that is triggered by @trigger and then activates
|
2018-08-18 18:01:43 +00:00
|
|
|
* @action with arguments given by @format_string.
|
|
|
|
*
|
2021-03-02 03:53:57 +00:00
|
|
|
* Returns: a new `GtkShortcut`
|
|
|
|
*/
|
2018-08-18 18:01:43 +00:00
|
|
|
GtkShortcut *
|
|
|
|
gtk_shortcut_new_with_arguments (GtkShortcutTrigger *trigger,
|
|
|
|
GtkShortcutAction *action,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *format_string,
|
2018-08-18 18:01:43 +00:00
|
|
|
...)
|
|
|
|
{
|
|
|
|
GtkShortcut *shortcut;
|
|
|
|
GVariant *args;
|
|
|
|
|
|
|
|
if (format_string)
|
|
|
|
{
|
|
|
|
va_list valist;
|
|
|
|
va_start (valist, format_string);
|
|
|
|
args = g_variant_new_va (format_string, NULL, &valist);
|
|
|
|
va_end (valist);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
args = NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
shortcut = g_object_new (GTK_TYPE_SHORTCUT,
|
|
|
|
"action", action,
|
|
|
|
"arguments", args,
|
|
|
|
"trigger", trigger,
|
|
|
|
NULL);
|
|
|
|
|
|
|
|
if (trigger)
|
2020-03-19 15:57:02 +00:00
|
|
|
g_object_unref (trigger);
|
2018-08-18 18:01:43 +00:00
|
|
|
if (action)
|
2020-03-20 15:19:45 +00:00
|
|
|
g_object_unref (action);
|
2018-08-18 18:01:43 +00:00
|
|
|
|
|
|
|
return shortcut;
|
2018-08-04 10:14:13 +00:00
|
|
|
}
|
|
|
|
|
2018-08-18 05:32:11 +00:00
|
|
|
/**
|
2021-03-02 03:53:57 +00:00
|
|
|
* gtk_shortcut_get_action: (attributes org.gtk.Method.get_property=action)
|
|
|
|
* @self: a `GtkShortcut`
|
2018-08-18 05:32:11 +00:00
|
|
|
*
|
|
|
|
* Gets the action that is activated by this shortcut.
|
|
|
|
*
|
2020-11-24 17:32:48 +00:00
|
|
|
* Returns: (transfer none) (nullable): the action
|
2021-03-02 03:53:57 +00:00
|
|
|
*/
|
2018-08-18 05:32:11 +00:00
|
|
|
GtkShortcutAction *
|
|
|
|
gtk_shortcut_get_action (GtkShortcut *self)
|
2018-08-12 20:07:27 +00:00
|
|
|
{
|
2018-08-18 05:32:11 +00:00
|
|
|
g_return_val_if_fail (GTK_IS_SHORTCUT (self), NULL);
|
2018-08-12 20:07:27 +00:00
|
|
|
|
2018-08-18 05:32:11 +00:00
|
|
|
return self->action;
|
2018-08-12 20:07:27 +00:00
|
|
|
}
|
|
|
|
|
2018-08-18 05:32:11 +00:00
|
|
|
/**
|
2021-03-02 03:53:57 +00:00
|
|
|
* gtk_shortcut_set_action: (attributes org.gtk.Method.set_property=action)
|
|
|
|
* @self: a `GtkShortcut`
|
2018-08-18 05:32:11 +00:00
|
|
|
* @action: (transfer full) (nullable): The new action.
|
2021-05-18 21:05:26 +00:00
|
|
|
* If the @action is %NULL, the nothing action will be used.
|
2018-08-18 05:32:11 +00:00
|
|
|
*
|
|
|
|
* Sets the new action for @self to be @action.
|
2021-03-02 03:53:57 +00:00
|
|
|
*/
|
2018-08-18 05:32:11 +00:00
|
|
|
void
|
|
|
|
gtk_shortcut_set_action (GtkShortcut *self,
|
|
|
|
GtkShortcutAction *action)
|
2018-08-12 20:07:27 +00:00
|
|
|
{
|
2018-08-18 05:32:11 +00:00
|
|
|
g_return_if_fail (GTK_IS_SHORTCUT (self));
|
2018-08-12 20:07:27 +00:00
|
|
|
|
2018-08-18 05:32:11 +00:00
|
|
|
if (action == NULL)
|
2020-03-20 15:19:45 +00:00
|
|
|
action = g_object_ref (gtk_nothing_action_get ());
|
2018-08-12 20:07:27 +00:00
|
|
|
|
2020-03-20 15:19:45 +00:00
|
|
|
if (g_set_object (&self->action, action))
|
2018-08-12 20:07:27 +00:00
|
|
|
{
|
2020-03-20 15:19:45 +00:00
|
|
|
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_ACTION]);
|
|
|
|
g_object_unref (action);
|
2018-08-12 20:07:27 +00:00
|
|
|
}
|
2018-08-04 10:14:13 +00:00
|
|
|
}
|
|
|
|
|
2020-03-15 13:49:50 +00:00
|
|
|
/**
|
2021-03-02 03:53:57 +00:00
|
|
|
* gtk_shortcut_get_trigger: (attributes org.gtk.Method.get_property=trigger)
|
|
|
|
* @self: a `GtkShortcut`
|
2020-03-15 13:49:50 +00:00
|
|
|
*
|
|
|
|
* Gets the trigger used to trigger @self.
|
|
|
|
*
|
2020-11-24 17:32:48 +00:00
|
|
|
* Returns: (transfer none) (nullable): the trigger used
|
2021-03-02 03:53:57 +00:00
|
|
|
*/
|
2020-03-15 13:49:50 +00:00
|
|
|
GtkShortcutTrigger *
|
|
|
|
gtk_shortcut_get_trigger (GtkShortcut *self)
|
|
|
|
{
|
|
|
|
g_return_val_if_fail (GTK_IS_SHORTCUT (self), NULL);
|
|
|
|
|
|
|
|
return self->trigger;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2021-03-02 03:53:57 +00:00
|
|
|
* gtk_shortcut_set_trigger: (attributes org.gtk.Method.set_property=trigger)
|
|
|
|
* @self: a `GtkShortcut`
|
2020-03-15 13:49:50 +00:00
|
|
|
* @trigger: (transfer full) (nullable): The new trigger.
|
2021-05-18 21:05:26 +00:00
|
|
|
* If the @trigger is %NULL, the never trigger will be used.
|
2020-03-15 13:49:50 +00:00
|
|
|
*
|
|
|
|
* Sets the new trigger for @self to be @trigger.
|
2021-03-02 03:53:57 +00:00
|
|
|
*/
|
2020-03-15 13:49:50 +00:00
|
|
|
void
|
|
|
|
gtk_shortcut_set_trigger (GtkShortcut *self,
|
|
|
|
GtkShortcutTrigger *trigger)
|
|
|
|
{
|
|
|
|
g_return_if_fail (GTK_IS_SHORTCUT (self));
|
|
|
|
|
|
|
|
if (trigger == NULL)
|
2020-03-19 15:57:02 +00:00
|
|
|
trigger = g_object_ref (gtk_never_trigger_get ());
|
2020-03-15 13:49:50 +00:00
|
|
|
|
2020-03-19 15:57:02 +00:00
|
|
|
if (g_set_object (&self->trigger, trigger))
|
2020-03-15 13:49:50 +00:00
|
|
|
{
|
2020-03-19 15:57:02 +00:00
|
|
|
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_TRIGGER]);
|
|
|
|
g_object_unref (trigger);
|
2020-03-15 13:49:50 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-20 02:50:35 +00:00
|
|
|
/**
|
2021-03-02 03:53:57 +00:00
|
|
|
* gtk_shortcut_get_arguments: (attributes org.gtk.Method.get_property=arguments)
|
|
|
|
* @self: a `GtkShortcut`
|
2020-04-20 02:50:35 +00:00
|
|
|
*
|
|
|
|
* Gets the arguments that are passed when activating the shortcut.
|
|
|
|
*
|
|
|
|
* Returns: (transfer none) (nullable): the arguments
|
|
|
|
*/
|
2018-08-04 10:14:13 +00:00
|
|
|
GVariant *
|
|
|
|
gtk_shortcut_get_arguments (GtkShortcut *self)
|
|
|
|
{
|
|
|
|
g_return_val_if_fail (GTK_IS_SHORTCUT (self), NULL);
|
|
|
|
|
|
|
|
return self->args;
|
|
|
|
}
|
|
|
|
|
2020-04-20 02:50:35 +00:00
|
|
|
/**
|
2021-03-02 03:53:57 +00:00
|
|
|
* gtk_shortcut_set_arguments: (attributes org.gtk.Method.set_property=arguments)
|
|
|
|
* @self: a `GtkShortcut`
|
2020-04-20 02:50:35 +00:00
|
|
|
* @args: (nullable): arguments to pass when activating @self
|
|
|
|
*
|
|
|
|
* Sets the arguments to pass when activating the shortcut.
|
|
|
|
*/
|
2018-08-04 10:14:13 +00:00
|
|
|
void
|
|
|
|
gtk_shortcut_set_arguments (GtkShortcut *self,
|
|
|
|
GVariant *args)
|
|
|
|
{
|
|
|
|
g_return_if_fail (GTK_IS_SHORTCUT (self));
|
|
|
|
|
|
|
|
if (self->args == args)
|
|
|
|
return;
|
|
|
|
|
|
|
|
g_clear_pointer (&self->args, g_variant_unref);
|
|
|
|
if (args)
|
|
|
|
self->args = g_variant_ref_sink (args);
|
|
|
|
|
|
|
|
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_ARGUMENTS]);
|
|
|
|
}
|