Commit 93dacfbe authored by Cosimo Cecchi's avatar Cosimo Cecchi Committed by Cosimo Cecchi

inhibit autorun for 10 seconds instead of 5 seconds at login, as that may

2009-03-09  Cosimo Cecchi  <cosimoc@gnome.org>

	* libnautilus-private/nautilus-autorun.c:
	(nautilus_allow_autorun_for_volume_finish):
	inhibit autorun for 10 seconds instead of 5 seconds at login,
	as that may be too short for slower machines (#520691).

svn path=/trunk/; revision=15074
parent ccba1446
2009-03-09 Cosimo Cecchi <cosimoc@pluto>
2009-03-09 Cosimo Cecchi <cosimoc@gnome.org>
* libnautilus-private/nautilus-autorun.c:
(nautilus_allow_autorun_for_volume_finish):
inhibit autorun for 10 seconds instead of 5 seconds at login,
as that may be too short for slower machines (#520691).
2009-03-09 Cosimo Cecchi <cosimoc@gnome.org>
* libnautilus-private/nautilus-file-operations.c: added a translator
comment explaining how to handle ordinal numbers if the language
......
......@@ -1196,15 +1196,17 @@ nautilus_allow_autorun_for_volume (GVolume *volume)
g_object_set_data (G_OBJECT (volume), "nautilus-allow-autorun", GINT_TO_POINTER (1));
}
#define INHIBIT_AUTORUN_SECONDS 10
void
nautilus_allow_autorun_for_volume_finish (GVolume *volume)
{
if (g_object_get_data (G_OBJECT (volume), "nautilus-allow-autorun") != NULL) {
g_timeout_add_full (0,
5000,
remove_allow_volume,
g_object_ref (volume),
g_object_unref);
g_timeout_add_seconds_full (0,
INHIBIT_AUTORUN_SECONDS,
remove_allow_volume,
g_object_ref (volume),
g_object_unref);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment