예제 #1
0
static gboolean
reap_cache (gpointer data)
{
	gboolean reapable_icons_left;

	reapable_icons_left = TRUE;

	time_now = g_thread_gettime ();
	
	if (loadable_icon_cache) {
		g_hash_table_foreach_remove (loadable_icon_cache,
					     reap_old_icon,
					     &reapable_icons_left);
	}
	
	if (themed_icon_cache) {
		g_hash_table_foreach_remove (themed_icon_cache,
					     reap_old_icon,
					     &reapable_icons_left);
	}
	
	if (reapable_icons_left) {
		return TRUE;
	} else {
		reap_cache_timeout = 0;
		return FALSE;
	}
}
예제 #2
0
static void
pixbuf_toggle_notify (gpointer      info,
		      GObject      *object,
		      gboolean      is_last_ref)
{
	NautilusIconInfo  *icon = info;
	
	if (is_last_ref) {
		icon->sole_owner = TRUE;	
		g_object_remove_toggle_ref (object,
					    pixbuf_toggle_notify,
					    info);
		icon->last_use_time = g_thread_gettime ();
		schedule_reap_cache ();
	}
}
예제 #3
0
static void
nautilus_icon_info_init (NautilusIconInfo *icon)
{
	icon->last_use_time = g_thread_gettime ();
	icon->sole_owner = TRUE;
}
예제 #4
0
파일: gfilemonitor.c 프로젝트: Andais/glib
static guint32
get_time_msecs (void)
{
  return g_thread_gettime() / (1000 * 1000);
}
예제 #5
0
static void
caja_icon_info_init (CajaIconInfo *icon)
{
    icon->last_use_time = g_thread_gettime ();
    icon->sole_owner = TRUE;
}