</doc:para></doc:description></doc:doc>
</property>
- <property name="DeviceAutomountHint" type="s" access="read">
+ <property name="DeviceAutoMountHint" type="s" access="read">
<doc:doc><doc:description><doc:para>
A hint to the desktop that indicates if a device should be automounted.
Possible values are:
}
void
-device_set_device_automount_hint (Device *device,
- const gchar *value)
+device_set_device_auto_mount_hint (Device *device,
+ const gchar *value)
{
- if (G_UNLIKELY (g_strcmp0 (device->priv->device_automount_hint, value) != 0))
+ if (G_UNLIKELY (g_strcmp0 (device->priv->device_auto_mount_hint, value) != 0))
{
- g_free (device->priv->device_automount_hint);
- device->priv->device_automount_hint = g_strdup (value);
- emit_changed (device, "device_automount_hint");
+ g_free (device->priv->device_auto_mount_hint);
+ device->priv->device_auto_mount_hint = g_strdup (value);
+ emit_changed (device, "device_auto_mount_hint");
}
}
gboolean device_presentation_nopolicy;
char *device_presentation_name;
char *device_presentation_icon_name;
- char *device_automount_hint;
+ char *device_auto_mount_hint;
char *id_usage;
char *id_type;
void device_set_job_is_cancellable (Device *device, gboolean value);
void device_set_job_percentage (Device *device, gdouble value);
-void device_set_device_automount_hint (Device *device, const gchar *value);
+void device_set_device_auto_mount_hint (Device *device, const gchar *value);
void device_set_device_detection_time (Device *device, guint64 value);
void device_set_device_media_detection_time (Device *device, guint64 value);
void device_set_device_file (Device *device, const gchar *value);
g_value_set_string (value, device->priv->device_file);
break;
case PROP_DEVICE_AUTOMOUNT_HINT:
- g_value_set_string (value, device->priv->device_automount_hint);
+ g_value_set_string (value, device->priv->device_auto_mount_hint);
break;
case PROP_DEVICE_FILE_PRESENTATION:
if (device->priv->device_file_presentation != NULL)
g_object_class_install_property (object_class,
PROP_DEVICE_AUTOMOUNT_HINT,
- g_param_spec_string ("device-automount-hint",
+ g_param_spec_string ("device-auto-mount-hint",
NULL,
NULL,
NULL,
{
gboolean hide;
gboolean nopolicy;
- const gchar *automount_hint;
+ const gchar *auto_mount_hint;
hide = FALSE;
if (g_udev_device_has_property (device->priv->d, "UDISKS_PRESENTATION_HIDE"))
device_set_device_presentation_icon_name (device, g_udev_device_get_property (device->priv->d,
"UDISKS_PRESENTATION_ICON_NAME"));
- automount_hint = "";
+ auto_mount_hint = "";
if (g_udev_device_has_property (device->priv->d, "UDISKS_AUTOMOUNT_HINT"))
- automount_hint = g_udev_device_get_property (device->priv->d, "UDISKS_AUTOMOUNT_HINT");
+ auto_mount_hint = g_udev_device_get_property (device->priv->d, "UDISKS_AUTOMOUNT_HINT");
- device_set_device_automount_hint (device, automount_hint);
+ device_set_device_auto_mount_hint (device, auto_mount_hint);
return TRUE;
}
gboolean device_presentation_nopolicy;
char *device_presentation_name;
char *device_presentation_icon_name;
- char *device_automount_hint;
guint64 device_size;
guint64 device_block_size;
props->device_presentation_name = g_strdup (g_value_get_string (value));
else if (strcmp (key, "DevicePresentationIconName") == 0)
props->device_presentation_icon_name = g_strdup (g_value_get_string (value));
- else if (strcmp (key, "DeviceAutomountHint") == 0)
- props->device_automount_hint = g_strdup (g_value_get_string (value));
else if (strcmp (key, "DeviceSize") == 0)
props->device_size = g_value_get_uint64 (value);
else if (strcmp (key, "DeviceBlockSize") == 0)
g_strfreev (props->device_mount_paths);
g_free (props->device_presentation_name);
g_free (props->device_presentation_icon_name);
- g_free (props->device_automount_hint);
g_free (props->job_id);
g_free (props->id_usage);
g_free (props->id_type);
g_print (" presentation nopolicy: %d\n", props->device_presentation_nopolicy);
g_print (" presentation name: %s\n", props->device_presentation_name);
g_print (" presentation icon: %s\n", props->device_presentation_icon_name);
- g_print (" automount hint: %s\n", props->device_automount_hint);
g_print (" size: %" G_GUINT64_FORMAT "\n", props->device_size);
g_print (" block size: %" G_GUINT64_FORMAT "\n", props->device_block_size);